1# 2# SPDX-License-Identifier: GPL-2.0+ 3# 4 5# Machine directory name. This list is sorted alphanumerically 6# by CONFIG_* macro name. 7machine-$(CONFIG_ARCH_AT91) += at91 8machine-$(CONFIG_ARCH_DAVINCI) += davinci 9# TODO: rename CONFIG_TEGRA -> CONFIG_ARCH_TEGRA 10machine-$(CONFIG_TEGRA) += tegra 11 12machdirs := $(patsubst %,arch/arm/mach-%/,$(machine-y)) 13 14libs-y += $(machdirs) 15 16head-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 41 42# deprecated 43-include $(machdirs)/config.mk 44