blob: bac3cb27e251bc3a0804a73dc223110649cfb68e [file] [log] [blame]
Daniel Schwierzecke19db552014-11-21 23:51:33 +01001#
2# SPDX-License-Identifier: GPL-2.0+
3#
4
Masahiro Yamada01f14452015-02-20 17:04:02 +09005# Machine directory name. This list is sorted alphanumerically
6# by CONFIG_* macro name.
Masahiro Yamada62011842015-02-20 17:04:03 +09007machine-$(CONFIG_ARCH_AT91) += at91
Masahiro Yamadaddf6bd42015-03-19 19:42:56 +09008machine-$(CONFIG_ARCH_BCM283X) += bcm283x
Masahiro Yamada601fbec2015-02-20 17:04:05 +09009machine-$(CONFIG_ARCH_DAVINCI) += davinci
Masahiro Yamada72a8ff42015-02-20 17:04:08 +090010machine-$(CONFIG_ARCH_HIGHBANK) += highbank
Masahiro Yamada39a72342015-02-20 17:04:11 +090011machine-$(CONFIG_ARCH_KEYSTONE) += keystone
Masahiro Yamada56f86e32015-02-20 17:04:06 +090012# TODO: rename CONFIG_KIRKWOOD -> CONFIG_ARCH_KIRKWOOD
13machine-$(CONFIG_KIRKWOOD) += kirkwood
Masahiro Yamada09f455d2015-02-20 17:04:04 +090014# TODO: rename CONFIG_TEGRA -> CONFIG_ARCH_TEGRA
Masahiro Yamadaef917dd2015-02-20 17:04:07 +090015machine-$(CONFIG_ARCH_NOMADIK) += nomadik
Masahiro Yamada3e93b4e2015-02-20 17:04:09 +090016# TODO: rename CONFIG_ORION5X -> CONFIG_ARCH_ORION5X
17machine-$(CONFIG_ORION5X) += orion5x
Masahiro Yamada09f455d2015-02-20 17:04:04 +090018machine-$(CONFIG_TEGRA) += tegra
Masahiro Yamada4c425572015-02-27 02:26:42 +090019machine-$(CONFIG_ARCH_UNIPHIER) += uniphier
Masahiro Yamada63637a42015-02-20 17:04:10 +090020machine-$(CONFIG_ARCH_VERSATILE) += versatile
Masahiro Yamada01f14452015-02-20 17:04:02 +090021
22machdirs := $(patsubst %,arch/arm/mach-%/,$(machine-y))
23
Masahiro Yamada30ebf882015-02-20 17:04:19 +090024PLATFORM_CPPFLAGS += $(patsubst %,-I$(srctree)/%include,$(machdirs))
25
Masahiro Yamada01f14452015-02-20 17:04:02 +090026libs-y += $(machdirs)
27
Daniel Schwierzecke19db552014-11-21 23:51:33 +010028head-y := arch/arm/cpu/$(CPU)/start.o
29
30ifeq ($(CONFIG_SPL_BUILD),y)
31ifneq ($(CONFIG_SPL_START_S_PATH),)
32head-y := $(CONFIG_SPL_START_S_PATH:"%"=%)/start.o
33endif
34endif
35
36libs-y += arch/arm/cpu/$(CPU)/
37libs-y += arch/arm/cpu/
38libs-y += arch/arm/lib/
39
40ifeq ($(CONFIG_SPL_BUILD),y)
41ifneq (,$(CONFIG_MX23)$(CONFIG_MX35)$(filter $(SOC), mx25 mx27 mx5 mx6 mx31 mx35))
42libs-y += arch/arm/imx-common/
43endif
44else
45ifneq (,$(filter $(SOC), mx25 mx27 mx5 mx6 mx31 mx35 mxs vf610))
46libs-y += arch/arm/imx-common/
47endif
48endif
49
50ifneq (,$(filter $(SOC), armada-xp kirkwood))
51libs-y += arch/arm/mvebu-common/
52endif
Masahiro Yamada01f14452015-02-20 17:04:02 +090053
54# deprecated
55-include $(machdirs)/config.mk