On Thu, Jul 26, 2018 at 5:48 AM Richard Purdie <[email protected]> wrote: > > On Wed, 2018-07-25 at 16:46 -0700, Christopher Clark wrote: > > From: Christopher Clark <[email protected]> > > > > On EFI architectures (arm/x86/x86_64/aarch64) add the x86_64-pep > > emulation support to the linker to enable production of Portable > > Executables for EFI binaries. > > > > Enables building the EFI variant of the Xen hypervisor. > > > > Signed-off-by: Christopher Clark <[email protected]> > > --- > > meta/recipes-devtools/binutils/binutils.inc | 9 ++++++++- > > 1 file changed, 8 insertions(+), 1 deletion(-) > > > > diff --git a/meta/recipes-devtools/binutils/binutils.inc > > b/meta/recipes-devtools/binutils/binutils.inc > > index 37813dd..b3efbad 100644 > > --- a/meta/recipes-devtools/binutils/binutils.inc > > +++ b/meta/recipes-devtools/binutils/binutils.inc > > @@ -69,12 +69,19 @@ python do_package_prepend() { > > > > B = "${S}/build.${HOST_SYS}.${TARGET_SYS}" > > > > +def enable_efi_targets(d): > > + translated_arch = d.getVar('TRANSLATED_TARGET_ARCH') > > + if translated_arch in ["x86-64", "i586", "i686", "arm", > > "aarch64"]: > > + return "--enable-targets=x86_64-pep" > > + return ""
may be we can just use overrides instead of function > > Just to double check, is "x86_64-pep" the right value even on arm? > right, It should be PE emulation for the given arch I believe > Cheers, > > Richard > > -- > _______________________________________________ > Openembedded-core mailing list > [email protected] > http://lists.openembedded.org/mailman/listinfo/openembedded-core -- _______________________________________________ Openembedded-core mailing list [email protected] http://lists.openembedded.org/mailman/listinfo/openembedded-core
