Skip to contentSkip to conversation

binutils : enable production of EFI binaries on x86-64

PATCH In review Christopher Clark 3 participants 3 messages Jul 25, 2018

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 binutils : enable production of EFI binaries on x86-64

From: Christopher Clark <[email protected]>

When MACHINE_FEATURES includes "efi" and target is x86-64, enable the linker to produce Portable Executables: EFI binaries.

Supplies "--enable-targets=x86_64-pep" in EXTRA_OECONF.

Enables building the EFI variant of the Xen hypervisor.

---
 meta/recipes-devtools/binutils/binutils.inc | 5 ++++-
 1 file changed, 4 insertions(+), 1 deletion(-)
meta/recipes-devtools/binutils/binutils.inc +4 -1
index 37813dd..eedcc7e 100644
@@ -69,12 +69,15 @@ python do_package_prepend() {
 
 B = "${S}/build.${HOST_SYS}.${TARGET_SYS}"
 
+ENABLE_EFI_BINARIES_x86-64 = "--enable-targets=x86_64-pep"
+
 EXTRA_OECONF = "--program-prefix=${TARGET_PREFIX} \
                 --disable-werror \
                 --enable-deterministic-archives \
                 --enable-plugins \
                 ${LDGOLD} \
-                ${@bb.utils.contains('DISTRO_FEATURES', 'multiarch', '--enable-64-bit-bfd', '', d)}"
+                ${@bb.utils.contains('DISTRO_FEATURES', 'multiarch', '--enable-64-bit-bfd', '', d)} \
+                ${@bb.utils.contains('MACHINE_FEATURES', 'efi', '${ENABLE_EFI_BINARIES}', '', d)}"
 
 LDGOLD_class-native = ""
 LDGOLD_class-crosssdk = ""
Signature · 1 line
2.7.4
#1 lore raw
Quoted 26 lines · Christopher Clark

From: Christopher Clark <[email protected]>

When MACHINE_FEATURES includes "efi" and target is x86-64, enable the linker to produce Portable Executables: EFI binaries.

Supplies "--enable-targets=x86_64-pep" in EXTRA_OECONF.

Enables building the EFI variant of the Xen hypervisor.

---
 meta/recipes-devtools/binutils/binutils.inc | 5 ++++-
 1 file changed, 4 insertions(+), 1 deletion(-)
meta/recipes-devtools/binutils/binutils.inc +2 -0
index 37813dd..eedcc7e 100644
@@ -69,12 +69,15 @@ python do_package_prepend() {
 
 B = "${S}/build.${HOST_SYS}.${TARGET_SYS}"
 
+ENABLE_EFI_BINARIES_x86-64 = "--enable-targets=x86_64-pep"
+
 

meta/recipes-devtools/binutils/binutils.inc python do_package_prepend() { · line 83

Quoted 10 lines
meta/recipes-devtools/binutils/binutils.inc +2 -1
 
 
 EXTRA_OECONF = "--program-prefix=${TARGET_PREFIX} \
                 --disable-werror \
                 --enable-deterministic-archives \
                 --enable-plugins \
                 ${LDGOLD} \
-                ${@bb.utils.contains('DISTRO_FEATURES', 'multiarch', '--enable-64-bit-bfd', '', d)}"
+                ${@bb.utils.contains('DISTRO_FEATURES', 'multiarch', '--enable-64-bit-bfd', '', d)} \
+                ${@bb.utils.contains('MACHINE_FEATURES', 'efi', '${ENABLE_EFI_BINARIES}', '', d)}"

I think we should avoid using machine features rather enable this emulation unconditionally for efi enabled
targets, which for now are arm/x86/x86_64/aarch64

Quoted 6 lines

LDGOLD_class-native = ""
LDGOLD_class-crosssdk = ""
--
2.7.4

#2 lore raw

Yes, please just enable it as widely as possible.

Ross

Quoted 54 lines · Khem Raj
Quoted 26 lines · Christopher Clark

From: Christopher Clark <[email protected]>

When MACHINE_FEATURES includes "efi" and target is x86-64, enable the linker to produce Portable Executables: EFI binaries.

Supplies "--enable-targets=x86_64-pep" in EXTRA_OECONF.

Enables building the EFI variant of the Xen hypervisor.

---
 meta/recipes-devtools/binutils/binutils.inc | 5 ++++-
 1 file changed, 4 insertions(+), 1 deletion(-)
meta/recipes-devtools/binutils/binutils.inc +2 -0
index 37813dd..eedcc7e 100644
@@ -69,12 +69,15 @@ python do_package_prepend() {
 
 B = "${S}/build.${HOST_SYS}.${TARGET_SYS}"
 
+ENABLE_EFI_BINARIES_x86-64 = "--enable-targets=x86_64-pep"
+
 

meta/recipes-devtools/binutils/binutils.inc python do_package_prepend() { · line 83

Quoted 10 lines
meta/recipes-devtools/binutils/binutils.inc +2 -1
 
 
 EXTRA_OECONF = "--program-prefix=${TARGET_PREFIX} \
                 --disable-werror \
                 --enable-deterministic-archives \
                 --enable-plugins \
                 ${LDGOLD} \
-                ${@bb.utils.contains('DISTRO_FEATURES', 'multiarch', '--enable-64-bit-bfd', '', d)}"
+                ${@bb.utils.contains('DISTRO_FEATURES', 'multiarch', '--enable-64-bit-bfd', '', d)} \
+                ${@bb.utils.contains('MACHINE_FEATURES', 'efi', '${ENABLE_EFI_BINARIES}', '', d)}"

I think we should avoid using machine features rather enable this emulation unconditionally for efi enabled
targets, which for now are arm/x86/x86_64/aarch64

Quoted 6 lines

LDGOLD_class-native = ""
LDGOLD_class-crosssdk = ""
--
2.7.4

--
_______________________________________________
Openembedded-core mailing list
[email protected]
http://lists.openembedded.org/mailman/listinfo/openembedded-core