xref: /rk3399_rockchip-uboot/arch/arm/Makefile (revision 601fbec7cf815bc2b26ba2546ac5e8501fc7edae)
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*601fbec7SMasahiro Yamadamachine-$(CONFIG_ARCH_DAVINCI)		+= davinci
909f455dcSMasahiro Yamada# TODO: rename CONFIG_TEGRA -> CONFIG_ARCH_TEGRA
1009f455dcSMasahiro Yamadamachine-$(CONFIG_TEGRA)			+= tegra
1101f14456SMasahiro Yamada
1201f14456SMasahiro Yamadamachdirs := $(patsubst %,arch/arm/mach-%/,$(machine-y))
1301f14456SMasahiro Yamada
1401f14456SMasahiro Yamadalibs-y += $(machdirs)
1501f14456SMasahiro Yamada
16e19db555SDaniel Schwierzeckhead-y := arch/arm/cpu/$(CPU)/start.o
17e19db555SDaniel Schwierzeck
18e19db555SDaniel Schwierzeckifeq ($(CONFIG_SPL_BUILD),y)
19e19db555SDaniel Schwierzeckifneq ($(CONFIG_SPL_START_S_PATH),)
20e19db555SDaniel Schwierzeckhead-y := $(CONFIG_SPL_START_S_PATH:"%"=%)/start.o
21e19db555SDaniel Schwierzeckendif
22e19db555SDaniel Schwierzeckendif
23e19db555SDaniel Schwierzeck
24e19db555SDaniel Schwierzecklibs-y += arch/arm/cpu/$(CPU)/
25e19db555SDaniel Schwierzecklibs-y += arch/arm/cpu/
26e19db555SDaniel Schwierzecklibs-y += arch/arm/lib/
27e19db555SDaniel Schwierzeck
28e19db555SDaniel Schwierzeckifeq ($(CONFIG_SPL_BUILD),y)
29e19db555SDaniel Schwierzeckifneq (,$(CONFIG_MX23)$(CONFIG_MX35)$(filter $(SOC), mx25 mx27 mx5 mx6 mx31 mx35))
30e19db555SDaniel Schwierzecklibs-y += arch/arm/imx-common/
31e19db555SDaniel Schwierzeckendif
32e19db555SDaniel Schwierzeckelse
33e19db555SDaniel Schwierzeckifneq (,$(filter $(SOC), mx25 mx27 mx5 mx6 mx31 mx35 mxs vf610))
34e19db555SDaniel Schwierzecklibs-y += arch/arm/imx-common/
35e19db555SDaniel Schwierzeckendif
36e19db555SDaniel Schwierzeckendif
37e19db555SDaniel Schwierzeck
38e19db555SDaniel Schwierzeckifneq (,$(filter $(SOC), armada-xp kirkwood))
39e19db555SDaniel Schwierzecklibs-y += arch/arm/mvebu-common/
40e19db555SDaniel Schwierzeckendif
4101f14456SMasahiro Yamada
4201f14456SMasahiro Yamada# deprecated
4301f14456SMasahiro Yamada-include $(machdirs)/config.mk
44