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 |
Simon Glass | 2cffe66 | 2015-08-30 16:55:38 -0600 | [diff] [blame] | 4 | |
Philipp Tomsich | 5e58afe | 2017-07-04 14:38:28 +0200 | [diff] [blame] | 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). |
Philipp Tomsich | 39bf18d | 2017-10-10 16:21:14 +0200 | [diff] [blame] | 9 | obj-spl-$(CONFIG_ROCKCHIP_BROM_HELPER) += bootrom.o |
| 10 | obj-tpl-$(CONFIG_ROCKCHIP_BROM_HELPER) += bootrom.o |
Philipp Tomsich | 5e58afe | 2017-07-04 14:38:28 +0200 | [diff] [blame] | 11 | |
Jagan Teki | 387fd4b | 2017-09-27 23:03:12 +0530 | [diff] [blame] | 12 | obj-tpl-$(CONFIG_ROCKCHIP_RK3288) += rk3288-board-tpl.o |
Philipp Tomsich | 866a9e7 | 2017-07-04 14:40:01 +0200 | [diff] [blame] | 13 | obj-tpl-$(CONFIG_ROCKCHIP_RK3368) += rk3368-board-tpl.o |
Kever Yang | aff40c6 | 2019-04-02 20:41:24 +0800 | [diff] [blame] | 14 | obj-tpl-$(CONFIG_ROCKCHIP_RK322X) += rk322x-board-tpl.o |
Kever Yang | fca798d | 2018-11-09 11:18:15 +0800 | [diff] [blame] | 15 | obj-tpl-$(CONFIG_ROCKCHIP_RK3399) += rk3399-board-tpl.o |
Philipp Tomsich | 5e58afe | 2017-07-04 14:38:28 +0200 | [diff] [blame] | 16 | |
| 17 | obj-spl-$(CONFIG_ROCKCHIP_RK3036) += rk3036-board-spl.o |
| 18 | obj-spl-$(CONFIG_ROCKCHIP_RK3188) += rk3188-board-spl.o |
Kever Yang | aff40c6 | 2019-04-02 20:41:24 +0800 | [diff] [blame] | 19 | obj-spl-$(CONFIG_ROCKCHIP_RK322X) += rk322x-board-spl.o spl-boot-order.o |
Kever Yang | e5f3c6e | 2019-07-09 21:58:54 +0800 | [diff] [blame] | 20 | obj-spl-$(CONFIG_ROCKCHIP_RK3288) += rk3288-board-spl.o spl-boot-order.o |
Kever Yang | 89659f8 | 2019-06-09 00:27:13 +0300 | [diff] [blame] | 21 | obj-spl-$(CONFIG_ROCKCHIP_RK3328) += rk3328-board-spl.o |
Philipp Tomsich | a900e7c | 2017-06-12 10:33:20 +0200 | [diff] [blame] | 22 | obj-spl-$(CONFIG_ROCKCHIP_RK3368) += rk3368-board-spl.o spl-boot-order.o |
Philipp Tomsich | 5c360af | 2017-07-19 22:04:32 +0200 | [diff] [blame] | 23 | obj-spl-$(CONFIG_ROCKCHIP_RK3399) += rk3399-board-spl.o spl-boot-order.o |
Simon Glass | ef0ab85 | 2017-04-15 13:11:31 -0600 | [diff] [blame] | 24 | |
Philipp Tomsich | 5e58afe | 2017-07-04 14:38:28 +0200 | [diff] [blame] | 25 | ifeq ($(CONFIG_SPL_BUILD)$(CONFIG_TPL_BUILD),) |
Andy Yan | 70378cb | 2017-10-11 15:00:16 +0800 | [diff] [blame] | 26 | |
Philipp Tomsich | 3a0df08 | 2017-11-24 14:44:58 +0100 | [diff] [blame] | 27 | # Always include boot_mode.o, as we bypass it (i.e. turn it off) |
| 28 | # inside of boot_mode.c when CONFIG_BOOT_MODE_REG is 0. This way, |
| 29 | # we can have the preprocessor correctly recognise both 0x0 and 0 |
| 30 | # meaning "turn it off". |
Andy Yan | 70378cb | 2017-10-11 15:00:16 +0800 | [diff] [blame] | 31 | obj-y += boot_mode.o |
Andy Yan | 70378cb | 2017-10-11 15:00:16 +0800 | [diff] [blame] | 32 | |
Heiko Stübner | 0b3c26a | 2017-02-18 19:46:38 +0100 | [diff] [blame] | 33 | obj-$(CONFIG_ROCKCHIP_RK3188) += rk3188-board.o |
Kever Yang | aa82775 | 2017-11-28 16:04:16 +0800 | [diff] [blame] | 34 | obj-$(CONFIG_ROCKCHIP_RK3128) += rk3128-board.o |
Kever Yang | 57d4dbf | 2017-06-23 17:17:52 +0800 | [diff] [blame] | 35 | obj-$(CONFIG_ROCKCHIP_RK322X) += rk322x-board.o |
Jacob Chen | 73a38ec | 2016-09-19 18:46:26 +0800 | [diff] [blame] | 36 | obj-$(CONFIG_ROCKCHIP_RK3288) += rk3288-board.o |
Jacob Chen | 746070c | 2016-09-19 18:46:27 +0800 | [diff] [blame] | 37 | obj-$(CONFIG_ROCKCHIP_RK3036) += rk3036-board.o |
Andy Yan | 70378cb | 2017-10-11 15:00:16 +0800 | [diff] [blame] | 38 | obj-$(CONFIG_ROCKCHIP_RK3399) += rk3399-board.o |
Otavio Salvador | 374dfcd | 2018-11-30 11:34:15 -0200 | [diff] [blame] | 39 | obj-$(CONFIG_ROCKCHIP_RV1108) += rv1108-board.o |
Simon Glass | 2cffe66 | 2015-08-30 16:55:38 -0600 | [diff] [blame] | 40 | endif |
Philipp Tomsich | 5e58afe | 2017-07-04 14:38:28 +0200 | [diff] [blame] | 41 | |
| 42 | obj-$(CONFIG_$(SPL_TPL_)RAM) += sdram_common.o |
| 43 | |
Philipp Tomsich | 5e58afe | 2017-07-04 14:38:28 +0200 | [diff] [blame] | 44 | obj-$(CONFIG_ROCKCHIP_RK3036) += rk3036/ |
Kever Yang | aa82775 | 2017-11-28 16:04:16 +0800 | [diff] [blame] | 45 | obj-$(CONFIG_ROCKCHIP_RK3128) += rk3128/ |
Philipp Tomsich | fefc4ec | 2017-08-03 22:52:04 +0200 | [diff] [blame] | 46 | ifndef CONFIG_TPL_BUILD |
| 47 | obj-$(CONFIG_ROCKCHIP_RK3188) += rk3188/ |
| 48 | endif |
Kever Yang | 57d4dbf | 2017-06-23 17:17:52 +0800 | [diff] [blame] | 49 | obj-$(CONFIG_ROCKCHIP_RK322X) += rk322x/ |
Heiko Stübner | 5c91e2b | 2016-07-16 00:17:15 +0200 | [diff] [blame] | 50 | obj-$(CONFIG_ROCKCHIP_RK3288) += rk3288/ |
Kever Yang | ec02b3c | 2017-02-23 15:37:51 +0800 | [diff] [blame] | 51 | obj-$(CONFIG_ROCKCHIP_RK3328) += rk3328/ |
Andreas Färber | 9e3ad68 | 2017-05-15 17:51:18 +0800 | [diff] [blame] | 52 | obj-$(CONFIG_ROCKCHIP_RK3368) += rk3368/ |
Kever Yang | 0d3d783 | 2016-07-19 21:16:59 +0800 | [diff] [blame] | 53 | obj-$(CONFIG_ROCKCHIP_RK3399) += rk3399/ |
Andy Yan | 2d982da | 2017-06-01 18:00:55 +0800 | [diff] [blame] | 54 | obj-$(CONFIG_ROCKCHIP_RV1108) += rv1108/ |
Philipp Tomsich | 5e58afe | 2017-07-04 14:38:28 +0200 | [diff] [blame] | 55 | |
| 56 | # Clear out SPL objects, in case this is a TPL build |
| 57 | obj-spl-$(CONFIG_TPL_BUILD) = |
| 58 | |
| 59 | # Now add SPL/TPL objects back into the main build |
| 60 | obj-$(CONFIG_SPL_BUILD) += $(obj-spl-y) |
| 61 | obj-$(CONFIG_TPL_BUILD) += $(obj-tpl-y) |