This shows you the differences between two versions of the page.
| Both sides previous revision Previous revision Next revision | Previous revision | ||
|
wiki:sdk [2015/11/20 14:02] rdu [Toolchain] |
— (current) | ||
|---|---|---|---|
| Line 1: | Line 1: | ||
| - | |||
| - | ====== Toolchain ====== | ||
| - | Kerlink provides the cross-toolchain, libraries and headers necessary to the compilation of an application. | ||
| - | ===== Install ===== | ||
| - | |||
| - | Retreive the installation package according to the linux build machine architecture : | ||
| - | * 32 bits : use "poky-glibc-i686-keros-cortexa9hf-vfp-neon-toolchain-1.8.sh" | ||
| - | * 64 bits : use "poky-glibc-x86_64-keros-cortexa9hf-vfp-neon-toolchain-1.8.sh" | ||
| - | |||
| - | Execute the script (example for 32 bits arch): | ||
| - | <code sh> | ||
| - | ./poky-glibc-x86_64-keros-cortexa9hf-vfp-neon-toolchain-1.8.sh | ||
| - | Enter target directory for SDK (default: /opt/poky/1.8): /opt/toolchains/loraV2 | ||
| - | You are about to install the SDK to "/opt/toolchains/loraV2". Proceed[Y/n]? Y | ||
| - | Extracting SDK...done | ||
| - | Setting it up...done | ||
| - | SDK has been successfully set up and is ready to be used. | ||
| - | </code> | ||
| - | |||
| - | Modify toolchain environment file (use your own toolchain directory): | ||
| - | <code sh> | ||
| - | echo "unset CFLAGS" >> /opt/toolchains/loraV2/environment-setup-cortexa9hf-vfp-neon-poky-linux-gnueabi | ||
| - | echo "unset CXXFLAGS" >> /opt/toolchains/loraV2/environment-setup-cortexa9hf-vfp-neon-poky-linux-gnueabi | ||
| - | echo "unset LDFLAGS" >> /opt/toolchains/loraV2/environment-setup-cortexa9hf-vfp-neon-poky-linux-gnueabi | ||
| - | </code> | ||
| - | |||
| - | Source the toolchain environment : | ||
| - | <code sh> | ||
| - | source /opt/toolchains/loraV2/environment-setup-cortexa9hf-vfp-neon-poky-linux-gnueabi | ||
| - | </code> | ||
| - | |||
| - | System is ready to use "make" | ||