====== 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 (64 bits). There is no embedded compiler in the Wirnetâ„¢ i-series gateways.
===== Install =====
Retrieve the toolchain installation package corresponding to your firmware version [[wiki:resources:resources#keros_firmware_and_toolchain|from the resources page]].
Execute the script:
* The path for 4.0.x firmwares for Wirnet iBTS is ''/opt/toolchains/lpbs''.
* The path for 4.0.x firmwares for Wirnet iFemtoCell is ''/opt/toolchains/wifc''.
* The path for 4.1.x firmwares and upper, for all Wirnetâ„¢ i-series gateways is ''/opt/toolchains/klkgw''.
./poky-glibc-x86_64-keros-toolchain-klkgw-4.2.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/toolchains/klkgw
You are about to install the SDK to "/opt/toolchains/klkgw". Proceed[Y/n]? y
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/toolchains/klkgw/environment-setup-armv7ahf-neon-poky-linux-gnueabi
In order to avoid issues with Makefile using "CFLAGS" or "LDFLAGS", please modify the toolchain environment file **using the corresponding toolchain directory ''/opt/toolchains/klkgw...''** (''/opt/toolchains/lpbs/...'' or ''/opt/toolchains/wifc/...'' for v4.0.x firmwares):
cat << EOF >> /opt/toolchains/klkgw/environment-setup-armv7ahf-neon-poky-linux-gnueabi
unset CFLAGS
unset CXXFLAGS
unset LDFLAGS
EOF
Source the toolchain environment **using the corresponding toolchain directory ''/opt/toolchains/klkgw...''** (''/opt/toolchains/lpbs/...'' or ''/opt/toolchains/wifc/...'' for v4.0.x firmwares):
source /opt/toolchains/klkgw/environment-setup-armv7ahf-neon-poky-linux-gnueabi
System is ready to use ''make'', ''autotools'' or ''cmake''.