grub: split grub-editenv into it's own package

grub-editenv edits the env block at runtime on a booted system. Other
tools can depend on it to configure a live system, for ex. to set next
boot mode upon reboot. By splitting grub-editenv, tools don't have to
depend on the entire grub package (grub-editenv just edits one file).

(From OE-Core rev: 24b832b6e31c4e358d0c7a0062b69f66469cdcee)

Signed-off-by: Alejandro del Castillo <alejandro.delcastillo@ni.com>
Signed-off-by: Ioan-Adrian Ratiu <adrian.ratiu@ni.com>
Signed-off-by: Ross Burton <ross.burton@intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
This commit is contained in:
Alejandro del Castillo 2016-08-16 17:00:30 +03:00 committed by Richard Purdie
parent 2973bc2b29
commit 10e44fe6fb
1 changed files with 5 additions and 1 deletions

View File

@ -1,6 +1,6 @@
require grub2.inc
RDEPENDS_${PN} = "diffutils freetype"
RDEPENDS_${PN} = "diffutils freetype grub-editenv"
PR = "r1"
EXTRA_OECONF = "--with-platform=pc --disable-grub-mkfont --program-prefix="" \
@ -8,6 +8,10 @@ EXTRA_OECONF = "--with-platform=pc --disable-grub-mkfont --program-prefix="" \
EXTRA_OECONF += "${@bb.utils.contains('DISTRO_FEATURES', 'largefile', '--enable-largefile', '--disable-largefile', d)}"
PACKAGES =+ "grub-editenv"
FILES_grub-editenv = "${bindir}/grub-editenv"
do_install_append () {
install -d ${D}${sysconfdir}/grub.d
}