1e19db555SDaniel Schwierzeck# 2e19db555SDaniel Schwierzeck# SPDX-License-Identifier: GPL-2.0+ 3e19db555SDaniel Schwierzeck# 4e19db555SDaniel Schwierzeck 501f14456SMasahiro Yamada# Machine directory name. This list is sorted alphanumerically 601f14456SMasahiro Yamada# by CONFIG_* macro name. 762011840SMasahiro Yamadamachine-$(CONFIG_ARCH_AT91) += at91 8*09f455dcSMasahiro Yamada# TODO: rename CONFIG_TEGRA -> CONFIG_ARCH_TEGRA 9*09f455dcSMasahiro Yamadamachine-$(CONFIG_TEGRA) += tegra 1001f14456SMasahiro Yamada 1101f14456SMasahiro Yamadamachdirs := $(patsubst %,arch/arm/mach-%/,$(machine-y)) 1201f14456SMasahiro Yamada 1301f14456SMasahiro Yamadalibs-y += $(machdirs) 1401f14456SMasahiro Yamada 15e19db555SDaniel Schwierzeckhead-y := arch/arm/cpu/$(CPU)/start.o 16e19db555SDaniel Schwierzeck 17e19db555SDaniel Schwierzeckifeq ($(CONFIG_SPL_BUILD),y) 18e19db555SDaniel Schwierzeckifneq ($(CONFIG_SPL_START_S_PATH),) 19e19db555SDaniel Schwierzeckhead-y := $(CONFIG_SPL_START_S_PATH:"%"=%)/start.o 20e19db555SDaniel Schwierzeckendif 21e19db555SDaniel Schwierzeckendif 22e19db555SDaniel Schwierzeck 23e19db555SDaniel Schwierzecklibs-y += arch/arm/cpu/$(CPU)/ 24e19db555SDaniel Schwierzecklibs-y += arch/arm/cpu/ 25e19db555SDaniel Schwierzecklibs-y += arch/arm/lib/ 26e19db555SDaniel Schwierzeck 27e19db555SDaniel Schwierzeckifeq ($(CONFIG_SPL_BUILD),y) 28e19db555SDaniel Schwierzeckifneq (,$(CONFIG_MX23)$(CONFIG_MX35)$(filter $(SOC), mx25 mx27 mx5 mx6 mx31 mx35)) 29e19db555SDaniel Schwierzecklibs-y += arch/arm/imx-common/ 30e19db555SDaniel Schwierzeckendif 31e19db555SDaniel Schwierzeckelse 32e19db555SDaniel Schwierzeckifneq (,$(filter $(SOC), mx25 mx27 mx5 mx6 mx31 mx35 mxs vf610)) 33e19db555SDaniel Schwierzecklibs-y += arch/arm/imx-common/ 34e19db555SDaniel Schwierzeckendif 35e19db555SDaniel Schwierzeckendif 36e19db555SDaniel Schwierzeck 37e19db555SDaniel Schwierzeckifneq (,$(filter $(SOC), armada-xp kirkwood)) 38e19db555SDaniel Schwierzecklibs-y += arch/arm/mvebu-common/ 39e19db555SDaniel Schwierzeckendif 4001f14456SMasahiro Yamada 4101f14456SMasahiro Yamada# deprecated 4201f14456SMasahiro Yamada-include $(machdirs)/config.mk 43