grub-efi: Rework GRUB_BUILTIN variable as it is too long
PATCH 1/3 grub-efi: Rework GRUB_BUILTIN variable as it is too long
As we will add new values here, it is better to split it in multiple lines.
Signed-off-by Otavio Salvador <[email protected]>
---
Changes in v2:
- rebase on top of master
meta/recipes-bsp/grub/grub-efi_2.02.bb | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-)
meta/recipes-bsp/grub/grub-efi_2.02.bb +2 -1
@@ -51,7 +51,8 @@ do_install_append_class-target() { {} + } -GRUB_BUILDIN ?= "boot linux ext2 fat serial part_msdos part_gpt normal efi_gop iso9660 search" +GRUB_BUILDIN ?= "boot linux ext2 fat serial part_msdos part_gpt normal \ + efi_gop iso9660 search" do_deploy() { # Search for the grub.cfg on the local boot media by using the
Signature · 1 line
2.15.0
PATCH 2/3 grub-efi: Add loadenv and test as default built-in
To allow scripting and environment changes, the loadenv and test must be enabled. This adds those to the default set.
Signed-off-by Otavio Salvador <[email protected]>
---
Changes in v2: None
meta/recipes-bsp/grub/grub-efi_2.02.bb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
meta/recipes-bsp/grub/grub-efi_2.02.bb +1 -1
@@ -52,7 +52,7 @@ do_install_append_class-target() { } GRUB_BUILDIN ?= "boot linux ext2 fat serial part_msdos part_gpt normal \ - efi_gop iso9660 search" + efi_gop iso9660 search loadenv test" do_deploy() { # Search for the grub.cfg on the local boot media by using the
Signature · 1 line
2.15.0
PATCH 3/3 grub: Move grub-editenv packaging to grub2.inc
In reply to Otavio SalvadorThe editenv utility must be available on grub and grub-efi so we better have it inside the grub2.inc file to avoid the duplication of metadata.
Signed-off-by Otavio Salvador <[email protected]>
---
Changes in v2: None
meta/recipes-bsp/grub/grub2.inc | 6 ++++++ meta/recipes-bsp/grub/grub_2.02.bb | 6 +----- 2 files changed, 7 insertions(+), 5 deletions(-)
meta/recipes-bsp/grub/grub2.inc +6 -0
@@ -70,3 +70,9 @@ do_configure_prepend() { # grub and grub-efi's sysroot/${datadir}/grub/grub-mkconfig_lib are # conflicted, remove it since no one uses it. SYSROOT_DIRS_BLACKLIST += "${datadir}/grub/grub-mkconfig_lib" + +PACKAGES =+ "${PN}-editenv" + +FILES_${PN}-editenv = "${bindir}/grub-editenv" +RDEPENDS_${PN} += "${PN}-editenv" +RDEPENDS_${PN}_class-native = ""
meta/recipes-bsp/grub/grub_2.02.bb +1 -5
@@ -1,10 +1,6 @@ require grub2.inc -RDEPENDS_${PN} = "diffutils freetype grub-editenv" - -PACKAGES =+ "grub-editenv" - -FILES_grub-editenv = "${bindir}/grub-editenv" +RDEPENDS_${PN} += "diffutils freetype" do_install_append () { install -d ${D}${sysconfdir}/grub.d
Signature · 1 line
2.15.0