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