
Arcom Embedded Linux Technical Manual Developing software for AEL
© 2006 Arcom Issue G 36
On distributions that use other package managers you must use another tool to install
the LSB .rpm package. For example, Debian GNU/Linux provides the tool alien that
supports installing LSB .rpm packages:
# alien -ik lsb-arcom-arm-linux-libc6-2.3.1-3.noarch.rpm
Like AEL, Debian uses dpkg as its package management tool. However you
cannot install a .deb built for AEL directly in your Debian system (or vice-versa).
Doing so could damage your host system.
You must convert the AEL .deb to an LSB RPM using ael-cross-rpm (so that
the meta data and file system layout can be modified to be suitable for the host
rather than target environments) and then install the LSB .rpm package using
alien.
Other host distributions have a similar method for installing LSB packages. For details,
consult the documentation for your host distribution.
Obtaining help
You can view help about many of the utilities provided by the host environment using
the man utility. For example, to get help on the arm-linux-gcc compiler, run the following
command:
$ man arm-linux-gcc
Cross compiling applications and libraries
This section includes a number of examples in which we use the arm-linux
cross compiler. For other boards, substitute the appropriate prefix from the table
below.
Compiling a simple C application is simply a matter of using the cross compiler instead
of the regular compiler:
$ arm-linux-gcc -o example -Wall -g -O2 example.c
Tools available in the host environment
The majority of the cross compilation tools are the same as their native compilation
counterparts, with an additional prefix that specifies the target system. The prefixes for
the various target architectures are described in the following table:
Architecture Prefix Example processors
Intel x86 i386-linux- AMD SC520, AMD Geode GX1
ARM and XScale (little-endian) arm-linux- Intel PXA255
ARM and XScale (big-endian) armbe-linux- Intel IXP425
Kommentare zu diesen Handbüchern