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