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