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:yocto:devtool [2021-11-29 11:36] – Marco Fuchs | software:linux:yocto:devtool [2023-10-17 16:58] – Urs Graf | ||
---|---|---|---|
Zeile 2: | Zeile 2: | ||
'' | '' | ||
- | It is available as part of the yocto build environment either through setting up a [[ setup | full yocto build environment ]] or through the [[ sdk | extensible | + | It is available as part of the yocto build environment either through setting up a full yocto build environment, see [[ setup | Setup and Building |
- | 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 12: | Zeile 12: | ||
==== devtool add ==== | ==== devtool add ==== | ||
+ | You can add your own sources and automatically create recipes as given in [[https:// | ||
+ | <code text> | ||
+ | devtool add < | ||
+ | </ | ||
==== devtool modify ==== | ==== devtool modify ==== | ||
Zeile 28: | 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 37: | Zeile 49: | ||
devtool build-image < | devtool build-image < | ||
</ | </ | ||
+ | The output tells in which directory the new image was created. | ||
==== devtool build ==== | ==== devtool build ==== | ||
+ | If the change affects only one or a few recipes, you can build this recipes individually with: | ||
+ | |||
<code text> | <code text> | ||
devtool build < | devtool build < | ||
- | |||
# for example: | # for example: | ||
Zeile 48: | Zeile 62: | ||
==== devtool deploy-target ==== | ==== devtool deploy-target ==== | ||
+ | The recipe changes described above can be deployed directly to the target machine using the following command: | ||
+ | |||
<code text> | <code text> | ||
devtool deploy-target < | devtool deploy-target < | ||
Zeile 55: | Zeile 71: | ||
</ | </ | ||
- | + | ===== Use Cases ===== | |
+ | Modify the device tree of the kernel and put the changes into its own layer <code text> | ||
+ | # set conf | ||
+ | $ bitbake-layers create-layer ../ | ||
+ | $ bitbake-layers add-layer ../ | ||
+ | $ devtool finish -f linux-stable-rcn-ee ../ | ||
+ | </ |