xref: /openbmc/u-boot/arch/arm/Makefile (revision 3d357619)
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
9machine-$(CONFIG_ARCH_HIGHBANK)		+= highbank
10machine-$(CONFIG_ARCH_KEYSTONE)		+= keystone
11# TODO: rename CONFIG_KIRKWOOD -> CONFIG_ARCH_KIRKWOOD
12machine-$(CONFIG_KIRKWOOD)		+= kirkwood
13# TODO: rename CONFIG_TEGRA -> CONFIG_ARCH_TEGRA
14machine-$(CONFIG_ARCH_NOMADIK)		+= nomadik
15# TODO: rename CONFIG_ORION5X -> CONFIG_ARCH_ORION5X
16machine-$(CONFIG_ORION5X)		+= orion5x
17machine-$(CONFIG_TEGRA)			+= tegra
18machine-$(CONFIG_ARCH_VERSATILE)	+= versatile
19
20machdirs := $(patsubst %,arch/arm/mach-%/,$(machine-y))
21
22libs-y += $(machdirs)
23
24head-y := arch/arm/cpu/$(CPU)/start.o
25
26ifeq ($(CONFIG_SPL_BUILD),y)
27ifneq ($(CONFIG_SPL_START_S_PATH),)
28head-y := $(CONFIG_SPL_START_S_PATH:"%"=%)/start.o
29endif
30endif
31
32libs-y += arch/arm/cpu/$(CPU)/
33libs-y += arch/arm/cpu/
34libs-y += arch/arm/lib/
35
36ifeq ($(CONFIG_SPL_BUILD),y)
37ifneq (,$(CONFIG_MX23)$(CONFIG_MX35)$(filter $(SOC), mx25 mx27 mx5 mx6 mx31 mx35))
38libs-y += arch/arm/imx-common/
39endif
40else
41ifneq (,$(filter $(SOC), mx25 mx27 mx5 mx6 mx31 mx35 mxs vf610))
42libs-y += arch/arm/imx-common/
43endif
44endif
45
46ifneq (,$(filter $(SOC), armada-xp kirkwood))
47libs-y += arch/arm/mvebu-common/
48endif
49
50# deprecated
51-include $(machdirs)/config.mk
52