Hier werden die Unterschiede zwischen zwei Versionen angezeigt.
Nächste Überarbeitung | Vorhergehende ÜberarbeitungNächste ÜberarbeitungBeide Seiten der Revision | ||
software:linux:toradex:toradex-build [2019-10-14 13:05] – angelegt 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 ===== |
- | coming soon | + | The following was taken from [[ https:// |
+ | First, make sure that the '' | ||
- | ==== Building | + | < |
+ | mkdir ~/bin | ||
+ | export PATH=~/ | ||
+ | curl http:// | ||
+ | chmod a+x ~/ | ||
+ | </ | ||
+ | |||
+ | 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 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 ntb-image | ||
+ | </ | ||
+ | |||
+ | Development Image: | ||
+ | |||
+ | To create a development image, add the following to '' | ||
+ | |||
+ | < | ||
+ | NTB_DEVBUILD = " | ||
+ | </ | ||
+ | |||
+ | Then build the image: | ||
+ | |||
+ | < | ||
+ | bitbake ntb-image | ||
+ | </ | ||
- | The Linux SDK can be built using yocto. Check the [[ https:// |