f8650e8b528ccf822ee4a10d1f6ed3ecba3f422a
[AGL/documentation.git] / docs / 4_Developer_Guides / 4_Creating_a_custom_recipe.md
1 ---
2 title: Creating a Custom Recipe
3 ---
4
5
6 For adding a custom linux software/service like cannelloni you have to do the following steps:
7
8 1. Add repo via devtool (gitrepo stands for the url)
9
10         ```
11         devtool add gitrepo
12         ```
13 2. Try to bitbake, if it is working go to step 3
14         
15         ```
16         bitbake packagename (gitrepo name)
17         ```
18     If it is not working you can do (repeating) following steps until it is working
19
20         1. change/modify the recipe in /workspace/recipe/packagename
21         2. change/modify  the sources in /workspace/sources/packagename 
22     3. bitbake packagename
23
24         Now update the recipe, if you do this the first time you have to adapt the license and the LIC-File-Checksum
25
26         ```
27         devtool update-recipce packagename
28         ```
29
30 3. Build the recipe and image with devtool
31   
32     ```
33         devtool build packagename
34         devtool build-image agl-demo-platform
35     ```
36
37         If that is working you could add it to git/gerrit. You have to add your recipe to a layer.
38
39         1. Copy files to the recipe
40         2. add recipe to a packagegroup
41         
42 4. Git 
43
44         ```
45         git review 
46         git review -s
47         git remote -v update
48         ```
49 ![Build recipe](images/AGL_add_recipe.png)