1 # SPDX-License-Identifier: GPL-2.0+
3 # Copyright (c) 2014 Google, Inc
5 # We don't want the bootrom-helper present in a full U-Boot build, as
6 # this may have entered from ATF with the stack-pointer pointing to
7 # inaccessible/protected memory (and the bootrom-helper assumes that
8 # the stack-pointer is valid before switching to the U-Boot stack).
9 obj-spl-$(CONFIG_ROCKCHIP_BROM_HELPER) += bootrom.o
10 obj-tpl-$(CONFIG_ROCKCHIP_BROM_HELPER) += bootrom.o
12 obj-tpl-$(CONFIG_ROCKCHIP_RK3288) += rk3288-board-tpl.o
13 obj-tpl-$(CONFIG_ROCKCHIP_RK3368) += rk3368-board-tpl.o
14 obj-tpl-$(CONFIG_ROCKCHIP_RK322X) += rk322x-board-tpl.o
15 obj-tpl-$(CONFIG_ROCKCHIP_RK3399) += rk3399-board-tpl.o
17 obj-spl-$(CONFIG_ROCKCHIP_RK3036) += rk3036-board-spl.o
18 obj-spl-$(CONFIG_ROCKCHIP_RK3188) += rk3188-board-spl.o
19 obj-spl-$(CONFIG_ROCKCHIP_RK322X) += rk322x-board-spl.o spl-boot-order.o
20 obj-spl-$(CONFIG_ROCKCHIP_RK3288) += rk3288-board-spl.o
21 obj-spl-$(CONFIG_ROCKCHIP_RK3368) += rk3368-board-spl.o spl-boot-order.o
22 obj-spl-$(CONFIG_ROCKCHIP_RK3399) += rk3399-board-spl.o spl-boot-order.o
24 ifeq ($(CONFIG_SPL_BUILD)$(CONFIG_TPL_BUILD),)
26 # Always include boot_mode.o, as we bypass it (i.e. turn it off)
27 # inside of boot_mode.c when CONFIG_BOOT_MODE_REG is 0. This way,
28 # we can have the preprocessor correctly recognise both 0x0 and 0
29 # meaning "turn it off".
32 obj-$(CONFIG_ROCKCHIP_RK3188) += rk3188-board.o
33 obj-$(CONFIG_ROCKCHIP_RK3128) += rk3128-board.o
34 obj-$(CONFIG_ROCKCHIP_RK322X) += rk322x-board.o
35 obj-$(CONFIG_ROCKCHIP_RK3288) += rk3288-board.o
36 obj-$(CONFIG_ROCKCHIP_RK3036) += rk3036-board.o
37 obj-$(CONFIG_ROCKCHIP_RK3399) += rk3399-board.o
38 obj-$(CONFIG_ROCKCHIP_RV1108) += rv1108-board.o
41 obj-$(CONFIG_$(SPL_TPL_)RAM) += sdram_common.o
44 ifndef CONFIG_ROCKCHIP_RK3188
49 obj-$(CONFIG_ROCKCHIP_RK3036) += rk3036/
50 obj-$(CONFIG_ROCKCHIP_RK3128) += rk3128/
51 ifndef CONFIG_TPL_BUILD
52 obj-$(CONFIG_ROCKCHIP_RK3188) += rk3188/
54 obj-$(CONFIG_ROCKCHIP_RK322X) += rk322x/
55 obj-$(CONFIG_ROCKCHIP_RK3288) += rk3288/
56 obj-$(CONFIG_ROCKCHIP_RK3328) += rk3328/
57 obj-$(CONFIG_ROCKCHIP_RK3368) += rk3368/
58 obj-$(CONFIG_ROCKCHIP_RK3399) += rk3399/
59 obj-$(CONFIG_ROCKCHIP_RV1108) += rv1108/
61 # Clear out SPL objects, in case this is a TPL build
62 obj-spl-$(CONFIG_TPL_BUILD) =
64 # Now add SPL/TPL objects back into the main build
65 obj-$(CONFIG_SPL_BUILD) += $(obj-spl-y)
66 obj-$(CONFIG_TPL_BUILD) += $(obj-tpl-y)