Blame view
config.mk
1.81 KB
e22117437 Initial revision |
1 |
# |
eca3aeb35 Licenses: introdu... |
2 |
# (C) Copyright 2000-2013 |
e22117437 Initial revision |
3 4 |
# Wolfgang Denk, DENX Software Engineering, wd@denx.de. # |
eca3aeb35 Licenses: introdu... |
5 |
# SPDX-License-Identifier: GPL-2.0+ |
e22117437 Initial revision |
6 |
# |
e22117437 Initial revision |
7 |
######################################################################### |
026f9cf24 kbuild: improve K... |
8 9 10 11 12 13 14 15 16 17 18 19 |
# This file is included from ./Makefile and spl/Makefile. # Clean the state to avoid the same flags added twice. # # (Tegra needs different flags for SPL. # That's the reason why this file must be included from spl/Makefile too. # If we did not have Tegra SoCs, build system would be much simpler...) PLATFORM_RELFLAGS := PLATFORM_CPPFLAGS := PLATFORM_LDFLAGS := LDFLAGS := LDFLAGS_FINAL := OBJCOPYFLAGS := |
e22117437 Initial revision |
20 |
######################################################################### |
c4e5f52a5 config.mk: use co... |
21 |
|
03b7004dd Create CPUDIR var... |
22 23 |
# Some architecture config.mk files need to know what CPUDIR is set to, # so calculate CPUDIR before including ARCH/SOC/CPU config.mk files. |
8d1f26820 ppc: Move cpu/$CP... |
24 25 26 |
# Check if arch/$ARCH/cpu/$CPU exists, otherwise assume arch/$ARCH/cpu contains # CPU-specific code. CPUDIR=arch/$(ARCH)/cpu/$(CPU) |
01286329b kbuild: rename SR... |
27 |
ifneq ($(srctree)/$(CPUDIR),$(wildcard $(srctree)/$(CPUDIR))) |
8d1f26820 ppc: Move cpu/$CP... |
28 29 |
CPUDIR=arch/$(ARCH)/cpu endif |
03b7004dd Create CPUDIR var... |
30 |
|
4379ac614 kbuild: rename TO... |
31 32 |
sinclude $(srctree)/arch/$(ARCH)/config.mk # include architecture dependend rules sinclude $(srctree)/$(CPUDIR)/config.mk # include CPU specific rules |
03b7004dd Create CPUDIR var... |
33 |
|
c4e5f52a5 config.mk: use co... |
34 |
ifdef SOC |
4379ac614 kbuild: rename TO... |
35 |
sinclude $(srctree)/$(CPUDIR)/$(SOC)/config.mk # include SoC specific rules |
c4e5f52a5 config.mk: use co... |
36 |
endif |
33a02da0f kbuild: allow emp... |
37 |
ifneq ($(BOARD),) |
c4e5f52a5 config.mk: use co... |
38 39 40 41 42 |
ifdef VENDOR BOARDDIR = $(VENDOR)/$(BOARD) else BOARDDIR = $(BOARD) endif |
33a02da0f kbuild: allow emp... |
43 |
endif |
c4e5f52a5 config.mk: use co... |
44 |
ifdef BOARD |
4379ac614 kbuild: rename TO... |
45 |
sinclude $(srctree)/board/$(BOARDDIR)/config.mk # include board specific rules |
c4e5f52a5 config.mk: use co... |
46 47 48 |
endif ######################################################################### |
026f9cf24 kbuild: improve K... |
49 |
RELFLAGS := $(PLATFORM_RELFLAGS) |
83b7e2a7f Handle most LDSCR... |
50 |
|
95ddcd68a kbuild: rename OB... |
51 |
OBJCOPYFLAGS += --gap-fill=0xff |
e22117437 Initial revision |
52 |
|
026f9cf24 kbuild: improve K... |
53 54 |
PLATFORM_CPPFLAGS += $(RELFLAGS) PLATFORM_CPPFLAGS += -pipe |
4a30f1e87 config.mk: Check ... |
55 |
|
8aba9dcee Divides variable ... |
56 |
LDFLAGS += $(PLATFORM_LDFLAGS) |
6dc1eceb9 Introduce a new l... |
57 |
LDFLAGS_FINAL += -Bstatic |
026f9cf24 kbuild: improve K... |
58 59 60 61 62 |
export PLATFORM_CPPFLAGS export RELFLAGS export LDFLAGS_FINAL export CONFIG_STANDALONE_LOAD_ADDR |