From: Christopher Clark <christopher.w.clark@gmail.com>
To: openembedded-core@lists.openembedded.org
Subject: [PATCH] binutils : enable production of EFI binaries on x86-64
Date: Tue, 24 Jul 2018 20:16:13 -0700 [thread overview]
Message-ID: <1532488573-19987-1-git-send-email-christopher.w.clark@gmail.com> (raw)
From: Christopher Clark <christopher.clark6@baesystems.com>
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.
Signed-off-by: Christopher Clark <christopher.clark6@baesystems.com>
---
meta/recipes-devtools/binutils/binutils.inc | 5 ++++-
1 file changed, 4 insertions(+), 1 deletion(-)
diff --git a/meta/recipes-devtools/binutils/binutils.inc b/meta/recipes-devtools/binutils/binutils.inc
index 37813dd..eedcc7e 100644
--- a/meta/recipes-devtools/binutils/binutils.inc
+++ b/meta/recipes-devtools/binutils/binutils.inc
@@ -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 = ""
--
2.7.4
next reply other threads:[~2018-07-25 3:16 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2018-07-25 3:16 Christopher Clark [this message]
2018-07-25 5:56 ` [PATCH] binutils : enable production of EFI binaries on x86-64 Khem Raj
2018-07-25 9:55 ` Burton, Ross
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=1532488573-19987-1-git-send-email-christopher.w.clark@gmail.com \
--to=christopher.w.clark@gmail.com \
--cc=openembedded-core@lists.openembedded.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox