12444dae5SSimon Glass# 22444dae5SSimon Glass# Copyright (c) 2014 Google, Inc 32444dae5SSimon Glass# 42444dae5SSimon Glass# SPDX-License-Identifier: GPL-2.0+ 52444dae5SSimon Glass# 62444dae5SSimon Glass 7*832567d5SPhilipp Tomsich# We don't want the bootrom-helper present in a full U-Boot build, as 8*832567d5SPhilipp Tomsich# this may have entered from ATF with the stack-pointer pointing to 9*832567d5SPhilipp Tomsich# inaccessible/protected memory (and the bootrom-helper assumes that 10*832567d5SPhilipp Tomsich# the stack-pointer is valid before switching to the U-Boot stack). 11*832567d5SPhilipp Tomsichobj-spl-$(CONFIG_ROCKCHIP_BROM_HELPER) += bootrom.o save_boot_param.o 12*832567d5SPhilipp Tomsichobj-tpl-$(CONFIG_ROCKCHIP_BROM_HELPER) += bootrom.o save_boot_param.o 13e1bc64eeSSimon Glass 14*832567d5SPhilipp Tomsichobj-tpl-$(CONFIG_ROCKCHIP_RK3188) += rk3188-board-tpl.o 15*832567d5SPhilipp Tomsich 16*832567d5SPhilipp Tomsichobj-spl-$(CONFIG_ROCKCHIP_RK3036) += rk3036-board-spl.o 17*832567d5SPhilipp Tomsichobj-spl-$(CONFIG_ROCKCHIP_RK3188) += rk3188-board-spl.o 18*832567d5SPhilipp Tomsichobj-spl-$(CONFIG_ROCKCHIP_RK322X) += rk322x-board-spl.o 19*832567d5SPhilipp Tomsichobj-spl-$(CONFIG_ROCKCHIP_RK3288) += rk3288-board-spl.o 20*832567d5SPhilipp Tomsichobj-spl-$(CONFIG_ROCKCHIP_RK3368) += rk3368-board-spl.o 21*832567d5SPhilipp Tomsichobj-spl-$(CONFIG_ROCKCHIP_RK3399) += rk3399-board-spl.o 22*832567d5SPhilipp Tomsich 23*832567d5SPhilipp Tomsichifeq ($(CONFIG_SPL_BUILD)$(CONFIG_TPL_BUILD),) 24df9041ecSHeiko Stübnerobj-$(CONFIG_ROCKCHIP_RK3188) += rk3188-board.o 25168eef7aSKever Yangobj-$(CONFIG_ROCKCHIP_RK322X) += rk322x-board.o 26cd77fd1bSJacob Chenobj-$(CONFIG_ROCKCHIP_RK3288) += rk3288-board.o 27f48f2b72SJacob Chenobj-$(CONFIG_ROCKCHIP_RK3036) += rk3036-board.o 282444dae5SSimon Glassendif 29*832567d5SPhilipp Tomsich 30*832567d5SPhilipp Tomsichobj-$(CONFIG_$(SPL_TPL_)RAM) += sdram_common.o 31*832567d5SPhilipp Tomsich 32ad8fe6b9SAndreas Färberifndef CONFIG_ARM64 33cc2244b8Shuang linobj-y += rk_timer.o 34ad8fe6b9SAndreas Färberendif 35*832567d5SPhilipp Tomsich 36be1d5e03Shuang linobj-$(CONFIG_ROCKCHIP_RK3036) += rk3036/ 37*832567d5SPhilipp Tomsichobj-tpl-$(CONFIG_ROCKCHIP_RK3188) += rk3188/ 38168eef7aSKever Yangobj-$(CONFIG_ROCKCHIP_RK322X) += rk322x/ 39041cdb5fSHeiko Stübnerobj-$(CONFIG_ROCKCHIP_RK3288) += rk3288/ 4085a3cfb8SKever Yangobj-$(CONFIG_ROCKCHIP_RK3328) += rk3328/ 4137a0c600SAndreas Färberobj-$(CONFIG_ROCKCHIP_RK3368) += rk3368/ 42a381bcf5SKever Yangobj-$(CONFIG_ROCKCHIP_RK3399) += rk3399/ 432c1e11ddSAndy Yanobj-$(CONFIG_ROCKCHIP_RV1108) += rv1108/ 44*832567d5SPhilipp Tomsich 45*832567d5SPhilipp Tomsich# Clear out SPL objects, in case this is a TPL build 46*832567d5SPhilipp Tomsichobj-spl-$(CONFIG_TPL_BUILD) = 47*832567d5SPhilipp Tomsich 48*832567d5SPhilipp Tomsich# Now add SPL/TPL objects back into the main build 49*832567d5SPhilipp Tomsichobj-$(CONFIG_SPL_BUILD) += $(obj-spl-y) 50*832567d5SPhilipp Tomsichobj-$(CONFIG_TPL_BUILD) += $(obj-tpl-y) 51