eCos Repository Database The Configuration Tool
265
Figure 11.9 eCos repository database,
ecos.db, and Configuration Tool relationship.
1 package CYGPKG_HAL { 2 alias { eCos common HAL hal hal_common }
3 directory halcommon 4 script hal.cdl
5 description 6 The eCos HAL package provide a porting layer for
7 higher-level parts of the system such as the kernel 8 and the C library. Each installation should have
9 HAL packages for one or more architectures, and 10 for each architecture there may be one or more
11 supported platforms. It is necessary to select one 12 target architecture and one platform for that
13 architecture. There are also a number of configuration 14 options that are common to all HAL packages.
15 }
266 Chapter 11 • The eCos Toolset
1 target pc {
2 alias { i386 PC target }
3 packages { CYGPKG_HAL_I386
4 CYGPKG_HAL_I386_GENERIC
5 CYGPKG_HAL_I386_PC
6 CYGPKG_HAL_I386_PCMB
7 CYGPKG_IO_PCI
8 CYGPKG_IO_SERIAL_GENERIC_16X5X
9 CYGPKG_IO_SERIAL_I386_PC
10 CYGPKG_DEVS_ETH_INTEL_I82559
11 CYGPKG_DEVS_ETH_I386_PC_I82559
12 CYGPKG_DEVICES_WALLCLOCK_DALLAS_DS12887
13 CYGPKG_DEVICES_WALLCLOCK_I386_PC
14 }
15 description
16 The pc target provides the
17 packages needed to run eCos
18 binaries on a standard i386
19 PC motherboard.
20 }
Code Listing 11.9 i386 PC target template description from eCos database file ecos.db.
Figure 11.10 shows the template dialog box displaying the i386 PC target from Code Listing 11.9. The template dialog box is displayed when Build – Templates is selected from the
menu bar. We can see in Figure 11.10 that the alias description, from line 2, is displayed in the Hardware drop-down list.
Below the target alias is the description for the template, from lines 15 through 19. In this case, the
default packages are included, which are described in the Packages in Selected Tem- plates
description box. These packages are listed on lines 3 through 13 in Code Listing 11.9. The different options in the package drop-down list are described in the Using Templates section of
this chapter. In certain circumstances, it might be necessary to edit the
ecos.db file in order to have the Configuration Tool recognize a package you added. We look at editing the
ecos.db file in Chapter 13, Porting eCos.
A file named ChangeLog is also located in the same subdirectory as the ecos.db file.
This log file tracks the changes made to the ecos.db file. Entries to this log file are similar to
the entries in the other ChangeLog files described in the Package Directory Structure section
in this chapter.