2018-05-06 21:58:06 +00:00
|
|
|
# SPDX-License-Identifier: GPL-2.0+
|
2015-08-30 22:55:38 +00:00
|
|
|
#
|
|
|
|
# Copyright (c) 2014 Google, Inc
|
2019-09-02 07:59:04 +00:00
|
|
|
# Copyright (c) 2019 Rockchip Electronics Co., Ltd.
|
2015-08-30 22:55:38 +00:00
|
|
|
|
2017-07-04 12:38:28 +00: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 14:21:14 +00:00
|
|
|
obj-spl-$(CONFIG_ROCKCHIP_BROM_HELPER) += bootrom.o
|
2019-07-22 11:59:12 +00:00
|
|
|
obj-spl-$(CONFIG_SPL_ROCKCHIP_COMMON_BOARD) += spl.o spl-boot-order.o
|
2017-10-10 14:21:14 +00:00
|
|
|
obj-tpl-$(CONFIG_ROCKCHIP_BROM_HELPER) += bootrom.o
|
2019-07-09 14:05:55 +00:00
|
|
|
obj-tpl-$(CONFIG_TPL_ROCKCHIP_COMMON_BOARD) += tpl.o
|
2019-07-16 20:18:21 +00:00
|
|
|
obj-tpl-$(CONFIG_ROCKCHIP_PX30) += px30-board-tpl.o
|
2017-07-04 12:38:28 +00:00
|
|
|
|
|
|
|
obj-spl-$(CONFIG_ROCKCHIP_RK3036) += rk3036-board-spl.o
|
2017-04-15 19:11:31 +00:00
|
|
|
|
2017-07-04 12:38:28 +00:00
|
|
|
ifeq ($(CONFIG_SPL_BUILD)$(CONFIG_TPL_BUILD),)
|
2017-10-11 07:00:16 +00:00
|
|
|
|
2017-11-24 13:44:58 +00: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 07:00:16 +00:00
|
|
|
obj-y += boot_mode.o
|
2019-07-22 12:02:01 +00:00
|
|
|
obj-$(CONFIG_ROCKCHIP_COMMON_BOARD) += board.o
|
2019-09-02 07:59:04 +00:00
|
|
|
obj-$(CONFIG_MISC_INIT_R) += misc.o
|
2015-08-30 22:55:38 +00:00
|
|
|
endif
|
2017-07-04 12:38:28 +00:00
|
|
|
|
2019-11-15 03:04:33 +00:00
|
|
|
obj-$(CONFIG_$(SPL_TPL_)RAM) += sdram.o
|
2017-07-04 12:38:28 +00:00
|
|
|
|
2019-07-16 20:18:21 +00:00
|
|
|
obj-$(CONFIG_ROCKCHIP_PX30) += px30/
|
2017-07-04 12:38:28 +00:00
|
|
|
obj-$(CONFIG_ROCKCHIP_RK3036) += rk3036/
|
2017-11-28 08:04:16 +00:00
|
|
|
obj-$(CONFIG_ROCKCHIP_RK3128) += rk3128/
|
2017-08-03 20:52:04 +00:00
|
|
|
obj-$(CONFIG_ROCKCHIP_RK3188) += rk3188/
|
2017-06-23 09:17:52 +00:00
|
|
|
obj-$(CONFIG_ROCKCHIP_RK322X) += rk322x/
|
2016-07-15 22:17:15 +00:00
|
|
|
obj-$(CONFIG_ROCKCHIP_RK3288) += rk3288/
|
2017-02-23 07:37:51 +00:00
|
|
|
obj-$(CONFIG_ROCKCHIP_RK3328) += rk3328/
|
2017-05-15 09:51:18 +00:00
|
|
|
obj-$(CONFIG_ROCKCHIP_RK3368) += rk3368/
|
2016-07-19 13:16:59 +00:00
|
|
|
obj-$(CONFIG_ROCKCHIP_RK3399) += rk3399/
|
2017-06-01 10:00:55 +00:00
|
|
|
obj-$(CONFIG_ROCKCHIP_RV1108) += rv1108/
|
2017-07-04 12:38:28 +00: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)
|