blob: 45d9b06233fdc347e0d3dd809c165034d7a97d51 [file] [log] [blame]
Tom Rini83d290c2018-05-06 17:58:06 -04001# SPDX-License-Identifier: GPL-2.0+
Simon Glass2444dae2015-08-30 16:55:38 -06002#
3# Copyright (c) 2014 Google, Inc
Kever Yangc9ec5fe2019-09-02 15:59:04 +08004# Copyright (c) 2019 Rockchip Electronics Co., Ltd.
Simon Glass2444dae2015-08-30 16:55:38 -06005
Philipp Tomsich832567d2017-07-04 14:38:28 +02006# We don't want the bootrom-helper present in a full U-Boot build, as
7# this may have entered from ATF with the stack-pointer pointing to
8# inaccessible/protected memory (and the bootrom-helper assumes that
9# the stack-pointer is valid before switching to the U-Boot stack).
Philipp Tomsichecfd7182017-10-10 16:21:14 +020010obj-spl-$(CONFIG_ROCKCHIP_BROM_HELPER) += bootrom.o
Kever Yang49105fb2019-07-22 19:59:12 +080011obj-spl-$(CONFIG_SPL_ROCKCHIP_COMMON_BOARD) += spl.o spl-boot-order.o
Philipp Tomsichecfd7182017-10-10 16:21:14 +020012obj-tpl-$(CONFIG_ROCKCHIP_BROM_HELPER) += bootrom.o
Kever Yang18f85082019-07-09 22:05:55 +080013obj-tpl-$(CONFIG_TPL_ROCKCHIP_COMMON_BOARD) += tpl.o
Simon Glasse1bc64e2017-04-15 13:11:31 -060014
Philipp Tomsich832567d2017-07-04 14:38:28 +020015obj-spl-$(CONFIG_ROCKCHIP_RK3036) += rk3036-board-spl.o
Philipp Tomsich832567d2017-07-04 14:38:28 +020016
17ifeq ($(CONFIG_SPL_BUILD)$(CONFIG_TPL_BUILD),)
Andy Yane3067792017-10-11 15:00:16 +080018
Philipp Tomsichf07d76c2017-11-24 14:44:58 +010019# Always include boot_mode.o, as we bypass it (i.e. turn it off)
20# inside of boot_mode.c when CONFIG_BOOT_MODE_REG is 0. This way,
21# we can have the preprocessor correctly recognise both 0x0 and 0
22# meaning "turn it off".
Andy Yane3067792017-10-11 15:00:16 +080023obj-y += boot_mode.o
Kever Yang54f17fa2019-07-22 20:02:01 +080024obj-$(CONFIG_ROCKCHIP_COMMON_BOARD) += board.o
Kever Yangc9ec5fe2019-09-02 15:59:04 +080025obj-$(CONFIG_MISC_INIT_R) += misc.o
Simon Glass2444dae2015-08-30 16:55:38 -060026endif
Philipp Tomsich832567d2017-07-04 14:38:28 +020027
28obj-$(CONFIG_$(SPL_TPL_)RAM) += sdram_common.o
29
huang linbe1d5e02015-11-17 14:20:27 +080030obj-$(CONFIG_ROCKCHIP_RK3036) += rk3036/
Kever Yangdaeed1d2017-11-28 16:04:16 +080031obj-$(CONFIG_ROCKCHIP_RK3128) += rk3128/
Philipp Tomsich96b90822017-08-03 22:52:04 +020032obj-$(CONFIG_ROCKCHIP_RK3188) += rk3188/
Kever Yang168eef72017-06-23 17:17:52 +080033obj-$(CONFIG_ROCKCHIP_RK322X) += rk322x/
Heiko Stübner041cdb52016-07-16 00:17:15 +020034obj-$(CONFIG_ROCKCHIP_RK3288) += rk3288/
Kever Yang85a3cfb2017-02-23 15:37:51 +080035obj-$(CONFIG_ROCKCHIP_RK3328) += rk3328/
Andreas Färber37a0c602017-05-15 17:51:18 +080036obj-$(CONFIG_ROCKCHIP_RK3368) += rk3368/
Kever Yanga381bcf2016-07-19 21:16:59 +080037obj-$(CONFIG_ROCKCHIP_RK3399) += rk3399/
Andy Yan2c1e11d2017-06-01 18:00:55 +080038obj-$(CONFIG_ROCKCHIP_RV1108) += rv1108/
Philipp Tomsich832567d2017-07-04 14:38:28 +020039
40# Clear out SPL objects, in case this is a TPL build
41obj-spl-$(CONFIG_TPL_BUILD) =
42
43# Now add SPL/TPL objects back into the main build
44obj-$(CONFIG_SPL_BUILD) += $(obj-spl-y)
45obj-$(CONFIG_TPL_BUILD) += $(obj-tpl-y)