@@ -306,16 +306,14 @@ Following is the complete "Hello World" example.
Move to the ``conf`` directory and create a ``layer.conf`` file that has the
following::
- BBPATH .= ":${LAYERDIR}"
- BBFILES += "${LAYERDIR}/*.bb"
- BBFILE_COLLECTIONS += "mylayer"
- BBFILE_PATTERN_mylayer := "^${LAYERDIR_RE}/"
+ LAYERNAME = "mylayer"
+ LAYERVERSION = "1"
LAYERSERIES_CORENAMES = "hello_world_example"
- LAYERSERIES_COMPAT_mylayer = "hello_world_example"
+ LAYERSERIES_COMPAT = "hello_world_example"
- For information on these variables, click on :term:`BBFILES`,
- :term:`LAYERDIR`, :term:`BBFILE_COLLECTIONS`, :term:`BBFILE_PATTERN_mylayer <BBFILE_PATTERN>`
- or :term:`LAYERSERIES_COMPAT` to go to the definitions in the glossary.
+ For information on these variables, click on :term:`LAYERNAME`,
+ :term:`LAYERVERSION`, :term:`LAYERSERIES_CORENAMES` or
+ :term:`LAYERSERIES_COMPAT` to go to the definitions in the glossary.
.. note::
@@ -325,8 +323,14 @@ Following is the complete "Hello World" example.
is compatible, and add the meta-openembedded layer to your project.
You need to create the recipe file next. Inside your layer at the
- top-level, use an editor and create a recipe file named
- ``printhello.bb`` that has the following::
+ top-level, create the ``recipes-hello/hello`` directories:
+
+ .. code-block::
+
+ mkdir -p recipes-hello/hello
+
+ Then, in the ``hello`` directory created above, use an editor and create a
+ recipe file named ``printhello.bb`` that has the following::
DESCRIPTION = "Prints Hello World"
PN = 'printhello'
@@ -351,7 +355,7 @@ Following is the complete "Hello World" example.
$ cd $HOME/hello
$ bitbake printhello
- ERROR: no recipe files to build, check your BBPATH and BBFILES?
+ ERROR: Nothing PROVIDES 'printhello'
Summary: There was 1 ERROR message shown, returning a non-zero exit code.
The new layer.conf format takes a minimal number of variable assignments - reflect it in the intro example. Signed-off-by: Antonin Godard <antonin.godard@bootlin.com> --- .../bitbake-user-manual-hello.rst | 26 +++++++++++++--------- 1 file changed, 15 insertions(+), 11 deletions(-)