mirror of
https://github.com/brain-hackers/u-boot-brain
synced 2024-09-29 08:00:26 +09:00
dbb7234b2a
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>
17 lines
424 B
Makefile
17 lines
424 B
Makefile
#
|
|
# (C) Copyright 2002
|
|
# Daniel Engström, Omicron Ceti AB, daniel@omicron.se.
|
|
#
|
|
# SPDX-License-Identifier: GPL-2.0+
|
|
#
|
|
|
|
CROSS_COMPILE ?= i386-linux-
|
|
|
|
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
|
|
LDPPFLAGS += -DRESET_SEG_SIZE=0x10000
|
|
LDPPFLAGS += -DRESET_VEC_LOC=0xfff0
|
|
LDPPFLAGS += -DSTART_16=0xf800
|