Cygwin Tools Directory Structure
218 Chapter 10 • The Host Development Platform
that is run when clicking on the Cygwin shortcut created on the desktop or clicking on Cygwin Bash Shell
under Start – Programs – Cygnus Solutions provided these were created in Step
8 of the Cygwin tools installation. The bash program is the UNIX environment shell that we use to create the eCos development tools, which is described later in this chapter.
One note: After running the bash program for the first time, the home subdirectory is cre-
ated under the cygwin root. The home\xxx, where xxx is your username, subdirectory
includes a file that contains the history of commands run in the bash shell environment. The
bin subdirectory contains all of the executable files for the Cygwin tools. Included in this subdirectory is the Cygwin DLL,
cygwin1.dll, which we are using version 1.3.3. The etc subdirectory contains standard UNIX configuration files. The lib subdirectory contains
all of the library files used when developing under Cygwin. The tmp subdirectory is the tempo-
rary scratch directory for the Cygwin tools. Finally, the usr subdirectory contains the miscella-
neous files stored by the different Cygwin packages. The root directory also contains two log files,
setup.log and setup.log.full. An example of some of the information contained in the
setup.log file is shown in Code Listing 10.1. Line 1 gives the starting date and time of the installation and the version
2.78.2.15 of the setup.exe file used. Lines 2 through 5 contain the option information, such as the location of the installation files, we selected during the Cygwin tools installation.
Figure 10.10 Cygwin installation directory
structure.
bin contrib
etc
include latest
lib sbin
tmp usr
var home
cygwin
Configuring the Windows Host 219
Information about the installation for each package is shown on lines 6 through 21. These lines display the subdirectory, either
contrib or latest, of the package for installation. Lines 22, 23, and 24 simply show the place that the
setup.log file information was cut out. Lines 25 and 26 are the last two lines of the file that show the completion message and the end date and
time of the install. We can see comparing the start and end message that the complete Cygwin tools install took approximately 16 minutes.
The file setup.log.full is similar to setup.log; however, additional detailed
information about the setup for each package is contained in the full log file. Any time the setup.exe program is run, the operations performed are logged into these two log files. This
is helpful to keep track of package upgrades for the different Cygwin tools.
1 20010927 12:12:12 Starting cygwin install, version 2.78.2.15
2 Current Directory: D:\cygwin
3 source: from cwd
4 Selected local directory: D:\cygwin
5 root: D:\cygwin text user
6 Installing test version...latestashash-20011018-1.tar.bz2
7 Installing...latestautoconfautoconf-2.52-1.tar.bz2
8 Installing...latestautomakeautomake-1.5-1.tar.bz2
9 Installing...latestbashbash-2.05-8.tar.bz2
10 Installing test version...latestbinutilsbinutils-20011002-1.tar.bz2
11 Installing...latestbisonbison-1.28-1.tar.gz
12 Installing...latestbyaccbyacc.tar.gz
13 Installing...latestbzip2bzip2-1.0.1-6.tar.gz
14 Installing...latestclearclear-1.0.tar.gz
15 Installing...latestcpiocpio-2.4.2.tar.gz
16 Installing...contribcroncron-3.0.1-5.tar.bz2
17 Installing...latestcryptcrypt-1.0-1.tar.gz
18 Installing...latestctagsctags-5.0.1-1.tar.gz
19 Installing...contribcvscvs-1.11.0-1.tar.gz
20 Installing...latestcygrunsrvcygrunsrv-0.94-2.tar.bz2
21 Installing previous version...latestcygwincygwin-1.3.3-2.tar.bz2
22 .
23 .
24 .
25 mbox note: Installation Complete
26 20010927 12:18:34 Ending cygwin install
Code Listing 10.1 Cygwin installation example log file contents.
10.2.1.2 Upgrading the Cygwin Tools
The Cygwin tools upgrade procedure is detailed in Appendix C, in case you need bug fixes or enhancements offered in the latest versions of the Cygwin tools.
220 Chapter 10 • The Host Development Platform