blob: daafc8de6a8a059298bc942d34e102d144ca4ec8 [file] [log] [blame]
Simon Glass2444dae2015-08-30 16:55:38 -06001#
2# Copyright (c) 2014 Google, Inc
3#
4# SPDX-License-Identifier: GPL-2.0+
5#
6
Philipp Tomsich832567d2017-07-04 14:38:28 +02007# 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).
11obj-spl-$(CONFIG_ROCKCHIP_BROM_HELPER) += bootrom.o save_boot_param.o
12obj-tpl-$(CONFIG_ROCKCHIP_BROM_HELPER) += bootrom.o save_boot_param.o
Simon Glasse1bc64e2017-04-15 13:11:31 -060013
Philipp Tomsich832567d2017-07-04 14:38:28 +020014obj-tpl-$(CONFIG_ROCKCHIP_RK3188) += rk3188-board-tpl.o
Jagan Teki532cb7f2017-09-27 23:03:12 +053015obj-tpl-$(CONFIG_ROCKCHIP_RK3288) += rk3288-board-tpl.o
Philipp Tomsicha55e4972017-07-04 14:40:01 +020016obj-tpl-$(CONFIG_ROCKCHIP_RK3368) += rk3368-board-tpl.o
Philipp Tomsich832567d2017-07-04 14:38:28 +020017
18obj-spl-$(CONFIG_ROCKCHIP_RK3036) += rk3036-board-spl.o
19obj-spl-$(CONFIG_ROCKCHIP_RK3188) += rk3188-board-spl.o
20obj-spl-$(CONFIG_ROCKCHIP_RK322X) += rk322x-board-spl.o
21obj-spl-$(CONFIG_ROCKCHIP_RK3288) += rk3288-board-spl.o
Philipp Tomsichfbbd3802017-06-12 10:33:20 +020022obj-spl-$(CONFIG_ROCKCHIP_RK3368) += rk3368-board-spl.o spl-boot-order.o
Philipp Tomsich9b0bc592017-07-19 22:04:32 +020023obj-spl-$(CONFIG_ROCKCHIP_RK3399) += rk3399-board-spl.o spl-boot-order.o
Philipp Tomsich832567d2017-07-04 14:38:28 +020024
25ifeq ($(CONFIG_SPL_BUILD)$(CONFIG_TPL_BUILD),)
Heiko Stübnerdf9041e2017-02-18 19:46:38 +010026obj-$(CONFIG_ROCKCHIP_RK3188) += rk3188-board.o
Kever Yang168eef72017-06-23 17:17:52 +080027obj-$(CONFIG_ROCKCHIP_RK322X) += rk322x-board.o
Jacob Chencd77fd12016-09-19 18:46:26 +080028obj-$(CONFIG_ROCKCHIP_RK3288) += rk3288-board.o
Jacob Chenf48f2b72016-09-19 18:46:27 +080029obj-$(CONFIG_ROCKCHIP_RK3036) += rk3036-board.o
Simon Glass2444dae2015-08-30 16:55:38 -060030endif
Philipp Tomsich832567d2017-07-04 14:38:28 +020031
32obj-$(CONFIG_$(SPL_TPL_)RAM) += sdram_common.o
33
Andreas Färberad8fe6b2016-07-14 06:22:09 +020034ifndef CONFIG_ARM64
huang lincc2244b2015-11-17 14:20:09 +080035obj-y += rk_timer.o
Andreas Färberad8fe6b2016-07-14 06:22:09 +020036endif
Philipp Tomsich832567d2017-07-04 14:38:28 +020037
huang linbe1d5e02015-11-17 14:20:27 +080038obj-$(CONFIG_ROCKCHIP_RK3036) += rk3036/
Philipp Tomsich96b90822017-08-03 22:52:04 +020039ifndef CONFIG_TPL_BUILD
40obj-$(CONFIG_ROCKCHIP_RK3188) += rk3188/
41endif
Kever Yang168eef72017-06-23 17:17:52 +080042obj-$(CONFIG_ROCKCHIP_RK322X) += rk322x/
Heiko Stübner041cdb52016-07-16 00:17:15 +020043obj-$(CONFIG_ROCKCHIP_RK3288) += rk3288/
Kever Yang85a3cfb2017-02-23 15:37:51 +080044obj-$(CONFIG_ROCKCHIP_RK3328) += rk3328/
Andreas Färber37a0c602017-05-15 17:51:18 +080045obj-$(CONFIG_ROCKCHIP_RK3368) += rk3368/
Kever Yanga381bcf2016-07-19 21:16:59 +080046obj-$(CONFIG_ROCKCHIP_RK3399) += rk3399/
Andy Yan2c1e11d2017-06-01 18:00:55 +080047obj-$(CONFIG_ROCKCHIP_RV1108) += rv1108/
Philipp Tomsich832567d2017-07-04 14:38:28 +020048
49# Clear out SPL objects, in case this is a TPL build
50obj-spl-$(CONFIG_TPL_BUILD) =
51
52# Now add SPL/TPL objects back into the main build
53obj-$(CONFIG_SPL_BUILD) += $(obj-spl-y)
54obj-$(CONFIG_TPL_BUILD) += $(obj-tpl-y)