blob: 846c82d70a9d6017bb59e349a838aa4a6e75d173 [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
Simon Glass2444dae2015-08-30 16:55:38 -06004
Philipp Tomsich832567d2017-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 Tomsichecfd7182017-10-10 16:21:14 +02009obj-spl-$(CONFIG_ROCKCHIP_BROM_HELPER) += bootrom.o
10obj-tpl-$(CONFIG_ROCKCHIP_BROM_HELPER) += bootrom.o
Simon Glasse1bc64e2017-04-15 13:11:31 -060011
Jagan Teki532cb7f2017-09-27 23:03:12 +053012obj-tpl-$(CONFIG_ROCKCHIP_RK3288) += rk3288-board-tpl.o
Philipp Tomsicha55e4972017-07-04 14:40:01 +020013obj-tpl-$(CONFIG_ROCKCHIP_RK3368) += rk3368-board-tpl.o
Kever Yangc34643e2019-04-02 20:41:24 +080014obj-tpl-$(CONFIG_ROCKCHIP_RK322X) += rk322x-board-tpl.o
Kever Yang6bbf5e12018-11-09 11:18:15 +080015obj-tpl-$(CONFIG_ROCKCHIP_RK3399) += rk3399-board-tpl.o
Philipp Tomsich832567d2017-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 Yangc34643e2019-04-02 20:41:24 +080019obj-spl-$(CONFIG_ROCKCHIP_RK322X) += rk322x-board-spl.o spl-boot-order.o
Philipp Tomsich832567d2017-07-04 14:38:28 +020020obj-spl-$(CONFIG_ROCKCHIP_RK3288) += rk3288-board-spl.o
Philipp Tomsichfbbd3802017-06-12 10:33:20 +020021obj-spl-$(CONFIG_ROCKCHIP_RK3368) += rk3368-board-spl.o spl-boot-order.o
Philipp Tomsich9b0bc592017-07-19 22:04:32 +020022obj-spl-$(CONFIG_ROCKCHIP_RK3399) += rk3399-board-spl.o spl-boot-order.o
Philipp Tomsich832567d2017-07-04 14:38:28 +020023
24ifeq ($(CONFIG_SPL_BUILD)$(CONFIG_TPL_BUILD),)
Andy Yane3067792017-10-11 15:00:16 +080025
Philipp Tomsichf07d76c2017-11-24 14:44:58 +010026# Always include boot_mode.o, as we bypass it (i.e. turn it off)
27# inside of boot_mode.c when CONFIG_BOOT_MODE_REG is 0. This way,
28# we can have the preprocessor correctly recognise both 0x0 and 0
29# meaning "turn it off".
Andy Yane3067792017-10-11 15:00:16 +080030obj-y += boot_mode.o
Andy Yane3067792017-10-11 15:00:16 +080031
Heiko Stübnerdf9041e2017-02-18 19:46:38 +010032obj-$(CONFIG_ROCKCHIP_RK3188) += rk3188-board.o
Kever Yangdaeed1d2017-11-28 16:04:16 +080033obj-$(CONFIG_ROCKCHIP_RK3128) += rk3128-board.o
Kever Yang168eef72017-06-23 17:17:52 +080034obj-$(CONFIG_ROCKCHIP_RK322X) += rk322x-board.o
Jacob Chencd77fd12016-09-19 18:46:26 +080035obj-$(CONFIG_ROCKCHIP_RK3288) += rk3288-board.o
Jacob Chenf48f2b72016-09-19 18:46:27 +080036obj-$(CONFIG_ROCKCHIP_RK3036) += rk3036-board.o
Andy Yane3067792017-10-11 15:00:16 +080037obj-$(CONFIG_ROCKCHIP_RK3399) += rk3399-board.o
Otavio Salvador303cbd22018-11-30 11:34:15 -020038obj-$(CONFIG_ROCKCHIP_RV1108) += rv1108-board.o
Simon Glass2444dae2015-08-30 16:55:38 -060039endif
Philipp Tomsich832567d2017-07-04 14:38:28 +020040
41obj-$(CONFIG_$(SPL_TPL_)RAM) += sdram_common.o
42
Andreas Färberad8fe6b2016-07-14 06:22:09 +020043ifndef CONFIG_ARM64
Kever Yangfd9e0fe2018-04-18 11:13:46 +080044ifndef CONFIG_ROCKCHIP_RK3188
huang lincc2244b2015-11-17 14:20:09 +080045obj-y += rk_timer.o
Andreas Färberad8fe6b2016-07-14 06:22:09 +020046endif
Kever Yangfd9e0fe2018-04-18 11:13:46 +080047endif
Philipp Tomsich832567d2017-07-04 14:38:28 +020048
huang linbe1d5e02015-11-17 14:20:27 +080049obj-$(CONFIG_ROCKCHIP_RK3036) += rk3036/
Kever Yangdaeed1d2017-11-28 16:04:16 +080050obj-$(CONFIG_ROCKCHIP_RK3128) += rk3128/
Philipp Tomsich96b90822017-08-03 22:52:04 +020051ifndef CONFIG_TPL_BUILD
52obj-$(CONFIG_ROCKCHIP_RK3188) += rk3188/
53endif
Kever Yang168eef72017-06-23 17:17:52 +080054obj-$(CONFIG_ROCKCHIP_RK322X) += rk322x/
Heiko Stübner041cdb52016-07-16 00:17:15 +020055obj-$(CONFIG_ROCKCHIP_RK3288) += rk3288/
Kever Yang85a3cfb2017-02-23 15:37:51 +080056obj-$(CONFIG_ROCKCHIP_RK3328) += rk3328/
Andreas Färber37a0c602017-05-15 17:51:18 +080057obj-$(CONFIG_ROCKCHIP_RK3368) += rk3368/
Kever Yanga381bcf2016-07-19 21:16:59 +080058obj-$(CONFIG_ROCKCHIP_RK3399) += rk3399/
Andy Yan2c1e11d2017-06-01 18:00:55 +080059obj-$(CONFIG_ROCKCHIP_RV1108) += rv1108/
Philipp Tomsich832567d2017-07-04 14:38:28 +020060
61# Clear out SPL objects, in case this is a TPL build
62obj-spl-$(CONFIG_TPL_BUILD) =
63
64# Now add SPL/TPL objects back into the main build
65obj-$(CONFIG_SPL_BUILD) += $(obj-spl-y)
66obj-$(CONFIG_TPL_BUILD) += $(obj-tpl-y)