This shows you the differences between two versions of the page.
Both sides previous revision Previous revision Next revision | Previous revision | ||
wiki:toolchain [2018/12/19 10:45] hch |
— (current) | ||
---|---|---|---|
Line 1: | Line 1: | ||
- | ====== Toolchain ====== | ||
- | Kerlink provides the cross-toolchain, libraries and headers necessary to the compilation of an application. \\ | ||
- | The provided toolchain and development procedure are dedicated to Linux x86 computer (32 bits and 64 bits). There is no embedded compiler in the Wirnet iBTS. | ||
- | ===== Install ===== | ||
- | |||
- | Retrieve the installation package according to the Linux build machine architecture available on the resources page: [[resources_ibts:resources#toolchain|Wirnet iBTS toolchain]] or [[resources_ifemto:resources#toolchain|Wirnet iFemtoCell toolchain]]. | ||
- | |||
- | Execute the script: | ||
- | * The path for Wirnet iBTS is ''<fc #ff0000>/opt/toolchain/lpbs</fc>''. | ||
- | * The path for Wirnet iFemtoCell is ''<fc #ff0000>/opt/toolchains/wifc</fc>''. | ||
- | <code bash> | ||
- | ./poky-glibc-x86_64-keros-toolchain-klk-lpbs-4.0.2.sh | ||
- | Poky (Yocto Project Reference Distro) SDK installer version 2.4.2 | ||
- | ================================================================= | ||
- | Enter target directory for SDK (default: /opt/poky/2.4.2): /opt/toolchain/lpbs | ||
- | You are about to install the SDK to "/opt/toolchain/lpbs". Proceed[Y/n]? Y | ||
- | [sudo] password for ubuntu1404: | ||
- | Extracting SDK.............................................................done | ||
- | Setting it up...done | ||
- | SDK has been successfully set up and is ready to be used. | ||
- | Each time you wish to use the SDK in a new shell session, you need to source the environment setup script e.g. | ||
- | $ . /opt/toolchain/lpbs/environment-setup-armv7ahf-neon-poky-linux-gnueabi | ||
- | $ . /opt/toolchain/lpbs/environment-setup-cortexa9hf-neon-poky-linux-gnueabi | ||
- | </code> | ||
- | |||
- | In order to avoid issues with Makefile using "CFLAGS" or "LDFLAGS", please modify the toolchain environment file (**using the corresponding toolchain directory ''/opt/toolchain/lpbs/...'' or ''/opt/toolchains/wifc/...''**): | ||
- | <code bash> | ||
- | cat << EOF >> /opt/toolchains/lpbs/environment-setup-cortexa9hf-neon-poky-linux-gnueabi | ||
- | unset CFLAGS | ||
- | unset CXXFLAGS | ||
- | unset LDFLAGS | ||
- | EOF | ||
- | </code> | ||
- | |||
- | |||
- | Source the toolchain environment (**using the corresponding toolchain directory ''/opt/toolchain/lpbs/...'' or ''/opt/toolchains/wifc/...''**): | ||
- | <code bash> | ||
- | source /opt/toolchains/lpbs/environment-setup-cortexa9hf-neon-poky-linux-gnueabi | ||
- | </code> | ||
- | |||
- | System is ready to use ''make'', ''autotools'' or ''cmake''. |