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_KIRKWOOD -> CONFIG_ARCH_KIRKWOOD 10machine-$(CONFIG_KIRKWOOD) += kirkwood 11# TODO: rename CONFIG_TEGRA -> CONFIG_ARCH_TEGRA 12machine-$(CONFIG_TEGRA) += tegra 13 14machdirs := $(patsubst %,arch/arm/mach-%/,$(machine-y)) 15 16libs-y += $(machdirs) 17 18head-y := arch/arm/cpu/$(CPU)/start.o 19 20ifeq ($(CONFIG_SPL_BUILD),y) 21ifneq ($(CONFIG_SPL_START_S_PATH),) 22head-y := $(CONFIG_SPL_START_S_PATH:"%"=%)/start.o 23endif 24endif 25 26libs-y += arch/arm/cpu/$(CPU)/ 27libs-y += arch/arm/cpu/ 28libs-y += arch/arm/lib/ 29 30ifeq ($(CONFIG_SPL_BUILD),y) 31ifneq (,$(CONFIG_MX23)$(CONFIG_MX35)$(filter $(SOC), mx25 mx27 mx5 mx6 mx31 mx35)) 32libs-y += arch/arm/imx-common/ 33endif 34else 35ifneq (,$(filter $(SOC), mx25 mx27 mx5 mx6 mx31 mx35 mxs vf610)) 36libs-y += arch/arm/imx-common/ 37endif 38endif 39 40ifneq (,$(filter $(SOC), armada-xp kirkwood)) 41libs-y += arch/arm/mvebu-common/ 42endif 43 44# deprecated 45-include $(machdirs)/config.mk 46