Unterschiede

Hier werden die Unterschiede zwischen zwei Versionen angezeigt.

Link zu dieser Vergleichsansicht

Nächste Überarbeitung
Vorhergehende Überarbeitung
Nächste ÜberarbeitungBeide Seiten der Revision
software:linux:toradex:toradex-sdk [2020-03-18 14:26] – angelegt mlammerichsoftware:linux:toradex:toradex-sdk [2020-06-12 13:42] akunz
Zeile 1: Zeile 1:
 ====== Yocto SDKs ====== ====== Yocto SDKs ======
 +
 +===== General information about Yocto SDKs =====
  
 Yocto SDK Manual: [[ https://www.yoctoproject.org/docs/2.1/sdk-manual/sdk-manual.html ]] Yocto SDK Manual: [[ https://www.yoctoproject.org/docs/2.1/sdk-manual/sdk-manual.html ]]
Zeile 7: Zeile 9:
 Yocto C++ development: [[ https://www.youtube.com/watch?v=NmPta5w6P70 ]] Yocto C++ development: [[ https://www.youtube.com/watch?v=NmPta5w6P70 ]]
  
-===== Yocto SDK ===== 
  
-==== Building the SDK ====+===== Yocto SDKs for Toradex projects ===== 
 + 
 +==== Build the SDK ==== 
 + 
 +To build the SDK for an image, append ''-c populate_sdk'' to the bitbake build command. 
 + 
 +For example, to build the SDK for the **ntb-dev-image** run ''bitbake ntb-dev-image -c populate_sdk''. The built SDK is located at **<myWorkspace>/build/deploy/sdk/**. 
 + 
 +For more information check the [[ https://developer.toradex.com/knowledge-base/linux-sdks | Linux SDKs page]] on the Toradex knowledge base.
  
-To build the SDK for an image append '' -c populate_sdk'' to the bitbake build command. 
  
-For example, to build the SDK for the NTB dev image ''ntb-dev-image'' run ''bitbake ntb-dev-image -c populate_sdk''+==== Install the SDK ==== 
 +The SDK is installed by executing the shell script in the **sdk** folder. If it should be installed on a different computer, the whole **sdk** folder must be copied over and the script executed on the target computer.
  
-For more information check the [[ https://developer.toradex.com/knowledge-base/linux-sdks | Toradex guide ]].+The shell script is asking for the location to install the SDKThe default is suitable for the most of the use cases.
  
-===== Extensible SDK =====+Once it is installed, the installation folder (for example **/opt/tdx-x11/2.6.4/**) contains another shell script with name **environment-setup-<xyz>**. This script can be sourced so all needed path variables are set on the current shell session. This means the script sets all variables so a following ''make'' execution will use the compiler and libraries of the SDK. The script is sourced by the point operator (there must be a space following the point!) as shown by the example below.
  
 +<code>
 +. /opt/tdx-x11/2.6.4/environment-setup-armv7at2hf-neon-tdx-linux-gnueabi
 +</code>
  
 +For more information check the [[ https://developer.toradex.com/knowledge-base/linux-sdks#sdk-installation | Linux SDKs - SDK Installation page]] on the Toradex knowledge base.