]>
Commit | Line | Data |
---|---|---|
2444dae5 SG |
1 | # |
2 | # Copyright (c) 2014 Google, Inc | |
3 | # | |
4 | # SPDX-License-Identifier: GPL-2.0+ | |
5 | # | |
6 | ||
832567d5 PT |
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). | |
11 | obj-spl-$(CONFIG_ROCKCHIP_BROM_HELPER) += bootrom.o save_boot_param.o | |
12 | obj-tpl-$(CONFIG_ROCKCHIP_BROM_HELPER) += bootrom.o save_boot_param.o | |
13 | ||
14 | obj-tpl-$(CONFIG_ROCKCHIP_RK3188) += rk3188-board-tpl.o | |
a55e4971 | 15 | obj-tpl-$(CONFIG_ROCKCHIP_RK3368) += rk3368-board-tpl.o |
832567d5 PT |
16 | |
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 | |
20 | obj-spl-$(CONFIG_ROCKCHIP_RK3288) += rk3288-board-spl.o | |
fbbd3800 | 21 | obj-spl-$(CONFIG_ROCKCHIP_RK3368) += rk3368-board-spl.o spl-boot-order.o |
9b0bc593 | 22 | obj-spl-$(CONFIG_ROCKCHIP_RK3399) += rk3399-board-spl.o spl-boot-order.o |
e1bc64ee | 23 | |
832567d5 | 24 | ifeq ($(CONFIG_SPL_BUILD)$(CONFIG_TPL_BUILD),) |
df9041ec | 25 | obj-$(CONFIG_ROCKCHIP_RK3188) += rk3188-board.o |
168eef7a | 26 | obj-$(CONFIG_ROCKCHIP_RK322X) += rk322x-board.o |
cd77fd1b | 27 | obj-$(CONFIG_ROCKCHIP_RK3288) += rk3288-board.o |
f48f2b72 | 28 | obj-$(CONFIG_ROCKCHIP_RK3036) += rk3036-board.o |
2444dae5 | 29 | endif |
832567d5 PT |
30 | |
31 | obj-$(CONFIG_$(SPL_TPL_)RAM) += sdram_common.o | |
32 | ||
ad8fe6b9 | 33 | ifndef CONFIG_ARM64 |
cc2244b8 | 34 | obj-y += rk_timer.o |
ad8fe6b9 | 35 | endif |
0a2be69f | 36 | |
832567d5 | 37 | obj-$(CONFIG_ROCKCHIP_RK3036) += rk3036/ |
96b9082c PT |
38 | ifndef CONFIG_TPL_BUILD |
39 | obj-$(CONFIG_ROCKCHIP_RK3188) += rk3188/ | |
40 | endif | |
168eef7a | 41 | obj-$(CONFIG_ROCKCHIP_RK322X) += rk322x/ |
041cdb5f | 42 | obj-$(CONFIG_ROCKCHIP_RK3288) += rk3288/ |
85a3cfb8 | 43 | obj-$(CONFIG_ROCKCHIP_RK3328) += rk3328/ |
37a0c600 | 44 | obj-$(CONFIG_ROCKCHIP_RK3368) += rk3368/ |
a381bcf5 | 45 | obj-$(CONFIG_ROCKCHIP_RK3399) += rk3399/ |
2c1e11dd | 46 | obj-$(CONFIG_ROCKCHIP_RV1108) += rv1108/ |
832567d5 PT |
47 | |
48 | # Clear out SPL objects, in case this is a TPL build | |
49 | obj-spl-$(CONFIG_TPL_BUILD) = | |
50 | ||
51 | # Now add SPL/TPL objects back into the main build | |
52 | obj-$(CONFIG_SPL_BUILD) += $(obj-spl-y) | |
53 | obj-$(CONFIG_TPL_BUILD) += $(obj-tpl-y) |