diff options
author | Robert P. J. Day <rpjday@crashcourse.ca> | 2025-06-23 13:40:54 -0400 |
---|---|---|
committer | Richard Purdie <richard.purdie@linuxfoundation.org> | 2025-06-30 17:44:22 +0100 |
commit | c11621b39b30bbedd9e6f89497519de2e702168c (patch) | |
tree | 7a67dbe3619ad15c644db43cf18d67a61f639379 /documentation/dev-manual | |
parent | 2e386aea799c6d39d48a4c74be353a615ea40db3 (diff) | |
download | poky-c11621b39b30bbedd9e6f89497519de2e702168c.tar.gz |
dev-manual: show bin_package example wireless-regdb recipe
Add a snippet from the wireless-regdb recipe to demonstrate a simple
example of a bin_package recipe.
(From yocto-docs rev: cbe3e272965cb706a73de36af01e1e0c65ea4efa)
Signed-off-by: Robert P. J. Day <rpjday@crashcourse.ca>
Signed-off-by: Antonin Godard <antonin.godard@bootlin.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'documentation/dev-manual')
-rw-r--r-- | documentation/dev-manual/new-recipe.rst | 20 |
1 files changed, 20 insertions, 0 deletions
diff --git a/documentation/dev-manual/new-recipe.rst b/documentation/dev-manual/new-recipe.rst index 7b39b9984e..c8cf6b458e 100644 --- a/documentation/dev-manual/new-recipe.rst +++ b/documentation/dev-manual/new-recipe.rst | |||
@@ -1393,6 +1393,26 @@ doing the following: | |||
1393 | where you have installed them and whether those files are in | 1393 | where you have installed them and whether those files are in |
1394 | different locations than the defaults. | 1394 | different locations than the defaults. |
1395 | 1395 | ||
1396 | As a basic example of a :ref:`ref-classes-bin-package`-style recipe, consider | ||
1397 | this snippet from the | ||
1398 | :oe_git:`wireless-regdb </openembedded-core/tree/meta/recipes-kernel/wireless-regdb>` | ||
1399 | recipe file, which fetches a single tarball of binary content and manually | ||
1400 | installs with no need for any configuration or compilation:: | ||
1401 | |||
1402 | SRC_URI = "https://www.kernel.org/pub/software/network/${BPN}/${BP}.tar.xz" | ||
1403 | SRC_URI[sha256sum] = "57f8e7721cf5a880c13ae0c202edbb21092a060d45f9e9c59bcd2a8272bfa456" | ||
1404 | |||
1405 | inherit bin_package allarch | ||
1406 | |||
1407 | do_install() { | ||
1408 | install -d -m0755 ${D}${nonarch_libdir}/crda | ||
1409 | install -d -m0755 ${D}${sysconfdir}/wireless-regdb/pubkeys | ||
1410 | install -m 0644 regulatory.bin ${D}${nonarch_libdir}/crda/regulatory.bin | ||
1411 | install -m 0644 wens.key.pub.pem ${D}${sysconfdir}/wireless-regdb/pubkeys/wens.key.pub.pem | ||
1412 | install -m 0644 -D regulatory.db ${D}${nonarch_base_libdir}/firmware/regulatory.db | ||
1413 | install -m 0644 regulatory.db.p7s ${D}${nonarch_base_libdir}/firmware/regulatory.db.p7s | ||
1414 | } | ||
1415 | |||
1396 | Following Recipe Style Guidelines | 1416 | Following Recipe Style Guidelines |
1397 | ================================= | 1417 | ================================= |
1398 | 1418 | ||