2018-05-07 06:58:06 +09:00
|
|
|
# SPDX-License-Identifier: GPL-2.0+
|
2015-08-31 07:55:38 +09:00
|
|
|
#
|
|
|
|
# Copyright (c) 2014 Google, Inc
|
|
|
|
|
2017-07-04 21:38:28 +09:00
|
|
|
# We don't want the bootrom-helper present in a full U-Boot build, as
|
|
|
|
# this may have entered from ATF with the stack-pointer pointing to
|
|
|
|
# inaccessible/protected memory (and the bootrom-helper assumes that
|
|
|
|
# the stack-pointer is valid before switching to the U-Boot stack).
|
2017-10-10 23:21:14 +09:00
|
|
|
obj-spl-$(CONFIG_ROCKCHIP_BROM_HELPER) += bootrom.o
|
2019-07-22 20:59:12 +09:00
|
|
|
obj-spl-$(CONFIG_SPL_ROCKCHIP_COMMON_BOARD) += spl.o spl-boot-order.o
|
2017-10-10 23:21:14 +09:00
|
|
|
obj-tpl-$(CONFIG_ROCKCHIP_BROM_HELPER) += bootrom.o
|
2019-07-09 23:05:55 +09:00
|
|
|
obj-tpl-$(CONFIG_TPL_ROCKCHIP_COMMON_BOARD) += tpl.o
|
2017-07-04 21:38:28 +09:00
|
|
|
|
|
|
|
obj-spl-$(CONFIG_ROCKCHIP_RK3036) += rk3036-board-spl.o
|
2017-04-16 04:11:31 +09:00
|
|
|
|
2017-07-04 21:38:28 +09:00
|
|
|
ifeq ($(CONFIG_SPL_BUILD)$(CONFIG_TPL_BUILD),)
|
2017-10-11 16:00:16 +09:00
|
|
|
|
2017-11-24 22:44:58 +09:00
|
|
|
# Always include boot_mode.o, as we bypass it (i.e. turn it off)
|
|
|
|
# inside of boot_mode.c when CONFIG_BOOT_MODE_REG is 0. This way,
|
|
|
|
# we can have the preprocessor correctly recognise both 0x0 and 0
|
|
|
|
# meaning "turn it off".
|
2017-10-11 16:00:16 +09:00
|
|
|
obj-y += boot_mode.o
|
2019-07-22 21:02:01 +09:00
|
|
|
obj-$(CONFIG_ROCKCHIP_COMMON_BOARD) += board.o
|
2017-10-11 16:00:16 +09:00
|
|
|
|
|
|
|
obj-$(CONFIG_ROCKCHIP_RK3399) += rk3399-board.o
|
2018-11-30 22:34:15 +09:00
|
|
|
obj-$(CONFIG_ROCKCHIP_RV1108) += rv1108-board.o
|
2015-08-31 07:55:38 +09:00
|
|
|
endif
|
2017-07-04 21:38:28 +09:00
|
|
|
|
|
|
|
obj-$(CONFIG_$(SPL_TPL_)RAM) += sdram_common.o
|
|
|
|
|
|
|
|
obj-$(CONFIG_ROCKCHIP_RK3036) += rk3036/
|
2017-11-28 17:04:16 +09:00
|
|
|
obj-$(CONFIG_ROCKCHIP_RK3128) += rk3128/
|
2017-08-04 05:52:04 +09:00
|
|
|
ifndef CONFIG_TPL_BUILD
|
|
|
|
obj-$(CONFIG_ROCKCHIP_RK3188) += rk3188/
|
|
|
|
endif
|
2017-06-23 18:17:52 +09:00
|
|
|
obj-$(CONFIG_ROCKCHIP_RK322X) += rk322x/
|
2016-07-16 07:17:15 +09:00
|
|
|
obj-$(CONFIG_ROCKCHIP_RK3288) += rk3288/
|
2017-02-23 16:37:51 +09:00
|
|
|
obj-$(CONFIG_ROCKCHIP_RK3328) += rk3328/
|
2017-05-15 18:51:18 +09:00
|
|
|
obj-$(CONFIG_ROCKCHIP_RK3368) += rk3368/
|
2016-07-19 22:16:59 +09:00
|
|
|
obj-$(CONFIG_ROCKCHIP_RK3399) += rk3399/
|
2017-06-01 19:00:55 +09:00
|
|
|
obj-$(CONFIG_ROCKCHIP_RV1108) += rv1108/
|
2017-07-04 21:38:28 +09:00
|
|
|
|
|
|
|
# Clear out SPL objects, in case this is a TPL build
|
|
|
|
obj-spl-$(CONFIG_TPL_BUILD) =
|
|
|
|
|
|
|
|
# Now add SPL/TPL objects back into the main build
|
|
|
|
obj-$(CONFIG_SPL_BUILD) += $(obj-spl-y)
|
|
|
|
obj-$(CONFIG_TPL_BUILD) += $(obj-tpl-y)
|