blob: ebb7dc34ac7d879a77de54a69654c7d18caf8549 [file] [log] [blame]
Daniel Schwierzecke19db552014-11-21 23:51:33 +01001#
2# SPDX-License-Identifier: GPL-2.0+
3#
4
5head-y := arch/arm/cpu/$(CPU)/start.o
6
7ifeq ($(CONFIG_SPL_BUILD),y)
8ifneq ($(CONFIG_SPL_START_S_PATH),)
9head-y := $(CONFIG_SPL_START_S_PATH:"%"=%)/start.o
10endif
11endif
12
13libs-y += arch/arm/cpu/$(CPU)/
14libs-y += arch/arm/cpu/
15libs-y += arch/arm/lib/
16
17ifeq ($(CONFIG_SPL_BUILD),y)
18ifneq (,$(CONFIG_MX23)$(CONFIG_MX35)$(filter $(SOC), mx25 mx27 mx5 mx6 mx31 mx35))
19libs-y += arch/arm/imx-common/
20endif
21else
22ifneq (,$(filter $(SOC), mx25 mx27 mx5 mx6 mx31 mx35 mxs vf610))
23libs-y += arch/arm/imx-common/
24endif
25endif
26
27ifneq (,$(filter $(SOC), armada-xp kirkwood))
28libs-y += arch/arm/mvebu-common/
29endif