diff options
author | Paul Barker <paul@pbarker.dev> | 2021-08-09 20:20:42 +0100 |
---|---|---|
committer | Richard Purdie <richard.purdie@linuxfoundation.org> | 2021-08-13 14:44:05 +0100 |
commit | c5ae7decf387c3d1dcdefbc6feb3bc6ea09ffcde (patch) | |
tree | 31fa74a3ff328107ae41a362d1e150c600c451fd /meta | |
parent | 1e2e9a84d6dd81d7f6dd69c0d119d0149d10ade1 (diff) | |
download | poky-c5ae7decf387c3d1dcdefbc6feb3bc6ea09ffcde.tar.gz |
u-boot: Package extlinux.conf separately
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.
(From OE-Core rev: 40de891259e5b335e636cfa6f831b62415127e4c)
Signed-off-by: Paul Barker <paul@pbarker.dev>
Signed-off-by: Alexandre Belloni <alexandre.belloni@bootlin.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'meta')
-rw-r--r-- | meta/recipes-bsp/u-boot/u-boot.inc | 5 |
1 files changed, 4 insertions, 1 deletions
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 () { | |||
210 | fi | 210 | fi |
211 | } | 211 | } |
212 | 212 | ||
213 | PACKAGE_BEFORE_PN += "${PN}-env" | 213 | PACKAGE_BEFORE_PN += "${PN}-env ${PN}-extlinux" |
214 | 214 | ||
215 | RPROVIDES:${PN}-env += "u-boot-default-env" | 215 | RPROVIDES:${PN}-env += "u-boot-default-env" |
216 | ALLOW_EMPTY:${PN}-env = "1" | 216 | ALLOW_EMPTY:${PN}-env = "1" |
@@ -219,6 +219,9 @@ FILES:${PN}-env = " \ | |||
219 | ${sysconfdir}/fw_env.config \ | 219 | ${sysconfdir}/fw_env.config \ |
220 | " | 220 | " |
221 | 221 | ||
222 | FILES:${PN}-extlinux = "${UBOOT_EXTLINUX_INSTALL_DIR}/${UBOOT_EXTLINUX_CONF_NAME}" | ||
223 | RDEPENDS:${PN} += "${@bb.utils.contains('UBOOT_EXTLINUX', '1', '${PN}-extlinux', '', d)}" | ||
224 | |||
222 | FILES:${PN} = "/boot ${datadir}" | 225 | FILES:${PN} = "/boot ${datadir}" |
223 | RDEPENDS:${PN} += "${PN}-env" | 226 | RDEPENDS:${PN} += "${PN}-env" |
224 | 227 | ||