Blame view
config.mk
2.14 KB
83d290c56 SPDX: Convert all... |
1 |
# SPDX-License-Identifier: GPL-2.0+ |
e22117437 Initial revision |
2 |
# |
eca3aeb35 Licenses: introdu... |
3 |
# (C) Copyright 2000-2013 |
e22117437 Initial revision |
4 |
# Wolfgang Denk, DENX Software Engineering, wd@denx.de. |
e22117437 Initial revision |
5 |
######################################################################### |
026f9cf24 kbuild: improve K... |
6 7 8 9 10 11 12 13 14 15 16 |
# 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 := |
1d3b97c94 Kbuild: add LDFLA... |
17 |
LDFLAGS_STANDALONE := |
026f9cf24 kbuild: improve K... |
18 |
OBJCOPYFLAGS := |
5b3ee386f kbuild: clear VEN... |
19 20 |
# clear VENDOR for tcsh VENDOR := |
e22117437 Initial revision |
21 |
######################################################################### |
c4e5f52a5 config.mk: use co... |
22 |
|
51148790f kconfig: switch t... |
23 24 |
ARCH := $(CONFIG_SYS_ARCH:"%"=%) CPU := $(CONFIG_SYS_CPU:"%"=%) |
e02ee2548 kconfig: switch t... |
25 26 27 28 29 |
ifdef CONFIG_SPL_BUILD ifdef CONFIG_TEGRA CPU := arm720t endif endif |
51148790f kconfig: switch t... |
30 31 32 33 34 35 36 |
BOARD := $(CONFIG_SYS_BOARD:"%"=%) ifneq ($(CONFIG_SYS_VENDOR),) VENDOR := $(CONFIG_SYS_VENDOR:"%"=%) endif ifneq ($(CONFIG_SYS_SOC),) SOC := $(CONFIG_SYS_SOC:"%"=%) endif |
03b7004dd Create CPUDIR var... |
37 38 |
# 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... |
39 40 |
# Check if arch/$ARCH/cpu/$CPU exists, otherwise assume arch/$ARCH/cpu contains # CPU-specific code. |
a8b0f9b68 build: define CPU... |
41 |
CPUDIR=arch/$(ARCH)/cpu$(if $(CPU),/$(CPU),) |
03b7004dd Create CPUDIR var... |
42 |
|
4379ac614 kbuild: rename TO... |
43 44 |
sinclude $(srctree)/arch/$(ARCH)/config.mk # include architecture dependend rules sinclude $(srctree)/$(CPUDIR)/config.mk # include CPU specific rules |
03b7004dd Create CPUDIR var... |
45 |
|
c4e5f52a5 config.mk: use co... |
46 |
ifdef SOC |
4379ac614 kbuild: rename TO... |
47 |
sinclude $(srctree)/$(CPUDIR)/$(SOC)/config.mk # include SoC specific rules |
c4e5f52a5 config.mk: use co... |
48 |
endif |
33a02da0f kbuild: allow emp... |
49 |
ifneq ($(BOARD),) |
c4e5f52a5 config.mk: use co... |
50 51 52 53 54 |
ifdef VENDOR BOARDDIR = $(VENDOR)/$(BOARD) else BOARDDIR = $(BOARD) endif |
33a02da0f kbuild: allow emp... |
55 |
endif |
c4e5f52a5 config.mk: use co... |
56 |
ifdef BOARD |
4379ac614 kbuild: rename TO... |
57 |
sinclude $(srctree)/board/$(BOARDDIR)/config.mk # include board specific rules |
c4e5f52a5 config.mk: use co... |
58 |
endif |
b84505210 Reactivate the tr... |
59 60 61 |
ifdef FTRACE PLATFORM_CPPFLAGS += -finstrument-functions -DFTRACE endif |
c4e5f52a5 config.mk: use co... |
62 |
######################################################################### |
026f9cf24 kbuild: improve K... |
63 |
RELFLAGS := $(PLATFORM_RELFLAGS) |
83b7e2a7f Handle most LDSCR... |
64 |
|
026f9cf24 kbuild: improve K... |
65 66 |
PLATFORM_CPPFLAGS += $(RELFLAGS) PLATFORM_CPPFLAGS += -pipe |
4a30f1e87 config.mk: Check ... |
67 |
|
8aba9dcee Divides variable ... |
68 |
LDFLAGS += $(PLATFORM_LDFLAGS) |
6dc1eceb9 Introduce a new l... |
69 |
LDFLAGS_FINAL += -Bstatic |
026f9cf24 kbuild: improve K... |
70 71 72 73 |
export PLATFORM_CPPFLAGS export RELFLAGS export LDFLAGS_FINAL |
1d3b97c94 Kbuild: add LDFLA... |
74 |
export LDFLAGS_STANDALONE |
026f9cf24 kbuild: improve K... |
75 |
export CONFIG_STANDALONE_LOAD_ADDR |