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
|
|
|
|
|
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
|
|
|
|
obj-tpl-$(CONFIG_ROCKCHIP_BROM_HELPER) += bootrom.o
|
2017-07-04 12:38:28 +00:00
|
|
|
|
2017-09-27 17:33:12 +00:00
|
|
|
obj-tpl-$(CONFIG_ROCKCHIP_RK3288) += rk3288-board-tpl.o
|
2017-07-04 12:40:01 +00:00
|
|
|
obj-tpl-$(CONFIG_ROCKCHIP_RK3368) += rk3368-board-tpl.o
|
2019-04-02 12:41:24 +00:00
|
|
|
obj-tpl-$(CONFIG_ROCKCHIP_RK322X) += rk322x-board-tpl.o
|
2018-11-09 03:18:15 +00:00
|
|
|
obj-tpl-$(CONFIG_ROCKCHIP_RK3399) += rk3399-board-tpl.o
|
2017-07-04 12:38:28 +00:00
|
|
|
|
|
|
|
obj-spl-$(CONFIG_ROCKCHIP_RK3036) += rk3036-board-spl.o
|
|
|
|
obj-spl-$(CONFIG_ROCKCHIP_RK3188) += rk3188-board-spl.o
|
2019-04-02 12:41:24 +00:00
|
|
|
obj-spl-$(CONFIG_ROCKCHIP_RK322X) += rk322x-board-spl.o spl-boot-order.o
|
2019-07-09 13:58:54 +00:00
|
|
|
obj-spl-$(CONFIG_ROCKCHIP_RK3288) += rk3288-board-spl.o spl-boot-order.o
|
2019-06-08 21:27:13 +00:00
|
|
|
obj-spl-$(CONFIG_ROCKCHIP_RK3328) += rk3328-board-spl.o
|
2017-06-12 08:33:20 +00:00
|
|
|
obj-spl-$(CONFIG_ROCKCHIP_RK3368) += rk3368-board-spl.o spl-boot-order.o
|
2017-07-19 20:04:32 +00:00
|
|
|
obj-spl-$(CONFIG_ROCKCHIP_RK3399) += rk3399-board-spl.o spl-boot-order.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
|
|
|
|
|
2017-02-18 18:46:38 +00:00
|
|
|
obj-$(CONFIG_ROCKCHIP_RK3188) += rk3188-board.o
|
2017-11-28 08:04:16 +00:00
|
|
|
obj-$(CONFIG_ROCKCHIP_RK3128) += rk3128-board.o
|
2017-06-23 09:17:52 +00:00
|
|
|
obj-$(CONFIG_ROCKCHIP_RK322X) += rk322x-board.o
|
2016-09-19 10:46:26 +00:00
|
|
|
obj-$(CONFIG_ROCKCHIP_RK3288) += rk3288-board.o
|
2016-09-19 10:46:27 +00:00
|
|
|
obj-$(CONFIG_ROCKCHIP_RK3036) += rk3036-board.o
|
2017-10-11 07:00:16 +00:00
|
|
|
obj-$(CONFIG_ROCKCHIP_RK3399) += rk3399-board.o
|
2018-11-30 13:34:15 +00:00
|
|
|
obj-$(CONFIG_ROCKCHIP_RV1108) += rv1108-board.o
|
2015-08-30 22:55:38 +00:00
|
|
|
endif
|
2017-07-04 12:38:28 +00:00
|
|
|
|
|
|
|
obj-$(CONFIG_$(SPL_TPL_)RAM) += sdram_common.o
|
|
|
|
|
|
|
|
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
|
|
|
ifndef CONFIG_TPL_BUILD
|
|
|
|
obj-$(CONFIG_ROCKCHIP_RK3188) += rk3188/
|
|
|
|
endif
|
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)
|