[OE-core] [PATCH] grub-efi: run autogen.sh before configure

Catalin Enache catalin.enache at windriver.com
Fri May 6 12:13:50 UTC 2016


When adding new source files from upstream the autogen.sh
script needs to be run.

Signed-off-by: Catalin Enache <catalin.enache at windriver.com>
---
 meta/recipes-bsp/grub/grub-efi_2.00.bb | 6 ++++++
 1 file changed, 6 insertions(+)

diff --git a/meta/recipes-bsp/grub/grub-efi_2.00.bb b/meta/recipes-bsp/grub/grub-efi_2.00.bb
index 5a0dc95..62ded6e 100644
--- a/meta/recipes-bsp/grub/grub-efi_2.00.bb
+++ b/meta/recipes-bsp/grub/grub-efi_2.00.bb
@@ -2,6 +2,7 @@ require grub2.inc
 
 DEPENDS_class-target = "grub-efi-native"
 RDEPENDS_${PN}_class-target = "diffutils freetype"
+DEPENDS += "autogen-native"
 PR = "r3"
 
 SRC_URI += " \
@@ -39,6 +40,11 @@ EXTRA_OECONF += "${@bb.utils.contains('DISTRO_FEATURES', 'largefile', '--enable-
 # and many other places in the grub code when compiled with some native gcc compilers (specifically, gentoo)
 CFLAGS_append_class-native = " -Wno-error=trampolines"
 
+do_configure_prepend() {
+    ( cd ${S}
+    ${S}/autogen.sh )
+}
+
 do_install_class-native() {
 	install -d ${D}${bindir}
 	install -m 755 grub-mkimage ${D}${bindir}
-- 
2.7.4




More information about the Openembedded-core mailing list