2 # SPDX-License-Identifier: GPL-2.0+
5 # Machine directory name. This list is sorted alphanumerically
6 # by CONFIG_* macro name.
8 machdirs := $(patsubst %,arch/arm/mach-%/,$(machine-y))
12 head-y := arch/arm/cpu/$(CPU)/start.o
14 ifeq ($(CONFIG_SPL_BUILD),y)
15 ifneq ($(CONFIG_SPL_START_S_PATH),)
16 head-y := $(CONFIG_SPL_START_S_PATH:"%"=%)/start.o
20 libs-y += arch/arm/cpu/$(CPU)/
21 libs-y += arch/arm/cpu/
22 libs-y += arch/arm/lib/
24 ifeq ($(CONFIG_SPL_BUILD),y)
25 ifneq (,$(CONFIG_MX23)$(CONFIG_MX35)$(filter $(SOC), mx25 mx27 mx5 mx6 mx31 mx35))
26 libs-y += arch/arm/imx-common/
29 ifneq (,$(filter $(SOC), mx25 mx27 mx5 mx6 mx31 mx35 mxs vf610))
30 libs-y += arch/arm/imx-common/
34 ifneq (,$(filter $(SOC), armada-xp kirkwood))
35 libs-y += arch/arm/mvebu-common/
39 -include $(machdirs)/config.mk