Hier werden die Unterschiede zwischen zwei Versionen angezeigt.
Beide Seiten der vorigen RevisionVorhergehende Überarbeitung | |||
software:linux:yocto:yocto-toradex [2022-05-24 16:38] – Moritz Lammerich | software: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 [[ : | ||
- | |||
- | The build process is based on [[ https:// | ||
- | |||
- | ===== Setting up the build environment ===== | ||
- | |||
- | The following was taken from [[ https:// | ||
- | |||
- | First, make sure that the '' | ||
- | |||
- | < | ||
- | mkdir ~/bin | ||
- | export PATH=~/ | ||
- | curl http:// | ||
- | chmod a+x ~/bin/repo | ||
- | </ | ||
- | |||
- | Next, make sure '' | ||
- | |||
- | < | ||
- | sudo apt install git | ||
- | git config --global user.name "John Doe" | ||
- | git config --global user.email johndoe@example.com | ||
- | </ | ||
- | |||
- | Now fetch the toradex layers using '' | ||
- | |||
- | < | ||
- | mkdir ${HOME}/ | ||
- | cd ${HOME}/ | ||
- | repo init -u https:// | ||
- | repo sync | ||
- | </ | ||
- | |||
- | Finally, source the setup script: | ||
- | |||
- | < | ||
- | . export | ||
- | </ | ||
- | |||
- | ==== Adding the OST layers ==== | ||
- | |||
- | The OST specific recipes are maintained in the [[ software: | ||
- | |||
- | change into the '' | ||
- | |||
- | < | ||
- | cd ../layers | ||
- | </ | ||
- | |||
- | clone the [[ https:// | ||
- | |||
- | < | ||
- | git clone https:// | ||
- | </ | ||
- | |||
- | change back to the '' | ||
- | |||
- | < | ||
- | cd ../build | ||
- | nano conf/ | ||
- | </ | ||
- | |||
- | < | ||
- | BBLAYERS ?= " \ | ||
- | ... | ||
- | ${TOPDIR}/ | ||
- | ${TOPDIR}/ | ||
- | " | ||
- | </ | ||
- | |||
- | ==== local.conf ===== | ||
- | |||
- | Add the following to '' | ||
- | |||
- | < | ||
- | MACHINE = " | ||
- | DISTRO = " | ||
- | </ | ||
- | |||
- | ==== build ==== | ||
- | |||
- | Then build the image: | ||
- | |||
- | < | ||
- | bitbake ost-image | ||
- | </ | ||