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