* [PATCH] u-boot: Package extlinux.conf separately
@ 2021-08-09 19:20 Paul Barker
0 siblings, 0 replies; only message in thread
From: Paul Barker @ 2021-08-09 19:20 UTC (permalink / raw)
To: openembedded-core; +Cc: Paul Barker
A separate u-boot-extlinux package is created for the extlinux.conf file
so that it can be installed on its own if needed. If this package is
populated, it is added as a dependency of the main u-boot package so
that installing just u-boot still results in the extlinux.conf file
being present in the rootfs.
Signed-off-by: Paul Barker <paul@pbarker.dev>
---
meta/recipes-bsp/u-boot/u-boot.inc | 5 ++++-
1 file changed, 4 insertions(+), 1 deletion(-)
diff --git a/meta/recipes-bsp/u-boot/u-boot.inc b/meta/recipes-bsp/u-boot/u-boot.inc
index 4340b17cb6..971fdbb102 100644
--- a/meta/recipes-bsp/u-boot/u-boot.inc
+++ b/meta/recipes-bsp/u-boot/u-boot.inc
@@ -210,7 +210,7 @@ do_install () {
fi
}
-PACKAGE_BEFORE_PN += "${PN}-env"
+PACKAGE_BEFORE_PN += "${PN}-env ${PN}-extlinux"
RPROVIDES:${PN}-env += "u-boot-default-env"
ALLOW_EMPTY:${PN}-env = "1"
@@ -219,6 +219,9 @@ FILES:${PN}-env = " \
${sysconfdir}/fw_env.config \
"
+FILES:${PN}-extlinux = "${UBOOT_EXTLINUX_INSTALL_DIR}/${UBOOT_EXTLINUX_CONF_NAME}"
+RDEPENDS:${PN} += "${@bb.utils.contains('UBOOT_EXTLINUX', '1', '${PN}-extlinux', '', d)}"
+
FILES:${PN} = "/boot ${datadir}"
RDEPENDS:${PN} += "${PN}-env"
--
2.31.1
^ permalink raw reply related [flat|nested] only message in thread
only message in thread, other threads:[~2021-08-09 19:20 UTC | newest]
Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2021-08-09 19:20 [PATCH] u-boot: Package extlinux.conf separately Paul Barker
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox