xref: /openbmc/u-boot/arch/arm/mach-rockchip/Makefile (revision c68c03f5)
1#
2# Copyright (c) 2014 Google, Inc
3#
4# SPDX-License-Identifier:	GPL-2.0+
5#
6
7# We don't want the bootrom-helper present in a full U-Boot build, as
8# this may have entered from ATF with the stack-pointer pointing to
9# inaccessible/protected memory (and the bootrom-helper assumes that
10# the stack-pointer is valid before switching to the U-Boot stack).
11obj-spl-$(CONFIG_ROCKCHIP_BROM_HELPER) += bootrom.o save_boot_param.o
12obj-tpl-$(CONFIG_ROCKCHIP_BROM_HELPER) += bootrom.o save_boot_param.o
13
14obj-tpl-$(CONFIG_ROCKCHIP_RK3188) += rk3188-board-tpl.o
15obj-tpl-$(CONFIG_ROCKCHIP_RK3288) += rk3288-board-tpl.o
16obj-tpl-$(CONFIG_ROCKCHIP_RK3368) += rk3368-board-tpl.o
17
18obj-spl-$(CONFIG_ROCKCHIP_RK3036) += rk3036-board-spl.o
19obj-spl-$(CONFIG_ROCKCHIP_RK3188) += rk3188-board-spl.o
20obj-spl-$(CONFIG_ROCKCHIP_RK322X) += rk322x-board-spl.o
21obj-spl-$(CONFIG_ROCKCHIP_RK3288) += rk3288-board-spl.o
22obj-spl-$(CONFIG_ROCKCHIP_RK3368) += rk3368-board-spl.o spl-boot-order.o
23obj-spl-$(CONFIG_ROCKCHIP_RK3399) += rk3399-board-spl.o spl-boot-order.o
24
25ifeq ($(CONFIG_SPL_BUILD)$(CONFIG_TPL_BUILD),)
26obj-$(CONFIG_ROCKCHIP_RK3188) += rk3188-board.o
27obj-$(CONFIG_ROCKCHIP_RK322X) += rk322x-board.o
28obj-$(CONFIG_ROCKCHIP_RK3288) += rk3288-board.o
29obj-$(CONFIG_ROCKCHIP_RK3036) += rk3036-board.o
30endif
31
32obj-$(CONFIG_$(SPL_TPL_)RAM) += sdram_common.o
33
34ifndef CONFIG_ARM64
35obj-y += rk_timer.o
36endif
37
38obj-$(CONFIG_ROCKCHIP_RK3036) += rk3036/
39ifndef CONFIG_TPL_BUILD
40obj-$(CONFIG_ROCKCHIP_RK3188) += rk3188/
41endif
42obj-$(CONFIG_ROCKCHIP_RK322X) += rk322x/
43obj-$(CONFIG_ROCKCHIP_RK3288) += rk3288/
44obj-$(CONFIG_ROCKCHIP_RK3328) += rk3328/
45obj-$(CONFIG_ROCKCHIP_RK3368) += rk3368/
46obj-$(CONFIG_ROCKCHIP_RK3399) += rk3399/
47obj-$(CONFIG_ROCKCHIP_RV1108) += rv1108/
48
49# Clear out SPL objects, in case this is a TPL build
50obj-spl-$(CONFIG_TPL_BUILD) =
51
52# Now add SPL/TPL objects back into the main build
53obj-$(CONFIG_SPL_BUILD) += $(obj-spl-y)
54obj-$(CONFIG_TPL_BUILD) += $(obj-tpl-y)
55