From: "Wold, Saul" <saul.wold@intel.com>
To: "kergoth@gmail.com" <kergoth@gmail.com>,
"openembedded-core@lists.openembedded.org"
<openembedded-core@lists.openembedded.org>
Cc: "chris_larson@mentor.com" <chris_larson@mentor.com>
Subject: Re: [PATCH 05/16] gnu-efi: build 64-bit for x32
Date: Thu, 19 Jan 2017 15:32:28 +0000 [thread overview]
Message-ID: <1484839946.5377.209.camel@intel.com> (raw)
In-Reply-To: <f776bb458e8570ec6f6c9fff1dada3ecd7a36090.1483645446.git.chris_larson@mentor.com>
On Thu, 2017-01-05 at 12:46 -0700, Christopher Larson wrote:
> From: Christopher Larson <chris_larson@mentor.com>
>
> 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 <chris_larson@mentor.com>
> ---
> 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
>
next prev parent reply other threads:[~2017-01-19 15:32 UTC|newest]
Thread overview: 22+ messages / expand[flat|nested] mbox.gz Atom feed top
2017-01-05 19:46 [PATCH 00/16] Various fixes for x32 Christopher Larson
2017-01-05 19:46 ` [PATCH 01/16] valgrind: skip for linux-gnux32 Christopher Larson
2017-01-05 19:46 ` [PATCH 02/16] packagegroup-core-tools-profile: exclude valgrind for x32 Christopher Larson
2017-01-05 19:46 ` [PATCH 03/16] grub-efi: ignore arch mismatch " Christopher Larson
2017-01-05 19:46 ` [PATCH 04/16] lttng-tools: fix " Christopher Larson
2017-01-05 19:46 ` [PATCH 05/16] gnu-efi: build 64-bit " Christopher Larson
2017-01-19 15:32 ` Wold, Saul [this message]
2017-01-19 15:47 ` Christopher Larson
2017-01-05 19:46 ` [PATCH 06/16] gnu-efi: ignore arch mismatch " Christopher Larson
2017-01-05 19:46 ` [PATCH 07/16] gummiboot: fix for x32 from systemd-boot Christopher Larson
2017-01-05 19:46 ` [PATCH 08/16] ltp: fix build for x32 Christopher Larson
2017-01-05 19:46 ` [PATCH 09/16] boost: drop flags bits, fix " Christopher Larson
2017-01-05 20:29 ` Burton, Ross
2017-01-05 20:31 ` Christopher Larson
2017-01-09 19:03 ` Khem Raj
2017-01-05 19:46 ` [PATCH 10/16] gstreamer1.0-libav: disable asm " Christopher Larson
2017-01-05 19:46 ` [PATCH 11/16] ffmpeg: " Christopher Larson
2017-01-05 19:46 ` [PATCH 12/16] x264: for x32, disable asm and pass -mx32 Christopher Larson
2017-01-05 19:46 ` [PATCH 13/16] nss: fix for x32 Christopher Larson
2017-01-05 19:46 ` [PATCH 14/16] libunwind: apply a patch to fix x32 Christopher Larson
2017-01-05 19:46 ` [PATCH 15/16] gnome-desktop3: fix for x32 Christopher Larson
2017-01-05 19:46 ` [PATCH 16/16] webkitgtk: patch & disable JIT " Christopher Larson
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=1484839946.5377.209.camel@intel.com \
--to=saul.wold@intel.com \
--cc=chris_larson@mentor.com \
--cc=kergoth@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