blob: 97858fad104e72911f59fc2fe8d90b02d6854dae [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 Yamada601fbec2015-02-20 17:04:05 +09008machine-$(CONFIG_ARCH_DAVINCI) += davinci
Masahiro Yamada72a8ff42015-02-20 17:04:08 +09009machine-$(CONFIG_ARCH_HIGHBANK) += highbank
Masahiro Yamada56f86e32015-02-20 17:04:06 +090010# TODO: rename CONFIG_KIRKWOOD -> CONFIG_ARCH_KIRKWOOD
11machine-$(CONFIG_KIRKWOOD) += kirkwood
Masahiro Yamada09f455d2015-02-20 17:04:04 +090012# TODO: rename CONFIG_TEGRA -> CONFIG_ARCH_TEGRA
Masahiro Yamadaef917dd2015-02-20 17:04:07 +090013machine-$(CONFIG_ARCH_NOMADIK) += nomadik
Masahiro Yamada09f455d2015-02-20 17:04:04 +090014machine-$(CONFIG_TEGRA) += tegra
Masahiro Yamada01f14452015-02-20 17:04:02 +090015
16machdirs := $(patsubst %,arch/arm/mach-%/,$(machine-y))
17
18libs-y += $(machdirs)
19
Daniel Schwierzecke19db552014-11-21 23:51:33 +010020head-y := arch/arm/cpu/$(CPU)/start.o
21
22ifeq ($(CONFIG_SPL_BUILD),y)
23ifneq ($(CONFIG_SPL_START_S_PATH),)
24head-y := $(CONFIG_SPL_START_S_PATH:"%"=%)/start.o
25endif
26endif
27
28libs-y += arch/arm/cpu/$(CPU)/
29libs-y += arch/arm/cpu/
30libs-y += arch/arm/lib/
31
32ifeq ($(CONFIG_SPL_BUILD),y)
33ifneq (,$(CONFIG_MX23)$(CONFIG_MX35)$(filter $(SOC), mx25 mx27 mx5 mx6 mx31 mx35))
34libs-y += arch/arm/imx-common/
35endif
36else
37ifneq (,$(filter $(SOC), mx25 mx27 mx5 mx6 mx31 mx35 mxs vf610))
38libs-y += arch/arm/imx-common/
39endif
40endif
41
42ifneq (,$(filter $(SOC), armada-xp kirkwood))
43libs-y += arch/arm/mvebu-common/
44endif
Masahiro Yamada01f14452015-02-20 17:04:02 +090045
46# deprecated
47-include $(machdirs)/config.mk