f1ae929154c432b7266885103c82647e95fff717
[platform/kernel/u-boot.git] / arch / arm / Makefile
1 #
2 # SPDX-License-Identifier:      GPL-2.0+
3 #
4
5 # Machine directory name.  This list is sorted alphanumerically
6 # by CONFIG_* macro name.
7 machine-$(CONFIG_ARCH_AT91)             += at91
8 # TODO: rename CONFIG_TEGRA -> CONFIG_ARCH_TEGRA
9 machine-$(CONFIG_TEGRA)                 += tegra
10
11 machdirs := $(patsubst %,arch/arm/mach-%/,$(machine-y))
12
13 libs-y += $(machdirs)
14
15 head-y := arch/arm/cpu/$(CPU)/start.o
16
17 ifeq ($(CONFIG_SPL_BUILD),y)
18 ifneq ($(CONFIG_SPL_START_S_PATH),)
19 head-y := $(CONFIG_SPL_START_S_PATH:"%"=%)/start.o
20 endif
21 endif
22
23 libs-y += arch/arm/cpu/$(CPU)/
24 libs-y += arch/arm/cpu/
25 libs-y += arch/arm/lib/
26
27 ifeq ($(CONFIG_SPL_BUILD),y)
28 ifneq (,$(CONFIG_MX23)$(CONFIG_MX35)$(filter $(SOC), mx25 mx27 mx5 mx6 mx31 mx35))
29 libs-y += arch/arm/imx-common/
30 endif
31 else
32 ifneq (,$(filter $(SOC), mx25 mx27 mx5 mx6 mx31 mx35 mxs vf610))
33 libs-y += arch/arm/imx-common/
34 endif
35 endif
36
37 ifneq (,$(filter $(SOC), armada-xp kirkwood))
38 libs-y += arch/arm/mvebu-common/
39 endif
40
41 # deprecated
42 -include $(machdirs)/config.mk