On Thu, 2017-01-05 at 12:46 -0700, Christopher Larson wrote:
> From: Christopher Larson <[email protected]>
> 
> We're targeting the x86_64 EFI ABI.
> 
Chris, 

Firstly, thanks for all the x32 patches!

I tried to build gnu-efi for x32 via genericx86-64 and still got a
failure about missing the gnu/stubs-64.h. I am building pure x32, is it
possibly you build x32 in a TMPDIR that already had a 64bit build?

There is a generated stubs-x32.h, but not the required -64 variant.

Can you confirm this builds correctly?

Thanks

Sau!

> Signed-off-by: Christopher Larson <[email protected]>
> ---
>  meta/recipes-bsp/gnu-efi/gnu-efi_3.0.4.bb | 9 +++++++++
>  1 file changed, 9 insertions(+)
> 
> diff --git a/meta/recipes-bsp/gnu-efi/gnu-efi_3.0.4.bb
> b/meta/recipes-bsp/gnu-efi/gnu-efi_3.0.4.bb
> index 9ddc4ba..e55ab7f 100644
> --- a/meta/recipes-bsp/gnu-efi/gnu-efi_3.0.4.bb
> +++ b/meta/recipes-bsp/gnu-efi/gnu-efi_3.0.4.bb
> @@ -52,3 +52,12 @@ BBCLASSEXTEND = "native"
>  # CFLAGS += -mno-mmx -mno-sse
>  # So also remove -mfpmath=sse from TUNE_CCARGS
>  TUNE_CCARGS_remove = "-mfpmath=sse"
> +
> +python () {
> +    ccargs = d.getVar('TUNE_CCARGS', True).split()
> +    if '-mx32' in ccargs:
> +        # use x86_64 EFI ABI
> +        ccargs.remove('-mx32')
> +        ccargs.append('-m64')
> +        d.setVar('TUNE_CCARGS', ' '.join(ccargs))
> +}
> -- 
> 2.8.0
> 
-- 
_______________________________________________
Openembedded-core mailing list
[email protected]
http://lists.openembedded.org/mailman/listinfo/openembedded-core

Reply via email to