[OE-core] [PATCH] grub-efi: Force no-pie build

Ricardo Ribalda Delgado ricardo.ribalda at gmail.com
Tue Nov 22 09:49:02 UTC 2016


PIE is enabled by default on the latest Debian LD. Disable it for
grub-efi. Otherwise:

| /usr/bin/ld: -r and -pie may not be used together
| collect2: error: ld returned 1 exit status
| Makefile:61382: recipe for target 'trig.module' failed
| make[3]: *** [trig.module] Error 1

Signed-off-by: Ricardo Ribalda Delgado <ricardo.ribalda at gmail.com>
---
 meta/recipes-bsp/grub/grub-efi_2.00.bb | 4 +++-
 1 file changed, 3 insertions(+), 1 deletion(-)

diff --git a/meta/recipes-bsp/grub/grub-efi_2.00.bb b/meta/recipes-bsp/grub/grub-efi_2.00.bb
index 5a0dc954a3bf..9d07a31de7ce 100644
--- a/meta/recipes-bsp/grub/grub-efi_2.00.bb
+++ b/meta/recipes-bsp/grub/grub-efi_2.00.bb
@@ -2,12 +2,14 @@ require grub2.inc
 
 DEPENDS_class-target = "grub-efi-native"
 RDEPENDS_${PN}_class-target = "diffutils freetype"
-PR = "r3"
+PE = "1"
 
 SRC_URI += " \
            file://cfg \
           "
 
+BUILD_LDFLAGS += "-no-pie"
+
 S = "${WORKDIR}/grub-${PV}"
 
 # Determine the target arch for the grub modules
-- 
2.10.2




More information about the Openembedded-core mailing list