Unterschiede

Hier werden die Unterschiede zwischen zwei Versionen angezeigt.

Link zu dieser Vergleichsansicht

Beide Seiten der vorigen RevisionVorhergehende Überarbeitung
software:linux:yocto:yocto-toradex [2022-05-24 16:38] Moritz Lammerichsoftware:linux:yocto:yocto-toradex [Unbekanntes Datum] (aktuell) – gelöscht - Externe Bearbeitung (Unbekanntes Datum) 127.0.0.1
Zeile 1: Zeile 1:
-====== Building a New Image ====== 
- 
-Images are built using [[ :software/linux/yocto/start | the yocto project]]. 
- 
-The build process is based on [[ https://developer.toradex.com/knowledge-base/board-support-package/openembedded-%28core%29#update-to-a-specific-version-by-using-its-tag | this toradex guide ]]. 
- 
-===== Setting up the build environment ===== 
- 
-The following was taken from [[ https://developer.toradex.com/knowledge-base/board-support-package/openembedded-%28core%29#update-to-a-specific-version-by-using-its-tag | the toradex guide ]]. 
- 
-First, make sure that the ''repo'' tool is available: 
- 
-<code> 
-mkdir ~/bin 
-export PATH=~/bin:$PATH 
-curl http://commondatastorage.googleapis.com/git-repo-downloads/repo > ~/bin/repo 
-chmod a+x ~/bin/repo 
-</code> 
- 
-Next, make sure ''git'' is installed and configured: 
- 
-<code> 
-sudo apt install git 
-git config --global user.name "John Doe" 
-git config --global user.email johndoe@example.com 
-</code> 
- 
-Now fetch the toradex layers using ''repo'': 
- 
-<code> 
-mkdir ${HOME}/oe-core 
-cd ${HOME}/oe-core 
-repo init -u https://git.toradex.com/toradex-manifest.git -b refs/tags/5.4.0 -m tdxref/default.xml 
-repo sync 
-</code> 
- 
-Finally, source the setup script: 
- 
-<code> 
-. export 
-</code> 
- 
-==== Adding the OST layers ==== 
- 
-The OST specific recipes are maintained in the [[ software:linux:yocto:meta-ost | meta-ost]] layer. 
- 
-change into the ''layers'' directory: 
- 
-<code> 
-cd ../layers 
-</code> 
- 
-clone the [[ https://gitlab.ost.ch/tech/inf/public/meta-ost | meta-ost repository ]]: 
- 
-<code> 
-git clone https://gitlab.ost.ch/tech/inf/public/meta-ost 
-</code> 
- 
-change back to the ''build'' directory and add the layers to ''conf/bblayers.conf'': 
- 
-<code> 
-cd ../build 
-nano conf/bblayers.conf 
-</code> 
- 
-<code> 
-BBLAYERS ?= " \ 
-... 
-${TOPDIR}/../layers/meta-ost/meta-ost \ 
-${TOPDIR}/../layers/meta-ost/meta-ost-toradex \ 
-" 
-</code> 
- 
-==== local.conf ===== 
- 
-Add the following to ''conf/local.conf'' 
- 
-<code> 
-MACHINE = "cb20" 
-DISTRO = "ost-devel" 
-</code> 
- 
-==== build ==== 
- 
-Then build the image: 
- 
-<code> 
-bitbake ost-image 
-</code>