summaryrefslogtreecommitdiffstats
path: root/meta
diff options
context:
space:
mode:
authorValeria Petrov <valeria.petrov@spinetix.com>2025-03-21 12:39:04 +0100
committerRichard Purdie <richard.purdie@linuxfoundation.org>2025-03-24 17:29:16 +0000
commite6a25fecfc4d6cef01d9144ebefa6e948f602649 (patch)
treee5547cf9a2790113d8afee019c93932ab675f2ea /meta
parent2c1ae6e2ffc140746e58c69a7eb7aa27d27aca6b (diff)
downloadpoky-e6a25fecfc4d6cef01d9144ebefa6e948f602649.tar.gz
grub2: Add GRUB_MKIMAGE_OPTS for configurable grub-mkimage options
Introduce the GRUB_MKIMAGE_OPTS variable to allow additional options to be passed to grub-mkimage, making its behavior more configurable. (for example, this allows disabling shim lock when necessary). Update do_mkimage to use ${GRUB_MKIMAGE_OPTS}. This change reduce the need for hardcoded modifications and makes future adjustments easier. (From OE-Core rev: a6147adefcba7aae3f4eb8ed76d6a94315cafe61) Signed-off-by: Valeria Petrov <valeria.petrov@spinetix.com> Signed-off-by: Mathieu Dubois-Briand <mathieu.dubois-briand@bootlin.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'meta')
-rw-r--r--meta/recipes-bsp/grub/grub-efi_2.12.bb5
1 files changed, 4 insertions, 1 deletions
diff --git a/meta/recipes-bsp/grub/grub-efi_2.12.bb b/meta/recipes-bsp/grub/grub-efi_2.12.bb
index 6dbc0ccf7f..5b435245ee 100644
--- a/meta/recipes-bsp/grub/grub-efi_2.12.bb
+++ b/meta/recipes-bsp/grub/grub-efi_2.12.bb
@@ -46,6 +46,9 @@ inherit deploy
46CACHED_CONFIGUREVARS += "ac_cv_path_HELP2MAN=" 46CACHED_CONFIGUREVARS += "ac_cv_path_HELP2MAN="
47EXTRA_OECONF += "--enable-efiemu=no" 47EXTRA_OECONF += "--enable-efiemu=no"
48 48
49# Define GRUB_MKIMAGE_OPTS variable for additional grub-mkimage options (e.g., disabling shim lock)
50GRUB_MKIMAGE_OPTS ?= ""
51
49do_mkimage() { 52do_mkimage() {
50 cd ${B} 53 cd ${B}
51 54
@@ -62,7 +65,7 @@ do_mkimage() {
62 # built in cfg file provided via this recipe 65 # built in cfg file provided via this recipe
63 grub-mkimage -v -c ${UNPACKDIR}/cfg -p ${EFIDIR} -d ./grub-core/ \ 66 grub-mkimage -v -c ${UNPACKDIR}/cfg -p ${EFIDIR} -d ./grub-core/ \
64 -O ${GRUB_TARGET}-efi -o ./${GRUB_IMAGE_PREFIX}${GRUB_IMAGE} \ 67 -O ${GRUB_TARGET}-efi -o ./${GRUB_IMAGE_PREFIX}${GRUB_IMAGE} \
65 ${GRUB_MKIMAGE_MODULES} 68 ${GRUB_MKIMAGE_OPTS} ${GRUB_MKIMAGE_MODULES}
66} 69}
67 70
68addtask mkimage before do_install after do_compile 71addtask mkimage before do_install after do_compile