]> git.sur5r.net Git - u-boot/commit
x86: efi: payload: Enforce toolchain to generate 64-bit EFI payload stub codes
authorBin Meng <bmeng.cn@gmail.com>
Sun, 10 Jun 2018 13:25:03 +0000 (06:25 -0700)
committerBin Meng <bmeng.cn@gmail.com>
Wed, 13 Jun 2018 01:50:57 +0000 (09:50 +0800)
commit16dde8945ea948e675e48326e740e098dea2035e
tree27e1998ff253f7b6d717d52adfa43c91b5598fbc
parentb8038a1cdb857c87dd4bafb43e27159118f1a3e4
x86: efi: payload: Enforce toolchain to generate 64-bit EFI payload stub codes

Attempting to use a toolchain that is preconfigured to generate code
for the 32-bit architecture (i386), for example, the i386-linux-gcc
toolchain on kernel.org, to compile the 64-bit EFI payload does not
build. This updates the makefile fragments to ensure '-m64' is passed
to toolchain when building the 64-bit EFI payload stub codes.

Signed-off-by: Bin Meng <bmeng.cn@gmail.com>
Reviewed-by: Simon Glass <sjg@chromium.org>
arch/x86/cpu/Makefile
arch/x86/lib/Makefile
lib/efi/Makefile