2 # SPDX-License-Identifier: GPL-2.0+
5 # Machine directory name. This list is sorted alphanumerically
6 # by CONFIG_* macro name.
7 machine-$(CONFIG_ARCH_AT91) += at91
8 machine-$(CONFIG_ARCH_BCM283X) += bcm283x
9 machine-$(CONFIG_ARCH_DAVINCI) += davinci
10 machine-$(CONFIG_ARCH_HIGHBANK) += highbank
11 machine-$(CONFIG_ARCH_KEYSTONE) += keystone
12 # TODO: rename CONFIG_KIRKWOOD -> CONFIG_ARCH_KIRKWOOD
13 machine-$(CONFIG_KIRKWOOD) += kirkwood
14 # TODO: rename CONFIG_TEGRA -> CONFIG_ARCH_TEGRA
15 machine-$(CONFIG_ARCH_NOMADIK) += nomadik
16 # TODO: rename CONFIG_ORION5X -> CONFIG_ARCH_ORION5X
17 machine-$(CONFIG_ORION5X) += orion5x
18 machine-$(CONFIG_TEGRA) += tegra
19 machine-$(CONFIG_ARCH_UNIPHIER) += uniphier
20 machine-$(CONFIG_ARCH_VERSATILE) += versatile
22 machdirs := $(patsubst %,arch/arm/mach-%/,$(machine-y))
24 PLATFORM_CPPFLAGS += $(patsubst %,-I$(srctree)/%include,$(machdirs))
28 head-y := arch/arm/cpu/$(CPU)/start.o
30 ifeq ($(CONFIG_SPL_BUILD),y)
31 ifneq ($(CONFIG_SPL_START_S_PATH),)
32 head-y := $(CONFIG_SPL_START_S_PATH:"%"=%)/start.o
36 libs-y += arch/arm/cpu/$(CPU)/
37 libs-y += arch/arm/cpu/
38 libs-y += arch/arm/lib/
40 ifeq ($(CONFIG_SPL_BUILD),y)
41 ifneq (,$(CONFIG_MX23)$(CONFIG_MX35)$(filter $(SOC), mx25 mx27 mx5 mx6 mx31 mx35))
42 libs-y += arch/arm/imx-common/
45 ifneq (,$(filter $(SOC), mx25 mx27 mx5 mx6 mx31 mx35 mxs vf610))
46 libs-y += arch/arm/imx-common/
50 ifneq (,$(filter $(SOC), armada-xp kirkwood))
51 libs-y += arch/arm/mvebu-common/
55 -include $(machdirs)/config.mk