blob: 1dc92066bbf337bb7779539d7dfbfb7abdc34b0b [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
Kever Yang92c8cc92019-09-02 15:59:04 +08004# Copyright (c) 2019 Rockchip Electronics Co., Ltd.
Simon Glass2cffe662015-08-30 16:55:38 -06005
Philipp Tomsich5e58afe2017-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 Tomsich39bf18d2017-10-10 16:21:14 +020010obj-spl-$(CONFIG_ROCKCHIP_BROM_HELPER) += bootrom.o
Kever Yang1d7cc72a2019-07-22 19:59:12 +080011obj-spl-$(CONFIG_SPL_ROCKCHIP_COMMON_BOARD) += spl.o spl-boot-order.o
Philipp Tomsich39bf18d2017-10-10 16:21:14 +020012obj-tpl-$(CONFIG_ROCKCHIP_BROM_HELPER) += bootrom.o
Kever Yang34ead0f2019-07-09 22:05:55 +080013obj-tpl-$(CONFIG_TPL_ROCKCHIP_COMMON_BOARD) += tpl.o
Heiko Stuebnerfc367852019-07-16 22:18:21 +020014obj-tpl-$(CONFIG_ROCKCHIP_PX30) += px30-board-tpl.o
Philipp Tomsich5e58afe2017-07-04 14:38:28 +020015
Philipp Tomsich5e58afe2017-07-04 14:38:28 +020016obj-spl-$(CONFIG_ROCKCHIP_RK3036) += rk3036-board-spl.o
Simon Glassef0ab852017-04-15 13:11:31 -060017
Philipp Tomsich5e58afe2017-07-04 14:38:28 +020018ifeq ($(CONFIG_SPL_BUILD)$(CONFIG_TPL_BUILD),)
Andy Yan70378cb2017-10-11 15:00:16 +080019
Philipp Tomsich3a0df082017-11-24 14:44:58 +010020# Always include boot_mode.o, as we bypass it (i.e. turn it off)
Simon Glass0d56aa12023-02-01 13:19:23 -070021# inside of boot_mode.c when CONFIG_ROCKCHIP_BOOT_MODE_REG is 0. This way,
Philipp Tomsich3a0df082017-11-24 14:44:58 +010022# we can have the preprocessor correctly recognise both 0x0 and 0
23# meaning "turn it off".
Andy Yan70378cb2017-10-11 15:00:16 +080024obj-y += boot_mode.o
Kever Yangbb337732019-07-22 20:02:01 +080025obj-$(CONFIG_ROCKCHIP_COMMON_BOARD) += board.o
Kever Yang92c8cc92019-09-02 15:59:04 +080026obj-$(CONFIG_MISC_INIT_R) += misc.o
Simon Glass2cffe662015-08-30 16:55:38 -060027endif
Philipp Tomsich5e58afe2017-07-04 14:38:28 +020028
Jagan Teki5bbc86b2020-07-21 20:36:03 +053029ifeq ($(CONFIG_TPL_BUILD),)
30obj-$(CONFIG_DISPLAY_CPUINFO) += cpu-info.o
31endif
32
Kever Yange47db832019-11-15 11:04:33 +080033obj-$(CONFIG_$(SPL_TPL_)RAM) += sdram.o
Philipp Tomsich5e58afe2017-07-04 14:38:28 +020034
Heiko Stuebnerfc367852019-07-16 22:18:21 +020035obj-$(CONFIG_ROCKCHIP_PX30) += px30/
Philipp Tomsich5e58afe2017-07-04 14:38:28 +020036obj-$(CONFIG_ROCKCHIP_RK3036) += rk3036/
Johan Jonkera289fc72022-04-16 17:09:47 +020037obj-$(CONFIG_ROCKCHIP_RK3066) += rk3066/
Kever Yangaa827752017-11-28 16:04:16 +080038obj-$(CONFIG_ROCKCHIP_RK3128) += rk3128/
Philipp Tomsichfefc4ec2017-08-03 22:52:04 +020039obj-$(CONFIG_ROCKCHIP_RK3188) += rk3188/
Kever Yang57d4dbf2017-06-23 17:17:52 +080040obj-$(CONFIG_ROCKCHIP_RK322X) += rk322x/
Heiko Stübner5c91e2b2016-07-16 00:17:15 +020041obj-$(CONFIG_ROCKCHIP_RK3288) += rk3288/
Andy Yanb5e16302019-11-14 11:21:12 +080042obj-$(CONFIG_ROCKCHIP_RK3308) += rk3308/
Kever Yangec02b3c2017-02-23 15:37:51 +080043obj-$(CONFIG_ROCKCHIP_RK3328) += rk3328/
Andreas Färber9e3ad682017-05-15 17:51:18 +080044obj-$(CONFIG_ROCKCHIP_RK3368) += rk3368/
Kever Yang0d3d7832016-07-19 21:16:59 +080045obj-$(CONFIG_ROCKCHIP_RK3399) += rk3399/
Joseph Chen72cd8792021-06-02 15:58:25 +080046obj-$(CONFIG_ROCKCHIP_RK3568) += rk3568/
Jagan Teki8967dea2023-01-30 20:27:45 +053047obj-$(CONFIG_ROCKCHIP_RK3588) += rk3588/
Andy Yan2d982da2017-06-01 18:00:55 +080048obj-$(CONFIG_ROCKCHIP_RV1108) += rv1108/
Jagan Teki249a2382022-12-14 23:21:05 +053049obj-$(CONFIG_ROCKCHIP_RV1126) += rv1126/
Philipp Tomsich5e58afe2017-07-04 14:38:28 +020050
51# Clear out SPL objects, in case this is a TPL build
52obj-spl-$(CONFIG_TPL_BUILD) =
53
54# Now add SPL/TPL objects back into the main build
55obj-$(CONFIG_SPL_BUILD) += $(obj-spl-y)
56obj-$(CONFIG_TPL_BUILD) += $(obj-tpl-y)