Specifications

3.10.2. Setting Up ELDK Build Environment
For your convenience, the ELDK build environment CD-ROM provides full ELDK build environment. All
you need to do is copy the contents of the CD-ROM to an empty directory on your host system. Assuming the
ELDK build environment CD-ROM is mounted at /mnt/cdrom, and the empty directory where you want to
create the build environment is named /opt/eldk, use the following commands to create the build environment:
bash$ cd /opt/eldk
bash$ cp -r /mnt/cdrom/* .
These commands will create the directory structure as described in section 3.10.1. ELDK Build Process
Overview above. All necessary scripts and ELDK specific source files will be placed in the build
subdirectory, and the required tarballs can be found in the tarballs subdirectory. In the SRPMS subdirectory,
you will find all the Fedora 7 SRPMS needed to build the ELDK.
Alternatively, you can obtain the ELDK build environment from the DENX GIT repository. Two modules are
provided for check out: build and tarballs. The first one contains the files for the build subdirectory in the
build environment, and the second one contains source tarballs of the packages that are included in the ELDK
but are not present in Fedora 7. To create the ELDK build environment from the DENX GIT repository, use
the following commands (the example below assumes that the root directory of the build environment is
/opt/eldk):
bash$ cd /opt/eldk
bash$ git-clone git://www.denx.de/git/eldk/build
bash$ git-clone git://www.denx.de/git/eldk/tarballs
bash$ git-clone git://www.denx.de/git/eldk/SRPMS
Note: To allow to install the ELDK on as many as possible Linux distributions (including old systems), we
use a Red Hat 7.3 host system for building. Also, Fedora Core 5 is known to work as a build environment.
Other, especially more recent Linux distributions, will most likely have problems. We therefor provide a Red
Hat 7.3 based root file system image than can run in some virtualization environment (like qemu etc.). Here is
an application note with detailed instructions:
http://www.denx.de/wiki/DULG/AN2009_02_EldkReleaseBuildEnvironment
3.10.3. build.sh Usage
If you wish to perform only a part of the ELDK build procedure, for instance to re-build or update a certain
package, it may sometimes be convenient to invoke the build.sh script manually, without the aid of the
ELDK_BUILD script. Please note, however, that this approach is in general discouraged.
The whole build procedure is logically divided into six steps, and the build.sh must be told which of the
build steps to perform. The build steps are defined as follows:
rpm - build RPM
eldt - build ELDT packages
seldt - save ELDT SRPM packages to create a source ISO image later on
trg - build target packages
biso - prepare the file tree to create the binary ISO image
siso - prepare the file tree to create the source ISO image
diso - prepare the file tree to create the debuginfo ISO image
Further, the eldt and trg build steps are devided into sub-steps, as defined in the cpkgs.lst and tpkgs.lst
3.10.2. Setting Up ELDK Build Environment 28