[OE-core] [PATCH v2] binutils : enable x86_64-pep for producing EFI binaries

Khem Raj raj.khem at gmail.com
Thu Jul 26 14:14:59 UTC 2018


On Thu, Jul 26, 2018 at 5:48 AM Richard Purdie
<richard.purdie at linuxfoundation.org> wrote:
>
> On Wed, 2018-07-25 at 16:46 -0700, Christopher Clark wrote:
> > From: Christopher Clark <christopher.clark6 at baesystems.com>
> >
> > 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 <christopher.clark6 at baesystems.com>
> > ---
> >  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
> Openembedded-core at lists.openembedded.org
> http://lists.openembedded.org/mailman/listinfo/openembedded-core



More information about the Openembedded-core mailing list