blob: c5d17f9e6f350fe6ca5aaa802f310b1e66dee6ee [file] [log] [blame]
Simon Glass2cffe662015-08-30 16:55:38 -06001#
2# Copyright (c) 2014 Google, Inc
3#
4# SPDX-License-Identifier: GPL-2.0+
5#
6
Philipp Tomsich5e58afe2017-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
13
14obj-tpl-$(CONFIG_ROCKCHIP_RK3188) += rk3188-board-tpl.o
Philipp Tomsich866a9e72017-07-04 14:40:01 +020015obj-tpl-$(CONFIG_ROCKCHIP_RK3368) += rk3368-board-tpl.o
Philipp Tomsich5e58afe2017-07-04 14:38:28 +020016
17obj-spl-$(CONFIG_ROCKCHIP_RK3036) += rk3036-board-spl.o
18obj-spl-$(CONFIG_ROCKCHIP_RK3188) += rk3188-board-spl.o
19obj-spl-$(CONFIG_ROCKCHIP_RK322X) += rk322x-board-spl.o
20obj-spl-$(CONFIG_ROCKCHIP_RK3288) += rk3288-board-spl.o
21obj-spl-$(CONFIG_ROCKCHIP_RK3368) += rk3368-board-spl.o
Philipp Tomsich5c360af2017-07-19 22:04:32 +020022obj-spl-$(CONFIG_ROCKCHIP_RK3399) += rk3399-board-spl.o spl-boot-order.o
Simon Glassef0ab852017-04-15 13:11:31 -060023
Philipp Tomsich5e58afe2017-07-04 14:38:28 +020024ifeq ($(CONFIG_SPL_BUILD)$(CONFIG_TPL_BUILD),)
Heiko Stübner0b3c26a2017-02-18 19:46:38 +010025obj-$(CONFIG_ROCKCHIP_RK3188) += rk3188-board.o
Kever Yang57d4dbf2017-06-23 17:17:52 +080026obj-$(CONFIG_ROCKCHIP_RK322X) += rk322x-board.o
Jacob Chen73a38ec2016-09-19 18:46:26 +080027obj-$(CONFIG_ROCKCHIP_RK3288) += rk3288-board.o
Jacob Chen746070c2016-09-19 18:46:27 +080028obj-$(CONFIG_ROCKCHIP_RK3036) += rk3036-board.o
Simon Glass2cffe662015-08-30 16:55:38 -060029endif
Philipp Tomsich5e58afe2017-07-04 14:38:28 +020030
31obj-$(CONFIG_$(SPL_TPL_)RAM) += sdram_common.o
32
Andreas Färberb4338b62016-07-14 06:22:09 +020033ifndef CONFIG_ARM64
huang lin8db3e242015-11-17 14:20:09 +080034obj-y += rk_timer.o
Andreas Färberb4338b62016-07-14 06:22:09 +020035endif
Heiko Stübneref6db5e2017-02-18 19:46:36 +010036
Philipp Tomsich5e58afe2017-07-04 14:38:28 +020037obj-$(CONFIG_ROCKCHIP_RK3036) += rk3036/
38obj-tpl-$(CONFIG_ROCKCHIP_RK3188) += rk3188/
Kever Yang57d4dbf2017-06-23 17:17:52 +080039obj-$(CONFIG_ROCKCHIP_RK322X) += rk322x/
Heiko Stübner5c91e2b2016-07-16 00:17:15 +020040obj-$(CONFIG_ROCKCHIP_RK3288) += rk3288/
Kever Yangec02b3c2017-02-23 15:37:51 +080041obj-$(CONFIG_ROCKCHIP_RK3328) += rk3328/
Andreas Färber9e3ad682017-05-15 17:51:18 +080042obj-$(CONFIG_ROCKCHIP_RK3368) += rk3368/
Kever Yang0d3d7832016-07-19 21:16:59 +080043obj-$(CONFIG_ROCKCHIP_RK3399) += rk3399/
Andy Yan2d982da2017-06-01 18:00:55 +080044obj-$(CONFIG_ROCKCHIP_RV1108) += rv1108/
Philipp Tomsich5e58afe2017-07-04 14:38:28 +020045
46# Clear out SPL objects, in case this is a TPL build
47obj-spl-$(CONFIG_TPL_BUILD) =
48
49# Now add SPL/TPL objects back into the main build
50obj-$(CONFIG_SPL_BUILD) += $(obj-spl-y)
51obj-$(CONFIG_TPL_BUILD) += $(obj-tpl-y)