Hier werden die Unterschiede zwischen zwei Versionen angezeigt.
| Beide Seiten der vorigen RevisionVorhergehende ÜberarbeitungNächste Überarbeitung | Vorhergehende Überarbeitung | ||
| software:linux:yocto:recipes [2023-06-13 09:46] – Urs Graf | software:linux:yocto:recipes [2023-06-13 10:19] (aktuell) – Urs Graf | ||
|---|---|---|---|
| Zeile 37: | Zeile 37: | ||
| ===== Anatomy of a Recipe ===== | ===== Anatomy of a Recipe ===== | ||
| - | In essence, a recipe needs provide 4 things: | + | In essence, a recipe needs to provide 4 things: |
| - | * where is source (code) | + | * where is the source (code) |
| * how to build it | * how to build it | ||
| * how/where to install it (in the image) | * how/where to install it (in the image) | ||
| Zeile 51: | Zeile 51: | ||
| Almost all recipes need some source code or other source from which to build the software. | Almost all recipes need some source code or other source from which to build the software. | ||
| In bitbake this step is called '' | In bitbake this step is called '' | ||
| - | Sources are specified by setting the '' | + | Sources are specified by setting the '' |
| For example, setting '' | For example, setting '' | ||
| There is a variety of fetchers available for downloading files from the internet or cloning git repositories and more. | There is a variety of fetchers available for downloading files from the internet or cloning git repositories and more. | ||
| - | Each has their own requirements and options, which can be found [[ https:// | + | Each has their own requirements and options, which can be found [[ https:// |
| < | < | ||
| Zeile 104: | Zeile 104: | ||
| </ | </ | ||
| - | For makefile based projects, see [[ https://www.yoctoproject.org/ | + | For makefile based projects, see [[ https://docs.yoctoproject.org/ |
| ==== Appending a Function ==== | ==== Appending a Function ==== | ||