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