summaryrefslogtreecommitdiffstats
path: root/documentation/dev-manual/new-recipe.rst
diff options
context:
space:
mode:
Diffstat (limited to 'documentation/dev-manual/new-recipe.rst')
-rw-r--r--documentation/dev-manual/new-recipe.rst16
1 files changed, 5 insertions, 11 deletions
diff --git a/documentation/dev-manual/new-recipe.rst b/documentation/dev-manual/new-recipe.rst
index 2e9c2089f7..3adebf2746 100644
--- a/documentation/dev-manual/new-recipe.rst
+++ b/documentation/dev-manual/new-recipe.rst
@@ -109,8 +109,7 @@ Following are some syntax examples:
109 109
110 - Use this syntax to generate a recipe using code that 110 - Use this syntax to generate a recipe using code that
111 you extract from source. The extracted code is placed in its own layer 111 you extract from source. The extracted code is placed in its own layer
112 defined by :term:`EXTERNALSRC`. 112 defined by :term:`EXTERNALSRC`::
113 ::
114 113
115 recipetool create -o OUTFILE -x EXTERNALSRC source 114 recipetool create -o OUTFILE -x EXTERNALSRC source
116 115
@@ -147,8 +146,7 @@ get started. Here are some points on both methods:
147- *Use and modify the following skeleton recipe:* If for some reason 146- *Use and modify the following skeleton recipe:* If for some reason
148 you do not want to use ``recipetool`` and you cannot find an existing 147 you do not want to use ``recipetool`` and you cannot find an existing
149 recipe that is close to meeting your needs, you can use the following 148 recipe that is close to meeting your needs, you can use the following
150 structure to provide the fundamental areas of a new recipe. 149 structure to provide the fundamental areas of a new recipe::
151 ::
152 150
153 DESCRIPTION = "" 151 DESCRIPTION = ""
154 HOMEPAGE = "" 152 HOMEPAGE = ""
@@ -347,9 +345,7 @@ paste them into your recipe and then run the build again to continue.
347This final example is a bit more complicated and is from the 345This final example is a bit more complicated and is from the
348``meta/recipes-sato/rxvt-unicode/rxvt-unicode_9.20.bb`` recipe. The 346``meta/recipes-sato/rxvt-unicode/rxvt-unicode_9.20.bb`` recipe. The
349example's :term:`SRC_URI` statement identifies multiple files as the source 347example's :term:`SRC_URI` statement identifies multiple files as the source
350files for the recipe: a tarball, a patch file, a desktop file, and an 348files for the recipe: a tarball, a patch file, a desktop file, and an icon::
351icon.
352::
353 349
354 SRC_URI = "http://dist.schmorp.de/rxvt-unicode/Attic/rxvt-unicode-${PV}.tar.bz2 \ 350 SRC_URI = "http://dist.schmorp.de/rxvt-unicode/Attic/rxvt-unicode-${PV}.tar.bz2 \
355 file://xwc.patch \ 351 file://xwc.patch \
@@ -1196,8 +1192,7 @@ under ``files``) requires a recipe that has the file listed in the
1196:ref:`ref-tasks-compile` and :ref:`ref-tasks-install` tasks. The :term:`S` variable defines the 1192:ref:`ref-tasks-compile` and :ref:`ref-tasks-install` tasks. The :term:`S` variable defines the
1197directory containing the source code, which is set to 1193directory containing the source code, which is set to
1198:term:`WORKDIR` in this case --- the 1194:term:`WORKDIR` in this case --- the
1199directory BitBake uses for the build. 1195directory BitBake uses for the build::
1200::
1201 1196
1202 SUMMARY = "Simple helloworld application" 1197 SUMMARY = "Simple helloworld application"
1203 SECTION = "examples" 1198 SECTION = "examples"
@@ -1233,8 +1228,7 @@ which contains the definitions of all the steps needed to build an
1233Autotool-based application. The result of the build is automatically 1228Autotool-based application. The result of the build is automatically
1234packaged. And, if the application uses NLS for localization, packages 1229packaged. And, if the application uses NLS for localization, packages
1235with local information are generated (one package per language). 1230with local information are generated (one package per language).
1236Following is one example: (``hello_2.3.bb``) 1231Following is one example: (``hello_2.3.bb``)::
1237::
1238 1232
1239 SUMMARY = "GNU Helloworld application" 1233 SUMMARY = "GNU Helloworld application"
1240 SECTION = "examples" 1234 SECTION = "examples"