]> git.kernelconcepts.de Git - karo-tx-uboot.git/blob - arch/arm/Makefile
ARM: at91: collect SoC sources into mach-at91
[karo-tx-uboot.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
9 machdirs := $(patsubst %,arch/arm/mach-%/,$(machine-y))
10
11 libs-y += $(machdirs)
12
13 head-y := arch/arm/cpu/$(CPU)/start.o
14
15 ifeq ($(CONFIG_SPL_BUILD),y)
16 ifneq ($(CONFIG_SPL_START_S_PATH),)
17 head-y := $(CONFIG_SPL_START_S_PATH:"%"=%)/start.o
18 endif
19 endif
20
21 libs-y += arch/arm/cpu/$(CPU)/
22 libs-y += arch/arm/cpu/
23 libs-y += arch/arm/lib/
24
25 ifeq ($(CONFIG_SPL_BUILD),y)
26 ifneq (,$(CONFIG_SOC_MX23)$(CONFIG_SOC_MX35)$(filter $(SOC), mx25 mx27 mx5 mx6 mx31 mx35))
27 libs-y += arch/arm/imx-common/
28 endif
29 else
30 ifneq (,$(filter $(SOC), mx25 mx27 mx5 mx6 mx31 mx35 mxs vf610))
31 libs-y += arch/arm/imx-common/
32 endif
33 endif
34
35 ifneq (,$(filter $(SOC), armada-xp kirkwood))
36 libs-y += arch/arm/mvebu-common/
37 endif
38
39 # deprecated
40 -include $(machdirs)/config.mk