Skip to contentSkip to conversation

grub-efi: Rework GRUB_BUILTIN variable as it is too long

PATCH New Otavio Salvador 1 participant 3 messages Dec 1, 2017

lore
Share & tools
lore
#0 lore raw

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.

---

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
index 44e32a88f1..a7be6cf30d 100644
@@ -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
#1 lore raw

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.

---

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
index a7be6cf30d..a38d05a2a0 100644
@@ -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
#2 lore raw

PATCH 3/3 grub: Move grub-editenv packaging to grub2.inc

In reply to Otavio Salvador

The 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.

---

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
index a56fbe7bf8..28f96bb162 100644
@@ -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
index b8055e7537..3e61f6a16d 100644
@@ -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