]> git.kernelconcepts.de Git - karo-tx-uboot.git/blob - arch/x86/config.mk
Merge remote-tracking branch 'u-boot-samsung/master'
[karo-tx-uboot.git] / arch / x86 / config.mk
1 #
2 # (C) Copyright 2000-2002
3 # Wolfgang Denk, DENX Software Engineering, wd@denx.de.
4 #
5 # SPDX-License-Identifier:      GPL-2.0+
6 #
7
8 CONFIG_STANDALONE_LOAD_ADDR ?= 0x40000
9
10 PLATFORM_CPPFLAGS += -fno-strict-aliasing
11 PLATFORM_CPPFLAGS += -mregparm=3
12 PLATFORM_CPPFLAGS += -fomit-frame-pointer
13 PF_CPPFLAGS_X86   := $(call cc-option, -fno-toplevel-reorder, \
14                        $(call cc-option, -fno-unit-at-a-time)) \
15                      $(call cc-option, -mpreferred-stack-boundary=2)
16 PLATFORM_CPPFLAGS += $(PF_CPPFLAGS_X86)
17 PLATFORM_CPPFLAGS += -fno-dwarf2-cfi-asm
18 PLATFORM_CPPFLAGS += -DREALMODE_BASE=0x7c0
19 PLATFORM_CPPFLAGS += -march=i386 -m32
20
21 # Support generic board on x86
22 __HAVE_ARCH_GENERIC_BOARD := y
23
24 PLATFORM_RELFLAGS += -ffunction-sections -fvisibility=hidden
25
26 PLATFORM_LDFLAGS += --emit-relocs -Bsymbolic -Bsymbolic-functions -m elf_i386
27
28 LDFLAGS_FINAL += --gc-sections -pie
29 LDFLAGS_FINAL += --wrap=__divdi3 --wrap=__udivdi3
30 LDFLAGS_FINAL += --wrap=__moddi3 --wrap=__umoddi3
31
32 export NORMAL_LIBGCC = $(shell $(CC) $(PLATFORM_CPPFLAGS) -print-libgcc-file-name)
33 CONFIG_USE_PRIVATE_LIBGCC := arch/x86/lib