Hier werden die Unterschiede zwischen zwei Versionen angezeigt.
Beide Seiten der vorigen RevisionVorhergehende ÜberarbeitungNächste Überarbeitung | Vorhergehende ÜberarbeitungNächste ÜberarbeitungBeide Seiten der Revision | ||
software:linux:toradex:toradex-build [2019-10-16 10:15] – mlammerich | software:linux:toradex:toradex-build [2021-03-01 09:43] – Moritz Lammerich | ||
---|---|---|---|
Zeile 1: | Zeile 1: | ||
====== Building a New Image ====== | ====== Building a New Image ====== | ||
- | Images are built using bitbake and yocto. | + | Images are built using [[ : |
The build process is based on [[ https:// | The build process is based on [[ https:// | ||
- | ===== Customising | + | ===== Setting up the build environment |
- | ==== Adding | + | The following was taken from [[ https:// |
- | A custom application can be added to a yocto build by means of a new recipes and a new layer. | + | First, make sure that the '' |
- | == Additional Information == | + | < |
+ | mkdir ~/bin | ||
+ | export PATH=~/ | ||
+ | curl http:// | ||
+ | chmod a+x ~/ | ||
+ | </ | ||
- | [[ https:// | + | Next, make sure '' |
- | [[ https:// | + | < |
+ | sudo apt install git | ||
+ | git config --global user.name "John Doe" | ||
+ | git config --global user.email johndoe@example.com | ||
+ | </code> | ||
- | ===== Building | + | Now fetch the toradex layers using '' |
- | To build the SDK for an image append '' | + | < |
+ | mkdir ${HOME}/oe-core | ||
+ | cd ${HOME}/ | ||
+ | repo init -u https:// | ||
+ | repo sync | ||
+ | </ | ||
- | For example, to build the SDK for the standard toradex image '' | + | Finally, source the setup script: |
+ | |||
+ | < | ||
+ | . export | ||
+ | </ | ||
+ | |||
+ | ==== Adding the NTB layers ==== | ||
+ | |||
+ | The NTB 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 = " | ||
+ | </ | ||
+ | |||
+ | ==== build ==== | ||
+ | |||
+ | Production Image: | ||
+ | |||
+ | < | ||
+ | bitbake | ||
+ | </ | ||
+ | |||
+ | Development Image: | ||
+ | |||
+ | To create a development image, add the following to '' | ||
+ | |||
+ | < | ||
+ | NTB_DEVBUILD = " | ||
+ | </ | ||
+ | |||
+ | Then build the image: | ||
+ | |||
+ | < | ||
+ | bitbake ntb-image | ||
+ | </ | ||
- | For more information check the [[ https:// |