blob: 0699a4d47255181982ae44e7300a91c88b9be1fb [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 Yamada5e5e23a2015-02-20 17:04:06 +090010# TODO: rename CONFIG_KIRKWOOD -> CONFIG_ARCH_KIRKWOOD
11machine-$(CONFIG_KIRKWOOD) += kirkwood
Masahiro Yamadaed1632a2015-02-20 17:04:04 +090012# TODO: rename CONFIG_TEGRA -> CONFIG_ARCH_TEGRA
Masahiro Yamada5d083e12015-02-20 17:04:07 +090013machine-$(CONFIG_ARCH_NOMADIK) += nomadik
Masahiro Yamada22537642015-02-20 17:04:09 +090014# TODO: rename CONFIG_ORION5X -> CONFIG_ARCH_ORION5X
15machine-$(CONFIG_ORION5X) += orion5x
Masahiro Yamadaed1632a2015-02-20 17:04:04 +090016machine-$(CONFIG_TEGRA) += tegra
Masahiro Yamada0f2ec0a2015-02-20 17:04:10 +090017machine-$(CONFIG_ARCH_VERSATILE) += versatile
Masahiro Yamada0841ab42015-02-20 17:04:02 +090018
19machdirs := $(patsubst %,arch/arm/mach-%/,$(machine-y))
20
21libs-y += $(machdirs)
22
Daniel Schwierzeck17def7d2014-11-21 23:51:33 +010023head-y := arch/arm/cpu/$(CPU)/start.o
24
25ifeq ($(CONFIG_SPL_BUILD),y)
26ifneq ($(CONFIG_SPL_START_S_PATH),)
27head-y := $(CONFIG_SPL_START_S_PATH:"%"=%)/start.o
28endif
29endif
30
31libs-y += arch/arm/cpu/$(CPU)/
32libs-y += arch/arm/cpu/
33libs-y += arch/arm/lib/
34
35ifeq ($(CONFIG_SPL_BUILD),y)
36ifneq (,$(CONFIG_MX23)$(CONFIG_MX35)$(filter $(SOC), mx25 mx27 mx5 mx6 mx31 mx35))
37libs-y += arch/arm/imx-common/
38endif
39else
40ifneq (,$(filter $(SOC), mx25 mx27 mx5 mx6 mx31 mx35 mxs vf610))
41libs-y += arch/arm/imx-common/
42endif
43endif
44
45ifneq (,$(filter $(SOC), armada-xp kirkwood))
46libs-y += arch/arm/mvebu-common/
47endif
Masahiro Yamada0841ab42015-02-20 17:04:02 +090048
49# deprecated
50-include $(machdirs)/config.mk