12444dae5SSimon Glass# SPDX-License-Identifier: GPL-2.0+ 22444dae5SSimon Glass# 383d290c5STom Rini# Copyright (c) 2014 Google, Inc 42444dae5SSimon Glass 5832567d5SPhilipp Tomsich# We don't want the bootrom-helper present in a full U-Boot build, as 6832567d5SPhilipp Tomsich# this may have entered from ATF with the stack-pointer pointing to 7832567d5SPhilipp Tomsich# inaccessible/protected memory (and the bootrom-helper assumes that 8832567d5SPhilipp Tomsich# the stack-pointer is valid before switching to the U-Boot stack). 9ecfd7189SPhilipp Tomsichobj-spl-$(CONFIG_ROCKCHIP_BROM_HELPER) += bootrom.o 10ecfd7189SPhilipp Tomsichobj-tpl-$(CONFIG_ROCKCHIP_BROM_HELPER) += bootrom.o 11e1bc64eeSSimon Glass 12532cb7f5SJagan Tekiobj-tpl-$(CONFIG_ROCKCHIP_RK3288) += rk3288-board-tpl.o 13a55e4971SPhilipp Tomsichobj-tpl-$(CONFIG_ROCKCHIP_RK3368) += rk3368-board-tpl.o 14832567d5SPhilipp Tomsich 15832567d5SPhilipp Tomsichobj-spl-$(CONFIG_ROCKCHIP_RK3036) += rk3036-board-spl.o 16832567d5SPhilipp Tomsichobj-spl-$(CONFIG_ROCKCHIP_RK3188) += rk3188-board-spl.o 17832567d5SPhilipp Tomsichobj-spl-$(CONFIG_ROCKCHIP_RK322X) += rk322x-board-spl.o 18832567d5SPhilipp Tomsichobj-spl-$(CONFIG_ROCKCHIP_RK3288) += rk3288-board-spl.o 19fbbd3800SPhilipp Tomsichobj-spl-$(CONFIG_ROCKCHIP_RK3368) += rk3368-board-spl.o spl-boot-order.o 209b0bc593SPhilipp Tomsichobj-spl-$(CONFIG_ROCKCHIP_RK3399) += rk3399-board-spl.o spl-boot-order.o 21832567d5SPhilipp Tomsich 22832567d5SPhilipp Tomsichifeq ($(CONFIG_SPL_BUILD)$(CONFIG_TPL_BUILD),) 23e3067793SAndy Yan 24f07d76c0SPhilipp Tomsich# Always include boot_mode.o, as we bypass it (i.e. turn it off) 25f07d76c0SPhilipp Tomsich# inside of boot_mode.c when CONFIG_BOOT_MODE_REG is 0. This way, 26f07d76c0SPhilipp Tomsich# we can have the preprocessor correctly recognise both 0x0 and 0 27f07d76c0SPhilipp Tomsich# meaning "turn it off". 28e3067793SAndy Yanobj-y += boot_mode.o 29e3067793SAndy Yan 30df9041ecSHeiko Stübnerobj-$(CONFIG_ROCKCHIP_RK3188) += rk3188-board.o 31daeed1dbSKever Yangobj-$(CONFIG_ROCKCHIP_RK3128) += rk3128-board.o 32168eef7aSKever Yangobj-$(CONFIG_ROCKCHIP_RK322X) += rk322x-board.o 33cd77fd1bSJacob Chenobj-$(CONFIG_ROCKCHIP_RK3288) += rk3288-board.o 34f48f2b72SJacob Chenobj-$(CONFIG_ROCKCHIP_RK3036) += rk3036-board.o 35e3067793SAndy Yanobj-$(CONFIG_ROCKCHIP_RK3399) += rk3399-board.o 36*303cbd21SOtavio Salvadorobj-$(CONFIG_ROCKCHIP_RV1108) += rv1108-board.o 372444dae5SSimon Glassendif 38832567d5SPhilipp Tomsich 39832567d5SPhilipp Tomsichobj-$(CONFIG_$(SPL_TPL_)RAM) += sdram_common.o 40832567d5SPhilipp Tomsich 41ad8fe6b9SAndreas Färberifndef CONFIG_ARM64 42fd9e0fe0SKever Yangifndef CONFIG_ROCKCHIP_RK3188 43cc2244b8Shuang linobj-y += rk_timer.o 44ad8fe6b9SAndreas Färberendif 45fd9e0fe0SKever Yangendif 46832567d5SPhilipp Tomsich 47be1d5e03Shuang linobj-$(CONFIG_ROCKCHIP_RK3036) += rk3036/ 48daeed1dbSKever Yangobj-$(CONFIG_ROCKCHIP_RK3128) += rk3128/ 4996b9082cSPhilipp Tomsichifndef CONFIG_TPL_BUILD 5096b9082cSPhilipp Tomsichobj-$(CONFIG_ROCKCHIP_RK3188) += rk3188/ 5196b9082cSPhilipp Tomsichendif 52168eef7aSKever Yangobj-$(CONFIG_ROCKCHIP_RK322X) += rk322x/ 53041cdb5fSHeiko Stübnerobj-$(CONFIG_ROCKCHIP_RK3288) += rk3288/ 5485a3cfb8SKever Yangobj-$(CONFIG_ROCKCHIP_RK3328) += rk3328/ 5537a0c600SAndreas Färberobj-$(CONFIG_ROCKCHIP_RK3368) += rk3368/ 56a381bcf5SKever Yangobj-$(CONFIG_ROCKCHIP_RK3399) += rk3399/ 572c1e11ddSAndy Yanobj-$(CONFIG_ROCKCHIP_RV1108) += rv1108/ 58832567d5SPhilipp Tomsich 59832567d5SPhilipp Tomsich# Clear out SPL objects, in case this is a TPL build 60832567d5SPhilipp Tomsichobj-spl-$(CONFIG_TPL_BUILD) = 61832567d5SPhilipp Tomsich 62832567d5SPhilipp Tomsich# Now add SPL/TPL objects back into the main build 63832567d5SPhilipp Tomsichobj-$(CONFIG_SPL_BUILD) += $(obj-spl-y) 64832567d5SPhilipp Tomsichobj-$(CONFIG_TPL_BUILD) += $(obj-tpl-y) 65