blob: 878ae26ce416c4f0841b64cec3b7e2b2ac25c9cd [file] [log] [blame]
Daniel Schwierzeck17def7d2014-11-21 23:51:33 +01001#
2# SPDX-License-Identifier: GPL-2.0+
3#
4
Masahiro Yamada0841ab42015-02-20 17:04:02 +09005# Machine directory name. This list is sorted alphanumerically
6# by CONFIG_* macro name.
Masahiro Yamadae77d1d92015-02-20 17:04:03 +09007machine-$(CONFIG_ARCH_AT91) += at91
Masahiro Yamada36445482015-02-20 17:04:05 +09008machine-$(CONFIG_ARCH_DAVINCI) += davinci
Masahiro Yamada95ec48b2015-02-20 17:04:08 +09009machine-$(CONFIG_ARCH_HIGHBANK) += highbank
Masahiro Yamadaf058b792015-02-20 17:04:11 +090010machine-$(CONFIG_ARCH_KEYSTONE) += keystone
Masahiro Yamada5e5e23a2015-02-20 17:04:06 +090011# TODO: rename CONFIG_KIRKWOOD -> CONFIG_ARCH_KIRKWOOD
12machine-$(CONFIG_KIRKWOOD) += kirkwood
Masahiro Yamadaed1632a2015-02-20 17:04:04 +090013# TODO: rename CONFIG_TEGRA -> CONFIG_ARCH_TEGRA
Masahiro Yamada5d083e12015-02-20 17:04:07 +090014machine-$(CONFIG_ARCH_NOMADIK) += nomadik
Masahiro Yamada22537642015-02-20 17:04:09 +090015# TODO: rename CONFIG_ORION5X -> CONFIG_ARCH_ORION5X
16machine-$(CONFIG_ORION5X) += orion5x
Masahiro Yamadaed1632a2015-02-20 17:04:04 +090017machine-$(CONFIG_TEGRA) += tegra
Masahiro Yamada0f2ec0a2015-02-20 17:04:10 +090018machine-$(CONFIG_ARCH_VERSATILE) += versatile
Masahiro Yamada0841ab42015-02-20 17:04:02 +090019
20machdirs := $(patsubst %,arch/arm/mach-%/,$(machine-y))
21
Masahiro Yamada41aa49e2015-02-20 17:04:19 +090022PLATFORM_CPPFLAGS += $(patsubst %,-I$(srctree)/%include,$(machdirs))
23
Masahiro Yamada0841ab42015-02-20 17:04:02 +090024libs-y += $(machdirs)
25
Daniel Schwierzeck17def7d2014-11-21 23:51:33 +010026head-y := arch/arm/cpu/$(CPU)/start.o
27
28ifeq ($(CONFIG_SPL_BUILD),y)
29ifneq ($(CONFIG_SPL_START_S_PATH),)
30head-y := $(CONFIG_SPL_START_S_PATH:"%"=%)/start.o
31endif
32endif
33
34libs-y += arch/arm/cpu/$(CPU)/
35libs-y += arch/arm/cpu/
36libs-y += arch/arm/lib/
37
38ifeq ($(CONFIG_SPL_BUILD),y)
39ifneq (,$(CONFIG_MX23)$(CONFIG_MX35)$(filter $(SOC), mx25 mx27 mx5 mx6 mx31 mx35))
40libs-y += arch/arm/imx-common/
41endif
42else
43ifneq (,$(filter $(SOC), mx25 mx27 mx5 mx6 mx31 mx35 mxs vf610))
44libs-y += arch/arm/imx-common/
45endif
46endif
47
48ifneq (,$(filter $(SOC), armada-xp kirkwood))
49libs-y += arch/arm/mvebu-common/
50endif
Masahiro Yamada0841ab42015-02-20 17:04:02 +090051
52# deprecated
53-include $(machdirs)/config.mk