blob: f1ae929154c432b7266885103c82647e95fff717 [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 Yamada09f455d2015-02-20 17:04:04 +09008# TODO: rename CONFIG_TEGRA -> CONFIG_ARCH_TEGRA
9machine-$(CONFIG_TEGRA) += tegra
Masahiro Yamada01f14452015-02-20 17:04:02 +090010
11machdirs := $(patsubst %,arch/arm/mach-%/,$(machine-y))
12
13libs-y += $(machdirs)
14
Daniel Schwierzecke19db552014-11-21 23:51:33 +010015head-y := arch/arm/cpu/$(CPU)/start.o
16
17ifeq ($(CONFIG_SPL_BUILD),y)
18ifneq ($(CONFIG_SPL_START_S_PATH),)
19head-y := $(CONFIG_SPL_START_S_PATH:"%"=%)/start.o
20endif
21endif
22
23libs-y += arch/arm/cpu/$(CPU)/
24libs-y += arch/arm/cpu/
25libs-y += arch/arm/lib/
26
27ifeq ($(CONFIG_SPL_BUILD),y)
28ifneq (,$(CONFIG_MX23)$(CONFIG_MX35)$(filter $(SOC), mx25 mx27 mx5 mx6 mx31 mx35))
29libs-y += arch/arm/imx-common/
30endif
31else
32ifneq (,$(filter $(SOC), mx25 mx27 mx5 mx6 mx31 mx35 mxs vf610))
33libs-y += arch/arm/imx-common/
34endif
35endif
36
37ifneq (,$(filter $(SOC), armada-xp kirkwood))
38libs-y += arch/arm/mvebu-common/
39endif
Masahiro Yamada01f14452015-02-20 17:04:02 +090040
41# deprecated
42-include $(machdirs)/config.mk