blob: 32d039c2d0daa5fa0bd321e7e25f68f0385363a6 [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
Masahiro Yamada5d083e12015-02-20 17:04:07 +090012machine-$(CONFIG_ARCH_NOMADIK) += nomadik
Masahiro Yamadaed1632a2015-02-20 17:04:04 +090013machine-$(CONFIG_TEGRA) += tegra
Masahiro Yamada0841ab42015-02-20 17:04:02 +090014
15machdirs := $(patsubst %,arch/arm/mach-%/,$(machine-y))
16
17libs-y += $(machdirs)
18
Daniel Schwierzeck17def7d2014-11-21 23:51:33 +010019head-y := arch/arm/cpu/$(CPU)/start.o
20
21ifeq ($(CONFIG_SPL_BUILD),y)
22ifneq ($(CONFIG_SPL_START_S_PATH),)
23head-y := $(CONFIG_SPL_START_S_PATH:"%"=%)/start.o
24endif
25endif
26
27libs-y += arch/arm/cpu/$(CPU)/
28libs-y += arch/arm/cpu/
29libs-y += arch/arm/lib/
30
31ifeq ($(CONFIG_SPL_BUILD),y)
32ifneq (,$(CONFIG_MX23)$(CONFIG_MX35)$(filter $(SOC), mx25 mx27 mx5 mx6 mx31 mx35))
33libs-y += arch/arm/imx-common/
34endif
35else
36ifneq (,$(filter $(SOC), mx25 mx27 mx5 mx6 mx31 mx35 mxs vf610))
37libs-y += arch/arm/imx-common/
38endif
39endif
40
41ifneq (,$(filter $(SOC), armada-xp kirkwood))
42libs-y += arch/arm/mvebu-common/
43endif
Masahiro Yamada0841ab42015-02-20 17:04:02 +090044
45# deprecated
46-include $(machdirs)/config.mk