On 7/27/23 7:36 AM, Alexander Kanavin wrote:
Unset LDFLAGS as the standard ones do not work when linking EFI binaries (the new version of gnu-efi adds various apps).
curious about which ldflags are problematic from OE env.
Signed-off-by: Alexander Kanavin <a...@linutronix.de> --- .../gnu-efi/{gnu-efi_3.0.15.bb => gnu-efi_3.0.17.bb} | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) rename meta/recipes-bsp/gnu-efi/{gnu-efi_3.0.15.bb => gnu-efi_3.0.17.bb} (93%) diff --git a/meta/recipes-bsp/gnu-efi/gnu-efi_3.0.15.bb b/meta/recipes-bsp/gnu-efi/gnu-efi_3.0.17.bb similarity index 93% rename from meta/recipes-bsp/gnu-efi/gnu-efi_3.0.15.bb rename to meta/recipes-bsp/gnu-efi/gnu-efi_3.0.17.bb index 5ae6f391ae9..547c469d19f 100644 --- a/meta/recipes-bsp/gnu-efi/gnu-efi_3.0.15.bb +++ b/meta/recipes-bsp/gnu-efi/gnu-efi_3.0.17.bb @@ -17,7 +17,7 @@ SRC_URI = "${SOURCEFORGE_MIRROR}/${BPN}/files/${BP}.tar.bz2 \ file://gnu-efi-3.0.9-fix-clang-build.patch \ "-SRC_URI[sha256sum] = "931a257b9c5c1ba65ff519f18373c438a26825f2db7866b163e96d1b168f20ea"+SRC_URI[sha256sum] = "7807e903349343a7a142ebb934703a2872235e89688cf586c032b0a1087bcaf4"COMPATIBLE_HOST = "(x86_64.*|i.86.*|aarch64.*|arm.*|riscv64.*)-linux"COMPATIBLE_HOST:armv4 = 'null' @@ -34,6 +34,10 @@ def gnu_efi_arch(d): return "ia32" return tarch+do_compile:prepend() {+ unset LDFLAGS +} + EXTRA_OEMAKE = "'ARCH=${@gnu_efi_arch(d)}' 'CC=${CC}' 'AS=${AS}' 'LD=${LD}' 'AR=${AR}' \ 'RANLIB=${RANLIB}' 'OBJCOPY=${OBJCOPY}' 'PREFIX=${prefix}' 'LIBDIR=${libdir}' \ " @@ -46,7 +50,7 @@ do_install() { oe_runmake install INSTALLROOT="${D}" }-FILES:${PN} += "${libdir}/*.lds"+FILES:${PN} += "${libdir}/*.lds ${libdir}/gnuefi/apps"
Do you think if there is any positives of these be packaged separately?
# 64-bit binaries are expected for EFI when targeting X32INSANE_SKIP:${PN}-dev:append:linux-gnux32 = " arch"
OpenPGP_0xBB053355919D3314.asc
Description: OpenPGP public key
OpenPGP_signature.asc
Description: OpenPGP digital signature
-=-=-=-=-=-=-=-=-=-=-=- Links: You receive all messages sent to this group. View/Reply Online (#184966): https://lists.openembedded.org/g/openembedded-core/message/184966 Mute This Topic: https://lists.openembedded.org/mt/100391609/21656 Group Owner: openembedded-core+ow...@lists.openembedded.org Unsubscribe: https://lists.openembedded.org/g/openembedded-core/unsub [arch...@mail-archive.com] -=-=-=-=-=-=-=-=-=-=-=-