summaryrefslogtreecommitdiff
path: root/arch/x86/cpu/config.mk
diff options
context:
space:
mode:
authorVasili Galka <vvv444@gmail.com>2014-06-10 16:14:56 +0300
committerSimon Glass <sjg@chromium.org>2014-06-23 15:37:23 -0600
commitdbb7234b2a5e7d2cdb6658156de8d2d5b54033d7 (patch)
tree0459fd1d2057ae96e4d27e340228f10891acf6a0 /arch/x86/cpu/config.mk
parent038380597bc9b97378da2e18355cd7346d17b002 (diff)
downloadu-boot-imx-dbb7234b2a5e7d2cdb6658156de8d2d5b54033d7.zip
u-boot-imx-dbb7234b2a5e7d2cdb6658156de8d2d5b54033d7.tar.gz
u-boot-imx-dbb7234b2a5e7d2cdb6658156de8d2d5b54033d7.tar.bz2
x86: Enable 32-bit build using x86_64 multilib toolchain
Until now building the x86 arch boards required 32-bit toolchain. As many x86_64 toolchains come with 32-bit support (multilib) that's a good idea to enable build with such toolchains. The change required was to specify the usage of 32-bit explicitly to the compiler and the linker (-m32 and -m elf_i386 flags) and locate the right libgcc path. Signed-off-by: Vasili Galka <vvv444@gmail.com> Acked-by: Simon Glass <sjg@chromium.org>
Diffstat (limited to 'arch/x86/cpu/config.mk')
-rw-r--r--arch/x86/cpu/config.mk2
1 files changed, 1 insertions, 1 deletions
diff --git a/arch/x86/cpu/config.mk b/arch/x86/cpu/config.mk
index c1568cac..4b2c873 100644
--- a/arch/x86/cpu/config.mk
+++ b/arch/x86/cpu/config.mk
@@ -7,7 +7,7 @@
CROSS_COMPILE ?= i386-linux-
-PLATFORM_CPPFLAGS += -DCONFIG_X86 -D__I386__ -march=i386 -Werror
+PLATFORM_CPPFLAGS += -DCONFIG_X86 -D__I386__ -Werror
# DO NOT MODIFY THE FOLLOWING UNLESS YOU REALLY KNOW WHAT YOU ARE DOING!
LDPPFLAGS += -DRESET_SEG_START=0xffff0000