1# 2# Copyright (c) 2014 Google, Inc 3# 4# SPDX-License-Identifier: GPL-2.0+ 5# 6 7# We don't want the bootrom-helper present in a full U-Boot build, as 8# this may have entered from ATF with the stack-pointer pointing to 9# inaccessible/protected memory (and the bootrom-helper assumes that 10# the stack-pointer is valid before switching to the U-Boot stack). 11obj-spl-$(CONFIG_ROCKCHIP_BROM_HELPER) += bootrom.o 12obj-tpl-$(CONFIG_ROCKCHIP_BROM_HELPER) += bootrom.o 13 14obj-tpl-y += tpl.o 15obj-spl-y += spl.o spl-boot-order.o 16 17ifeq ($(CONFIG_SPL_BUILD)$(CONFIG_TPL_BUILD),) 18 19# 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". 23obj-y += boot_mode.o 24obj-y += board.o 25obj-y += chip_info.o 26obj-y += iomem.o 27 28obj-$(CONFIG_ROCKCHIP_CRC) += rockchip_crc.o 29obj-$(CONFIG_ROCKCHIP_SMCCC) += rockchip_smccc.o 30obj-$(CONFIG_ROCKCHIP_VENDOR_PARTITION) += vendor.o 31obj-$(CONFIG_ROCKCHIP_RESOURCE_IMAGE) += resource_img.o 32obj-$(CONFIG_ROCKCHIP_DEBUGGER) += rockchip_debugger.o 33endif 34 35obj-$(CONFIG_$(SPL_TPL_)RAM) += sdram_common.o 36 37obj-$(CONFIG_ROCKCHIP_PX30) += px30/ 38obj-$(CONFIG_ROCKCHIP_RK3036) += rk3036/ 39obj-$(CONFIG_ROCKCHIP_RK3066) += rk3066/ 40obj-$(CONFIG_ROCKCHIP_RK3128) += rk3128/ 41ifndef CONFIG_TPL_BUILD 42obj-$(CONFIG_ROCKCHIP_RK3188) += rk3188/ 43endif 44obj-$(CONFIG_ROCKCHIP_RK322X) += rk322x/ 45obj-$(CONFIG_ROCKCHIP_RK3288) += rk3288/ 46obj-$(CONFIG_ROCKCHIP_RK3308) += rk3308/ 47obj-$(CONFIG_ROCKCHIP_RK3328) += rk3328/ 48obj-$(CONFIG_ROCKCHIP_RK3368) += rk3368/ 49obj-$(CONFIG_ROCKCHIP_RK3399) += rk3399/ 50obj-$(CONFIG_ROCKCHIP_RK1808) += rk1808/ 51obj-$(CONFIG_ROCKCHIP_RV1108) += rv1108/ 52 53# Clear out SPL objects, in case this is a TPL build 54obj-spl-$(CONFIG_TPL_BUILD) = 55 56# Now add SPL/TPL objects back into the main build 57obj-$(CONFIG_SPL_BUILD) += $(obj-spl-y) 58obj-$(CONFIG_TPL_BUILD) += $(obj-tpl-y) 59