User Tools

Site Tools


wiki:toolchain

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revision Previous revision
Next revision
Previous revision
wiki:toolchain [2019/01/17 10:01]
127.0.0.1 external edit
— (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 (64 bits). There is no embedded compiler in the Wirnet iBTS and Wirnet iFemtoCell. 
  
-===== Install ===== 
- 
-Retrieve the toolchain 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/​toolchains/​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/​toolchains/​lpbs 
-You are about to install the SDK to "/​opt/​toolchains/​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/​toolchains/​lpbs/​environment-setup-armv7ahf-neon-poky-linux-gnueabi 
- $ . /​opt/​toolchains/​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/​toolchains/​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/​toolchains/​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''​. 
wiki/toolchain.1547715696.txt.gz · Last modified: 2019/09/25 11:10 (external edit)