Install the Cross-Compilation ToolchainBefore cross-compilingcross-compiling applications for your target, you need to install the
Software Development Kit (SDKSDK) - which contains the cross-compilation toolchaintoolchain - and set up the cross-compilation environment on your host.
The toolchain for each supported target contains a 32-bit and a 64-bit
library for gcc. The toolchain and the environment-setup script are wrapped
together inside a toolchain installer in the form of a shell script.Name of the installer:Name of the environment-setup scripts:The cross-compilation toolchain for t4240rdb-64b is
packaged as follows:The toolchain contains two libs: lib (32-bit)
and lib64 (64-bit).The installer wraps two environment-setup scripts. Which script
you run selects which lib will be used by gcc. This way, both 32-bit
applications and 64-bit applications can be cross-compiled for
t4240rdb-64b.There are currently problems with 32-bit applications on the
64-bit T4240, see "Known Problems" in the Release
Information.Do as in the example below to install the SDK and set up
the cross-compilation environment:Get the cross-compilation toolchain installer; either a
precompiled one (A) or build it yourself (B).The quickest alternative is to use a precompiled installer for
your host and target. Download the appropriate installer from the
server appointed to you by Enea. You find the installer in the
sdk directory on the download site:$ wget /t4240-64b/sdk/\
... or build your own cross-compilation toolchain. First
source the build environment setup script to create a
<build_dir> with conf files, then run bitbake with option
-c populate_sdk to build the toolchain and wrap
it inside an installer, saved in
<build_dir>/tmp/deploy/sdk/.$ source enea-init-build-env -b build_t4240rdb
$ bitbake -c populate_sdk
$ cd ../build_t4240rdb/tmp/deploy/sdk/Run the installer to unpack the cross-compilation toolchain and
the environment-setup script:$ chmod 770 \
$ ./When prompted, select to install the SDK in the desired directory,
referred to as <sdkdir>, by default
/opt/enea/<sdkver>. The installer unpacks the
environment setup script in <sdkdir> and the
toolchain under <sdkdir>/sysroots.Choose a unique directory for each toolchain. Installing a
second toolchain of any type (buildtools toolchain or
cross-compilation toolchain) in the same directory as a previously
installed one will break the $PATH variable of the first one.Setup the toolchain environment by sourcing the environment-setup
script, here exemplified for 32-bit toolchain:$ source <sdkdir>/Once the cross-compilation toolchain is in place and the environment
set up, you can proceed with Cross-Compiling
Applications from Command Line..The above instructions and the files on the download site should
provide you with all you need to be able to cross-compile applications for
your target.INFO: Corresponding Yocto documentation is available at . Note that the file
names mentioned in the Yocto documentation differ from the ones in the Enea
Linux distribution.