]> code.ossystems Code Review - openembedded-core.git/commitdiff
gnu-efi: copy header files for x32 build
authorSaul Wold <sgw@linux.intel.com>
Mon, 10 Apr 2017 15:58:30 +0000 (08:58 -0700)
committerRichard Purdie <richard.purdie@linuxfoundation.org>
Tue, 11 Apr 2017 07:50:53 +0000 (08:50 +0100)
Gnu-efi needs to be build for 64bit since it is a boot time tool. It
needs these 2 headers to be in 64 bit versions, we can use the existing
32bit ones as there is not really any difference.

[YOCTO #11051]

Signed-off-by: Saul Wold <sgw@linux.intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
meta/recipes-bsp/gnu-efi/gnu-efi_3.0.5.bb

index f46381d5f190e3eb97f00e3e8b9bb5eca3a79c2e..6f235b7455ca971c33d98995f4919674c10f80f8 100644 (file)
@@ -24,6 +24,11 @@ SRC_URI[sha256sum] = "bd8fcd5914f18fc0e4ba948ab03b00013e528504f529c60739b748f6ef
 COMPATIBLE_HOST = "(x86_64.*|i.86.*|aarch64.*|arm.*)-linux"
 COMPATIBLE_HOST_armv4 = 'null'
 
+do_configure_linux-gnux32_prepend() {
+       cp ${STAGING_INCDIR}/gnu/stubs-x32.h ${STAGING_INCDIR}/gnu/stubs-64.h
+       cp ${STAGING_INCDIR}/bits/long-double-32.h ${STAGING_INCDIR}/bits/long-double-64.h
+}
+
 def gnu_efi_arch(d):
     import re
     tarch = d.getVar("TARGET_ARCH")