]>
Commit | Line | Data |
---|---|---|
83d290c5 | 1 | # SPDX-License-Identifier: GPL-2.0+ |
2444dae5 SG |
2 | # |
3 | # Copyright (c) 2014 Google, Inc | |
2444dae5 | 4 | |
832567d5 PT |
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). | |
ecfd7189 PT |
9 | obj-spl-$(CONFIG_ROCKCHIP_BROM_HELPER) += bootrom.o |
10 | obj-tpl-$(CONFIG_ROCKCHIP_BROM_HELPER) += bootrom.o | |
832567d5 | 11 | |
532cb7f5 | 12 | obj-tpl-$(CONFIG_ROCKCHIP_RK3288) += rk3288-board-tpl.o |
a55e4971 | 13 | obj-tpl-$(CONFIG_ROCKCHIP_RK3368) += rk3368-board-tpl.o |
832567d5 PT |
14 | |
15 | obj-spl-$(CONFIG_ROCKCHIP_RK3036) += rk3036-board-spl.o | |
16 | obj-spl-$(CONFIG_ROCKCHIP_RK3188) += rk3188-board-spl.o | |
17 | obj-spl-$(CONFIG_ROCKCHIP_RK322X) += rk322x-board-spl.o | |
18 | obj-spl-$(CONFIG_ROCKCHIP_RK3288) += rk3288-board-spl.o | |
fbbd3800 | 19 | obj-spl-$(CONFIG_ROCKCHIP_RK3368) += rk3368-board-spl.o spl-boot-order.o |
9b0bc593 | 20 | obj-spl-$(CONFIG_ROCKCHIP_RK3399) += rk3399-board-spl.o spl-boot-order.o |
e1bc64ee | 21 | |
832567d5 | 22 | ifeq ($(CONFIG_SPL_BUILD)$(CONFIG_TPL_BUILD),) |
e3067793 | 23 | |
f07d76c0 PT |
24 | # Always include boot_mode.o, as we bypass it (i.e. turn it off) |
25 | # inside of boot_mode.c when CONFIG_BOOT_MODE_REG is 0. This way, | |
26 | # we can have the preprocessor correctly recognise both 0x0 and 0 | |
27 | # meaning "turn it off". | |
e3067793 | 28 | obj-y += boot_mode.o |
e3067793 | 29 | |
df9041ec | 30 | obj-$(CONFIG_ROCKCHIP_RK3188) += rk3188-board.o |
daeed1db | 31 | obj-$(CONFIG_ROCKCHIP_RK3128) += rk3128-board.o |
168eef7a | 32 | obj-$(CONFIG_ROCKCHIP_RK322X) += rk322x-board.o |
cd77fd1b | 33 | obj-$(CONFIG_ROCKCHIP_RK3288) += rk3288-board.o |
f48f2b72 | 34 | obj-$(CONFIG_ROCKCHIP_RK3036) += rk3036-board.o |
e3067793 | 35 | obj-$(CONFIG_ROCKCHIP_RK3399) += rk3399-board.o |
2444dae5 | 36 | endif |
832567d5 PT |
37 | |
38 | obj-$(CONFIG_$(SPL_TPL_)RAM) += sdram_common.o | |
39 | ||
ad8fe6b9 | 40 | ifndef CONFIG_ARM64 |
fd9e0fe0 | 41 | ifndef CONFIG_ROCKCHIP_RK3188 |
cc2244b8 | 42 | obj-y += rk_timer.o |
ad8fe6b9 | 43 | endif |
fd9e0fe0 | 44 | endif |
0a2be69f | 45 | |
832567d5 | 46 | obj-$(CONFIG_ROCKCHIP_RK3036) += rk3036/ |
daeed1db | 47 | obj-$(CONFIG_ROCKCHIP_RK3128) += rk3128/ |
96b9082c PT |
48 | ifndef CONFIG_TPL_BUILD |
49 | obj-$(CONFIG_ROCKCHIP_RK3188) += rk3188/ | |
50 | endif | |
168eef7a | 51 | obj-$(CONFIG_ROCKCHIP_RK322X) += rk322x/ |
041cdb5f | 52 | obj-$(CONFIG_ROCKCHIP_RK3288) += rk3288/ |
85a3cfb8 | 53 | obj-$(CONFIG_ROCKCHIP_RK3328) += rk3328/ |
37a0c600 | 54 | obj-$(CONFIG_ROCKCHIP_RK3368) += rk3368/ |
a381bcf5 | 55 | obj-$(CONFIG_ROCKCHIP_RK3399) += rk3399/ |
2c1e11dd | 56 | obj-$(CONFIG_ROCKCHIP_RV1108) += rv1108/ |
832567d5 PT |
57 | |
58 | # Clear out SPL objects, in case this is a TPL build | |
59 | obj-spl-$(CONFIG_TPL_BUILD) = | |
60 | ||
61 | # Now add SPL/TPL objects back into the main build | |
62 | obj-$(CONFIG_SPL_BUILD) += $(obj-spl-y) | |
63 | obj-$(CONFIG_TPL_BUILD) += $(obj-tpl-y) |