This shows you the differences between two versions of the page.
| Both sides previous revision Previous revision Next revision | Previous revision | ||
|
wiki:sdk [2015/12/14 12:34] mch |
— (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 available on the [[wiki:ressources|ressources]] page: | ||
| - | |||
| - | Unzip it and make it executable (example for 64 bits arch): | ||
| - | <code bash> | ||
| - | gunzip poky-glibc-x86_64-keros-cortexa9hf-vfp-neon-toolchain-1.8_c8115a9.sh.gz | ||
| - | chmod +x poky-glibc-x86_64-keros-cortexa9hf-vfp-neon-toolchain-1.8_c8115a9.sh | ||
| - | </code> | ||
| - | |||
| - | Execute the script: | ||
| - | <code bash> | ||
| - | ./poky-glibc-x86_64-keros-cortexa9hf-vfp-neon-toolchain-1.8_c8115a9.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 bash> | ||
| - | 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 bash> | ||
| - | source /opt/toolchains/loraV2/environment-setup-cortexa9hf-vfp-neon-poky-linux-gnueabi | ||
| - | </code> | ||
| - | |||
| - | System is ready to use "make" | ||