blob: 9afbb055d57ff648adbbb2d7ffd089963606818f [file] [log] [blame]
Tom Rini10e47792018-05-06 17:58:06 -04001# SPDX-License-Identifier: GPL-2.0+
Simon Glass2cffe662015-08-30 16:55:38 -06002#
3# Copyright (c) 2014 Google, Inc
Simon Glass2cffe662015-08-30 16:55:38 -06004
Philipp Tomsich5e58afe2017-07-04 14:38:28 +02005# 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 Tomsich39bf18d2017-10-10 16:21:14 +02009obj-spl-$(CONFIG_ROCKCHIP_BROM_HELPER) += bootrom.o
10obj-tpl-$(CONFIG_ROCKCHIP_BROM_HELPER) += bootrom.o
Philipp Tomsich5e58afe2017-07-04 14:38:28 +020011
Jagan Teki387fd4b2017-09-27 23:03:12 +053012obj-tpl-$(CONFIG_ROCKCHIP_RK3288) += rk3288-board-tpl.o
Philipp Tomsich866a9e72017-07-04 14:40:01 +020013obj-tpl-$(CONFIG_ROCKCHIP_RK3368) += rk3368-board-tpl.o
Kever Yangaff40c62019-04-02 20:41:24 +080014obj-tpl-$(CONFIG_ROCKCHIP_RK322X) += rk322x-board-tpl.o
Kever Yangfca798d2018-11-09 11:18:15 +080015obj-tpl-$(CONFIG_ROCKCHIP_RK3399) += rk3399-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
Kever Yangaff40c62019-04-02 20:41:24 +080019obj-spl-$(CONFIG_ROCKCHIP_RK322X) += rk322x-board-spl.o spl-boot-order.o
Kever Yange5f3c6e2019-07-09 21:58:54 +080020obj-spl-$(CONFIG_ROCKCHIP_RK3288) += rk3288-board-spl.o spl-boot-order.o
Kever Yang89659f82019-06-09 00:27:13 +030021obj-spl-$(CONFIG_ROCKCHIP_RK3328) += rk3328-board-spl.o
Philipp Tomsicha900e7c2017-06-12 10:33:20 +020022obj-spl-$(CONFIG_ROCKCHIP_RK3368) += rk3368-board-spl.o spl-boot-order.o
Philipp Tomsich5c360af2017-07-19 22:04:32 +020023obj-spl-$(CONFIG_ROCKCHIP_RK3399) += rk3399-board-spl.o spl-boot-order.o
Simon Glassef0ab852017-04-15 13:11:31 -060024
Philipp Tomsich5e58afe2017-07-04 14:38:28 +020025ifeq ($(CONFIG_SPL_BUILD)$(CONFIG_TPL_BUILD),)
Andy Yan70378cb2017-10-11 15:00:16 +080026
Philipp Tomsich3a0df082017-11-24 14:44:58 +010027# 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 Yan70378cb2017-10-11 15:00:16 +080031obj-y += boot_mode.o
Andy Yan70378cb2017-10-11 15:00:16 +080032
Heiko Stübner0b3c26a2017-02-18 19:46:38 +010033obj-$(CONFIG_ROCKCHIP_RK3188) += rk3188-board.o
Kever Yangaa827752017-11-28 16:04:16 +080034obj-$(CONFIG_ROCKCHIP_RK3128) += rk3128-board.o
Kever Yang57d4dbf2017-06-23 17:17:52 +080035obj-$(CONFIG_ROCKCHIP_RK322X) += rk322x-board.o
Jacob Chen73a38ec2016-09-19 18:46:26 +080036obj-$(CONFIG_ROCKCHIP_RK3288) += rk3288-board.o
Jacob Chen746070c2016-09-19 18:46:27 +080037obj-$(CONFIG_ROCKCHIP_RK3036) += rk3036-board.o
Andy Yan70378cb2017-10-11 15:00:16 +080038obj-$(CONFIG_ROCKCHIP_RK3399) += rk3399-board.o
Otavio Salvador374dfcd2018-11-30 11:34:15 -020039obj-$(CONFIG_ROCKCHIP_RV1108) += rv1108-board.o
Simon Glass2cffe662015-08-30 16:55:38 -060040endif
Philipp Tomsich5e58afe2017-07-04 14:38:28 +020041
42obj-$(CONFIG_$(SPL_TPL_)RAM) += sdram_common.o
43
Philipp Tomsich5e58afe2017-07-04 14:38:28 +020044obj-$(CONFIG_ROCKCHIP_RK3036) += rk3036/
Kever Yangaa827752017-11-28 16:04:16 +080045obj-$(CONFIG_ROCKCHIP_RK3128) += rk3128/
Philipp Tomsichfefc4ec2017-08-03 22:52:04 +020046ifndef CONFIG_TPL_BUILD
47obj-$(CONFIG_ROCKCHIP_RK3188) += rk3188/
48endif
Kever Yang57d4dbf2017-06-23 17:17:52 +080049obj-$(CONFIG_ROCKCHIP_RK322X) += rk322x/
Heiko Stübner5c91e2b2016-07-16 00:17:15 +020050obj-$(CONFIG_ROCKCHIP_RK3288) += rk3288/
Kever Yangec02b3c2017-02-23 15:37:51 +080051obj-$(CONFIG_ROCKCHIP_RK3328) += rk3328/
Andreas Färber9e3ad682017-05-15 17:51:18 +080052obj-$(CONFIG_ROCKCHIP_RK3368) += rk3368/
Kever Yang0d3d7832016-07-19 21:16:59 +080053obj-$(CONFIG_ROCKCHIP_RK3399) += rk3399/
Andy Yan2d982da2017-06-01 18:00:55 +080054obj-$(CONFIG_ROCKCHIP_RV1108) += rv1108/
Philipp Tomsich5e58afe2017-07-04 14:38:28 +020055
56# Clear out SPL objects, in case this is a TPL build
57obj-spl-$(CONFIG_TPL_BUILD) =
58
59# Now add SPL/TPL objects back into the main build
60obj-$(CONFIG_SPL_BUILD) += $(obj-spl-y)
61obj-$(CONFIG_TPL_BUILD) += $(obj-tpl-y)