Unterschiede

Hier werden die Unterschiede zwischen zwei Versionen angezeigt.

Link zu dieser Vergleichsansicht

Beide Seiten der vorigen RevisionVorhergehende Überarbeitung
Nächste Überarbeitung
Vorhergehende Überarbeitung
Nächste ÜberarbeitungBeide Seiten der Revision
software:linux:yocto:devtool [2021-11-29 11:36] Marco Fuchssoftware:linux:yocto:devtool [2023-06-13 12:51] Urs Graf
Zeile 2: Zeile 2:
  
 ''devtool'' is a helper program for adding and modifying recipes in yocto. ''devtool'' is a helper program for adding and modifying recipes in yocto.
-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 SDK ]].+It is available as part of the yocto build environment either through setting up a full yocto build environment, see [[ setup | Setup and Building ]] or through the [[ sdks#extensible_sdk Extensible SDK]].
  
-Upon invoking ''devtool'', it creates a workspace layer inside the ''build'' directory to store any and all new recipes and modifications to existing ones. +Upon invoking ''devtool'', it creates a workspace layer inside the ''build'' directory to store new recipes and modifications to existing ones. 
-The workspace also includes the sources for all recipes touched by ''devtool'', so that they can easily be modified and persist through cleaning actions such as ''bitbake -c cleanall''.+The workspace also includes the sources for all recipes touched by ''devtool'', so that they can easily be modified and persist through cleaning actions such as ''bitbake -c cleanall''. When using a [[sdks#extensible_sdk|Extensible SDK]] the workspace is directly created within it.
  
 Furthermore, ''devtool'' allows for easy creation of patches, at least when used with sources from a ''git'' repository. Furthermore, ''devtool'' allows for easy creation of patches, at least when used with sources from a ''git'' repository.
Zeile 12: Zeile 12:
  
 ==== devtool add ==== ==== devtool add ====
 +You can add your own sources and automatically create recipes as given in [[https://docs.yoctoproject.org/sdk-manual/extensible.html#use-devtool-add-to-add-an-application|Add an Application]]. 
 +<code text>
 +devtool add <recipe> <srctree>
 +</code>
  
 ==== devtool modify ==== ==== devtool modify ====
Zeile 28: Zeile 32:
  
 ==== devtool menuconfig ==== ==== devtool menuconfig ====
 +Use the ''devtool menuconfig'' command to change the kernel configuration. 
 +<code text>
 +devtool menuconfig <kernel-recipe>
 +</code>
  
 ==== devtool  finish ==== ==== devtool  finish ====
Zeile 37: Zeile 45:
 devtool build-image <image> devtool build-image <image>
 </code> </code>
 +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 <recipe> devtool build <recipe>
- 
  
 # for example: # for example:
Zeile 48: Zeile 58:
  
 ==== 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 <recipe> <target> devtool deploy-target <recipe> <target>