From: Thomas Walzer Date: Wed, 13 Jan 2021 11:45:36 +0000 (+0100) Subject: Added Create a Custom Recipe X-Git-Tag: 11.91.0~13 X-Git-Url: https://gerrit.automotivelinux.org/gerrit/gitweb?a=commitdiff_plain;h=5089674bc856379c6007db132b354866d71d5fb1;p=AGL%2Fdocumentation.git Added Create a Custom Recipe Signed-off-by: Thomas Walzer Change-Id: Ice9a0c4bf385e4a2af5c0e88a1c0d18a1c6ceb74 Reviewed-on: https://gerrit.automotivelinux.org/gerrit/c/AGL/documentation/+/25899 Reviewed-by: Jan-Simon Moeller Tested-by: Jan-Simon Moeller --- diff --git a/docs/3_Developer_Guides/4_Creating_a_custom_recipe.md b/docs/3_Developer_Guides/4_Creating_a_custom_recipe.md new file mode 100644 index 0000000..f8650e8 --- /dev/null +++ b/docs/3_Developer_Guides/4_Creating_a_custom_recipe.md @@ -0,0 +1,49 @@ +--- +title: Creating a Custom Recipe +--- + + +For adding a custom linux software/service like cannelloni you have to do the following steps: + +1. Add repo via devtool (gitrepo stands for the url) + + ``` + devtool add gitrepo + ``` +2. Try to bitbake, if it is working go to step 3 + + ``` + bitbake packagename (gitrepo name) + ``` + If it is not working you can do (repeating) following steps until it is working + + 1. change/modify the recipe in /workspace/recipe/packagename + 2. change/modify the sources in /workspace/sources/packagename + 3. bitbake packagename + + Now update the recipe, if you do this the first time you have to adapt the license and the LIC-File-Checksum + + ``` + devtool update-recipce packagename + ``` + +3. Build the recipe and image with devtool + + ``` + devtool build packagename + devtool build-image agl-demo-platform + ``` + + If that is working you could add it to git/gerrit. You have to add your recipe to a layer. + + 1. Copy files to the recipe + 2. add recipe to a packagegroup + +4. Git + + ``` + git review + git review -s + git remote -v update + ``` +![Build recipe](images/AGL_add_recipe.png) \ No newline at end of file diff --git a/docs/3_Developer_Guides/images/AGL_add_recipe.png b/docs/3_Developer_Guides/images/AGL_add_recipe.png new file mode 100644 index 0000000..ff391bf Binary files /dev/null and b/docs/3_Developer_Guides/images/AGL_add_recipe.png differ