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