1
0
mirror of https://git.yoctoproject.org/poky synced 2026-05-30 12:29:55 +00:00

dev-manual: new-recipe.rst: add references to subsections in Examples section

Making it possible to jump right away to the desired example

Rename a section title to make it more suitable for a link title.

Using short references (`Section Name`_) instead of
:ref:`dev-manual/new-recipe:Section Name`) as we are in the same
document.

(From yocto-docs rev: 4058998dbeba4262ccced8999be338c04c324b48)

Signed-off-by: Michael Opdenacker <michael.opdenacker@bootlin.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
This commit is contained in:
Michael Opdenacker
2023-02-23 16:08:00 +01:00
committed by Richard Purdie
parent f279a84ee7
commit a354dc9c62
+9 -9
View File
@@ -361,7 +361,7 @@ and searches specific directories in a certain order:
``files``. The directories are assumed to be subdirectories of the ``files``. The directories are assumed to be subdirectories of the
directory in which the recipe or append file resides. For another directory in which the recipe or append file resides. For another
example that specifies these types of files, see the example that specifies these types of files, see the
":ref:`dev-manual/new-recipe:building a single .c file package (hello world!)`" section. "`building a single .c file package`_" section.
The previous example also specifies a patch file. Patch files are files The previous example also specifies a patch file. Patch files are files
whose names usually end in ``.patch`` or ``.diff`` but can end with whose names usually end in ``.patch`` or ``.diff`` but can end with
@@ -1167,20 +1167,20 @@ Examples
To help summarize how to write a recipe, this section provides some To help summarize how to write a recipe, this section provides some
recipe examples given various scenarios: recipe examples given various scenarios:
- Building packages from a single local file - `Building a single .c file package`_
- Building a Makefile-based package - `Building a Makefile-based package`_
- Building an Autotooled package - `Building an Autotooled package`_
- Building a Meson package - `Building a Meson package`_
- Splitting an application into multiple packages - `Splitting an application into multiple packages`_
- Adding binaries to an image - `Packaging externally produced binaries`_
Building a Single .c File Package (Hello World!) Building a Single .c File Package
------------------------------------------------ ---------------------------------
Building an application from a single file that is stored locally (e.g. under Building an application from a single file that is stored locally (e.g. under
``files``) requires a recipe that has the file listed in the :term:`SRC_URI` ``files``) requires a recipe that has the file listed in the :term:`SRC_URI`