Tom Rini | 10e4779 | 2018-05-06 17:58:06 -0400 | [diff] [blame] | 1 | # SPDX-License-Identifier: GPL-2.0+ |
Simon Glass | 2cffe66 | 2015-08-30 16:55:38 -0600 | [diff] [blame] | 2 | # |
| 3 | # Copyright (c) 2014 Google, Inc |
Kever Yang | 92c8cc9 | 2019-09-02 15:59:04 +0800 | [diff] [blame] | 4 | # Copyright (c) 2019 Rockchip Electronics Co., Ltd. |
Simon Glass | 2cffe66 | 2015-08-30 16:55:38 -0600 | [diff] [blame] | 5 | |
Philipp Tomsich | 5e58afe | 2017-07-04 14:38:28 +0200 | [diff] [blame] | 6 | # We don't want the bootrom-helper present in a full U-Boot build, as |
| 7 | # this may have entered from ATF with the stack-pointer pointing to |
| 8 | # inaccessible/protected memory (and the bootrom-helper assumes that |
| 9 | # the stack-pointer is valid before switching to the U-Boot stack). |
Philipp Tomsich | 39bf18d | 2017-10-10 16:21:14 +0200 | [diff] [blame] | 10 | obj-spl-$(CONFIG_ROCKCHIP_BROM_HELPER) += bootrom.o |
Kever Yang | 1d7cc72a | 2019-07-22 19:59:12 +0800 | [diff] [blame] | 11 | obj-spl-$(CONFIG_SPL_ROCKCHIP_COMMON_BOARD) += spl.o spl-boot-order.o |
Philipp Tomsich | 39bf18d | 2017-10-10 16:21:14 +0200 | [diff] [blame] | 12 | obj-tpl-$(CONFIG_ROCKCHIP_BROM_HELPER) += bootrom.o |
Kever Yang | 34ead0f | 2019-07-09 22:05:55 +0800 | [diff] [blame] | 13 | obj-tpl-$(CONFIG_TPL_ROCKCHIP_COMMON_BOARD) += tpl.o |
Heiko Stuebner | fc36785 | 2019-07-16 22:18:21 +0200 | [diff] [blame] | 14 | obj-tpl-$(CONFIG_ROCKCHIP_PX30) += px30-board-tpl.o |
Philipp Tomsich | 5e58afe | 2017-07-04 14:38:28 +0200 | [diff] [blame] | 15 | |
Philipp Tomsich | 5e58afe | 2017-07-04 14:38:28 +0200 | [diff] [blame] | 16 | obj-spl-$(CONFIG_ROCKCHIP_RK3036) += rk3036-board-spl.o |
Simon Glass | ef0ab85 | 2017-04-15 13:11:31 -0600 | [diff] [blame] | 17 | |
Philipp Tomsich | 5e58afe | 2017-07-04 14:38:28 +0200 | [diff] [blame] | 18 | ifeq ($(CONFIG_SPL_BUILD)$(CONFIG_TPL_BUILD),) |
Andy Yan | 70378cb | 2017-10-11 15:00:16 +0800 | [diff] [blame] | 19 | |
Philipp Tomsich | 3a0df08 | 2017-11-24 14:44:58 +0100 | [diff] [blame] | 20 | # Always include boot_mode.o, as we bypass it (i.e. turn it off) |
| 21 | # inside of boot_mode.c when CONFIG_BOOT_MODE_REG is 0. This way, |
| 22 | # we can have the preprocessor correctly recognise both 0x0 and 0 |
| 23 | # meaning "turn it off". |
Andy Yan | 70378cb | 2017-10-11 15:00:16 +0800 | [diff] [blame] | 24 | obj-y += boot_mode.o |
Kever Yang | bb33773 | 2019-07-22 20:02:01 +0800 | [diff] [blame] | 25 | obj-$(CONFIG_ROCKCHIP_COMMON_BOARD) += board.o |
Kever Yang | 92c8cc9 | 2019-09-02 15:59:04 +0800 | [diff] [blame] | 26 | obj-$(CONFIG_MISC_INIT_R) += misc.o |
Simon Glass | 2cffe66 | 2015-08-30 16:55:38 -0600 | [diff] [blame] | 27 | endif |
Philipp Tomsich | 5e58afe | 2017-07-04 14:38:28 +0200 | [diff] [blame] | 28 | |
Jagan Teki | 5bbc86b | 2020-07-21 20:36:03 +0530 | [diff] [blame] | 29 | ifeq ($(CONFIG_TPL_BUILD),) |
| 30 | obj-$(CONFIG_DISPLAY_CPUINFO) += cpu-info.o |
| 31 | endif |
| 32 | |
Kever Yang | e47db83 | 2019-11-15 11:04:33 +0800 | [diff] [blame] | 33 | obj-$(CONFIG_$(SPL_TPL_)RAM) += sdram.o |
Philipp Tomsich | 5e58afe | 2017-07-04 14:38:28 +0200 | [diff] [blame] | 34 | |
Heiko Stuebner | fc36785 | 2019-07-16 22:18:21 +0200 | [diff] [blame] | 35 | obj-$(CONFIG_ROCKCHIP_PX30) += px30/ |
Philipp Tomsich | 5e58afe | 2017-07-04 14:38:28 +0200 | [diff] [blame] | 36 | obj-$(CONFIG_ROCKCHIP_RK3036) += rk3036/ |
Kever Yang | aa82775 | 2017-11-28 16:04:16 +0800 | [diff] [blame] | 37 | obj-$(CONFIG_ROCKCHIP_RK3128) += rk3128/ |
Philipp Tomsich | fefc4ec | 2017-08-03 22:52:04 +0200 | [diff] [blame] | 38 | obj-$(CONFIG_ROCKCHIP_RK3188) += rk3188/ |
Kever Yang | 57d4dbf | 2017-06-23 17:17:52 +0800 | [diff] [blame] | 39 | obj-$(CONFIG_ROCKCHIP_RK322X) += rk322x/ |
Heiko Stübner | 5c91e2b | 2016-07-16 00:17:15 +0200 | [diff] [blame] | 40 | obj-$(CONFIG_ROCKCHIP_RK3288) += rk3288/ |
Andy Yan | b5e1630 | 2019-11-14 11:21:12 +0800 | [diff] [blame] | 41 | obj-$(CONFIG_ROCKCHIP_RK3308) += rk3308/ |
Kever Yang | ec02b3c | 2017-02-23 15:37:51 +0800 | [diff] [blame] | 42 | obj-$(CONFIG_ROCKCHIP_RK3328) += rk3328/ |
Andreas Färber | 9e3ad68 | 2017-05-15 17:51:18 +0800 | [diff] [blame] | 43 | obj-$(CONFIG_ROCKCHIP_RK3368) += rk3368/ |
Kever Yang | 0d3d783 | 2016-07-19 21:16:59 +0800 | [diff] [blame] | 44 | obj-$(CONFIG_ROCKCHIP_RK3399) += rk3399/ |
Joseph Chen | 72cd879 | 2021-06-02 15:58:25 +0800 | [diff] [blame] | 45 | obj-$(CONFIG_ROCKCHIP_RK3568) += rk3568/ |
Andy Yan | 2d982da | 2017-06-01 18:00:55 +0800 | [diff] [blame] | 46 | obj-$(CONFIG_ROCKCHIP_RV1108) += rv1108/ |
Philipp Tomsich | 5e58afe | 2017-07-04 14:38:28 +0200 | [diff] [blame] | 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) |