blob: e09de5182efaa9201e0ad627a6d8179405b8609c [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 Yamada5e5e23a2015-02-20 17:04:06 +09009# TODO: rename CONFIG_KIRKWOOD -> CONFIG_ARCH_KIRKWOOD
10machine-$(CONFIG_KIRKWOOD) += kirkwood
Masahiro Yamadaed1632a2015-02-20 17:04:04 +090011# TODO: rename CONFIG_TEGRA -> CONFIG_ARCH_TEGRA
12machine-$(CONFIG_TEGRA) += tegra
Masahiro Yamada0841ab42015-02-20 17:04:02 +090013
14machdirs := $(patsubst %,arch/arm/mach-%/,$(machine-y))
15
16libs-y += $(machdirs)
17
Daniel Schwierzeck17def7d2014-11-21 23:51:33 +010018head-y := arch/arm/cpu/$(CPU)/start.o
19
20ifeq ($(CONFIG_SPL_BUILD),y)
21ifneq ($(CONFIG_SPL_START_S_PATH),)
22head-y := $(CONFIG_SPL_START_S_PATH:"%"=%)/start.o
23endif
24endif
25
26libs-y += arch/arm/cpu/$(CPU)/
27libs-y += arch/arm/cpu/
28libs-y += arch/arm/lib/
29
30ifeq ($(CONFIG_SPL_BUILD),y)
31ifneq (,$(CONFIG_MX23)$(CONFIG_MX35)$(filter $(SOC), mx25 mx27 mx5 mx6 mx31 mx35))
32libs-y += arch/arm/imx-common/
33endif
34else
35ifneq (,$(filter $(SOC), mx25 mx27 mx5 mx6 mx31 mx35 mxs vf610))
36libs-y += arch/arm/imx-common/
37endif
38endif
39
40ifneq (,$(filter $(SOC), armada-xp kirkwood))
41libs-y += arch/arm/mvebu-common/
42endif
Masahiro Yamada0841ab42015-02-20 17:04:02 +090043
44# deprecated
45-include $(machdirs)/config.mk