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