Hier werden die Unterschiede zwischen zwei Versionen angezeigt.
Beide Seiten der vorigen RevisionVorhergehende ÜberarbeitungNächste Überarbeitung | Vorhergehende Überarbeitung | ||
software:linux:yocto:devtool [2022-10-04 14:52] – Urs Graf | software:linux:yocto:devtool [2023-11-16 15:23] (aktuell) – Urs Graf | ||
---|---|---|---|
Zeile 2: | Zeile 2: | ||
'' | '' | ||
- | It is available as part of the yocto build environment either through setting up a full yocto build environment, | + | It is available as part of the yocto build environment either through setting up a full yocto build environment, |
- | Upon invoking | + | Invoking |
- | The workspace also includes the sources for all recipes touched by '' | + | The workspace also includes the sources for all recipes touched by '' |
Furthermore, | Furthermore, | ||
Zeile 13: | Zeile 13: | ||
==== devtool add ==== | ==== devtool add ==== | ||
You can add your own sources and automatically create recipes as given in [[https:// | You can add your own sources and automatically create recipes as given in [[https:// | ||
+ | <code text> | ||
+ | devtool add < | ||
+ | </ | ||
==== devtool modify ==== | ==== devtool modify ==== | ||
Zeile 29: | Zeile 32: | ||
==== devtool menuconfig ==== | ==== devtool menuconfig ==== | ||
+ | Use the '' | ||
+ | <code text> | ||
+ | devtool menuconfig < | ||
+ | </ | ||
==== devtool | ==== devtool | ||
+ | Allow to complete the development done through devtool by updating layer(s) with the work done. Pushes any committed changes to the specified recipe to the specified layer and removes it from your workspace. | ||
+ | <code text> | ||
+ | devtool finish < | ||
+ | </ | ||
==== devtool build-image ==== | ==== devtool build-image ==== | ||
Zeile 60: | Zeile 71: | ||
</ | </ | ||
- | + | ===== Use Cases ===== | |
+ | - Modify the device tree of the kernel and put the changes into its own layer <code text> | ||
+ | # build image for [[software: | ||
+ | # alter device tree in build/ | ||
+ | # commit changes | ||
+ | $ bitbake-layers create-layer ../ | ||
+ | $ bitbake-layers add-layer ../ | ||
+ | $ devtool finish -f linux-stable-rcn-ee ../ | ||
+ | </ | ||
+ | - Repository of used library has new commit. How can you force yocto to fetch the new commit and rebuild the image? Simply, change the source reference in the recipe, e.g. <code text> | ||
+ | #SRCREV = " | ||
+ | SRCREV = " | ||
+ | </ |