Simon Glass | 2cffe66 | 2015-08-30 16:55:38 -0600 | [diff] [blame] | 1 | # |
| 2 | # Copyright (c) 2014 Google, Inc |
| 3 | # |
| 4 | # SPDX-License-Identifier: GPL-2.0+ |
| 5 | # |
| 6 | |
Philipp Tomsich | 5e58afe | 2017-07-04 14:38:28 +0200 | [diff] [blame] | 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 |
Philipp Tomsich | 866a9e7 | 2017-07-04 14:40:01 +0200 | [diff] [blame^] | 15 | obj-tpl-$(CONFIG_ROCKCHIP_RK3368) += rk3368-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 |
| 19 | obj-spl-$(CONFIG_ROCKCHIP_RK322X) += rk322x-board-spl.o |
| 20 | obj-spl-$(CONFIG_ROCKCHIP_RK3288) += rk3288-board-spl.o |
| 21 | obj-spl-$(CONFIG_ROCKCHIP_RK3368) += rk3368-board-spl.o |
| 22 | obj-spl-$(CONFIG_ROCKCHIP_RK3399) += rk3399-board-spl.o |
Simon Glass | ef0ab85 | 2017-04-15 13:11:31 -0600 | [diff] [blame] | 23 | |
Philipp Tomsich | 5e58afe | 2017-07-04 14:38:28 +0200 | [diff] [blame] | 24 | ifeq ($(CONFIG_SPL_BUILD)$(CONFIG_TPL_BUILD),) |
Heiko Stübner | 0b3c26a | 2017-02-18 19:46:38 +0100 | [diff] [blame] | 25 | obj-$(CONFIG_ROCKCHIP_RK3188) += rk3188-board.o |
Kever Yang | 57d4dbf | 2017-06-23 17:17:52 +0800 | [diff] [blame] | 26 | obj-$(CONFIG_ROCKCHIP_RK322X) += rk322x-board.o |
Jacob Chen | 73a38ec | 2016-09-19 18:46:26 +0800 | [diff] [blame] | 27 | obj-$(CONFIG_ROCKCHIP_RK3288) += rk3288-board.o |
Jacob Chen | 746070c | 2016-09-19 18:46:27 +0800 | [diff] [blame] | 28 | obj-$(CONFIG_ROCKCHIP_RK3036) += rk3036-board.o |
Simon Glass | 2cffe66 | 2015-08-30 16:55:38 -0600 | [diff] [blame] | 29 | endif |
Philipp Tomsich | 5e58afe | 2017-07-04 14:38:28 +0200 | [diff] [blame] | 30 | |
| 31 | obj-$(CONFIG_$(SPL_TPL_)RAM) += sdram_common.o |
| 32 | |
Andreas Färber | b4338b6 | 2016-07-14 06:22:09 +0200 | [diff] [blame] | 33 | ifndef CONFIG_ARM64 |
huang lin | 8db3e24 | 2015-11-17 14:20:09 +0800 | [diff] [blame] | 34 | obj-y += rk_timer.o |
Andreas Färber | b4338b6 | 2016-07-14 06:22:09 +0200 | [diff] [blame] | 35 | endif |
Heiko Stübner | ef6db5e | 2017-02-18 19:46:36 +0100 | [diff] [blame] | 36 | |
Philipp Tomsich | 5e58afe | 2017-07-04 14:38:28 +0200 | [diff] [blame] | 37 | obj-$(CONFIG_ROCKCHIP_RK3036) += rk3036/ |
| 38 | obj-tpl-$(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/ |
Kever Yang | ec02b3c | 2017-02-23 15:37:51 +0800 | [diff] [blame] | 41 | obj-$(CONFIG_ROCKCHIP_RK3328) += rk3328/ |
Andreas Färber | 9e3ad68 | 2017-05-15 17:51:18 +0800 | [diff] [blame] | 42 | obj-$(CONFIG_ROCKCHIP_RK3368) += rk3368/ |
Kever Yang | 0d3d783 | 2016-07-19 21:16:59 +0800 | [diff] [blame] | 43 | obj-$(CONFIG_ROCKCHIP_RK3399) += rk3399/ |
Andy Yan | 2d982da | 2017-06-01 18:00:55 +0800 | [diff] [blame] | 44 | obj-$(CONFIG_ROCKCHIP_RV1108) += rv1108/ |
Philipp Tomsich | 5e58afe | 2017-07-04 14:38:28 +0200 | [diff] [blame] | 45 | |
| 46 | # Clear out SPL objects, in case this is a TPL build |
| 47 | obj-spl-$(CONFIG_TPL_BUILD) = |
| 48 | |
| 49 | # Now add SPL/TPL objects back into the main build |
| 50 | obj-$(CONFIG_SPL_BUILD) += $(obj-spl-y) |
| 51 | obj-$(CONFIG_TPL_BUILD) += $(obj-tpl-y) |