xref: /rk3399_rockchip-uboot/arch/x86/config.mk (revision cca4e4aec1fe52e5ecd15e3cebdbb36e2f254220)
1fea25720SGraeme Russ#
2fea25720SGraeme Russ# (C) Copyright 2000-2002
3fea25720SGraeme Russ# Wolfgang Denk, DENX Software Engineering, wd@denx.de.
4fea25720SGraeme Russ#
5fea25720SGraeme Russ# See file CREDITS for list of people who contributed to this
6fea25720SGraeme Russ# project.
7fea25720SGraeme Russ#
8fea25720SGraeme Russ# This program is free software; you can redistribute it and/or
9fea25720SGraeme Russ# modify it under the terms of the GNU General Public License as
10fea25720SGraeme Russ# published by the Free Software Foundation; either version 2 of
11fea25720SGraeme Russ# the License, or (at your option) any later version.
12fea25720SGraeme Russ#
13fea25720SGraeme Russ# This program is distributed in the hope that it will be useful,
14fea25720SGraeme Russ# but WITHOUT ANY WARRANTY; without even the implied warranty of
15fea25720SGraeme Russ# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
16fea25720SGraeme Russ# GNU General Public License for more details.
17fea25720SGraeme Russ#
18fea25720SGraeme Russ# You should have received a copy of the GNU General Public License
19fea25720SGraeme Russ# along with this program; if not, write to the Free Software
20fea25720SGraeme Russ# Foundation, Inc., 59 Temple Place, Suite 330, Boston,
21fea25720SGraeme Russ# MA 02111-1307 USA
22fea25720SGraeme Russ#
23fea25720SGraeme Russ
24fea25720SGraeme RussCONFIG_STANDALONE_LOAD_ADDR ?= 0x40000
25fea25720SGraeme Russ
26fea25720SGraeme RussPLATFORM_CPPFLAGS += -fno-strict-aliasing
27fea25720SGraeme RussPLATFORM_CPPFLAGS += -Wstrict-prototypes
28fea25720SGraeme RussPLATFORM_CPPFLAGS += -mregparm=3
29fea25720SGraeme RussPLATFORM_CPPFLAGS += -fomit-frame-pointer
30*cca4e4aeSWolfgang DenkPF_CPPFLAGS_X86   := $(call cc-option, -ffreestanding) \
31*cca4e4aeSWolfgang Denk		     $(call cc-option, -fno-toplevel-reorder, \
32*cca4e4aeSWolfgang Denk		       $(call cc-option, -fno-unit-at-a-time)) \
33*cca4e4aeSWolfgang Denk		     $(call cc-option, -fno-stack-protector) \
34*cca4e4aeSWolfgang Denk		     $(call cc-option, -mpreferred-stack-boundary=2)
35*cca4e4aeSWolfgang DenkPLATFORM_CPPFLAGS += $(PF_CPPFLAGS_X86)
36fea25720SGraeme RussPLATFORM_CPPFLAGS += -fno-dwarf2-cfi-asm
37fea25720SGraeme RussPLATFORM_CPPFLAGS += -DREALMODE_BASE=0x7c0
38fea25720SGraeme Russ
39fea25720SGraeme RussPLATFORM_RELFLAGS += -ffunction-sections -fvisibility=hidden
40fea25720SGraeme Russ
41fea25720SGraeme RussPLATFORM_LDFLAGS += --emit-relocs -Bsymbolic -Bsymbolic-functions
42fea25720SGraeme Russ
43fea25720SGraeme RussLDFLAGS_FINAL += --gc-sections -pie
44