mirror of
https://github.com/AsahiLinux/u-boot
synced 2024-11-08 14:14:32 +00:00
661519e5c5
rk3328 SPL is locate at dram, so do not have strict size limit,
suppose to enable storage media controller driver, load ATF and
U-Boot, then boot into ATF.
Signed-off-by: Kever Yang <kever.yang@rock-chips.com>
[cherry picked from 4ebe3968b6
with minor modifications]
Signed-off-by: Matwey V. Kornilov <matwey.kornilov@gmail.com>
Reviewed-by: Kever Yang <kever.yang@rock-chips.com>
67 lines
2.4 KiB
Makefile
67 lines
2.4 KiB
Makefile
# SPDX-License-Identifier: GPL-2.0+
|
|
#
|
|
# Copyright (c) 2014 Google, Inc
|
|
|
|
# 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).
|
|
obj-spl-$(CONFIG_ROCKCHIP_BROM_HELPER) += bootrom.o
|
|
obj-tpl-$(CONFIG_ROCKCHIP_BROM_HELPER) += bootrom.o
|
|
|
|
obj-tpl-$(CONFIG_ROCKCHIP_RK3288) += rk3288-board-tpl.o
|
|
obj-tpl-$(CONFIG_ROCKCHIP_RK3368) += rk3368-board-tpl.o
|
|
obj-tpl-$(CONFIG_ROCKCHIP_RK322X) += rk322x-board-tpl.o
|
|
obj-tpl-$(CONFIG_ROCKCHIP_RK3399) += rk3399-board-tpl.o
|
|
|
|
obj-spl-$(CONFIG_ROCKCHIP_RK3036) += rk3036-board-spl.o
|
|
obj-spl-$(CONFIG_ROCKCHIP_RK3188) += rk3188-board-spl.o
|
|
obj-spl-$(CONFIG_ROCKCHIP_RK322X) += rk322x-board-spl.o spl-boot-order.o
|
|
obj-spl-$(CONFIG_ROCKCHIP_RK3288) += rk3288-board-spl.o
|
|
obj-spl-$(CONFIG_ROCKCHIP_RK3328) += rk3328-board-spl.o
|
|
obj-spl-$(CONFIG_ROCKCHIP_RK3368) += rk3368-board-spl.o spl-boot-order.o
|
|
obj-spl-$(CONFIG_ROCKCHIP_RK3399) += rk3399-board-spl.o spl-boot-order.o
|
|
|
|
ifeq ($(CONFIG_SPL_BUILD)$(CONFIG_TPL_BUILD),)
|
|
|
|
# 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".
|
|
obj-y += boot_mode.o
|
|
|
|
obj-$(CONFIG_ROCKCHIP_RK3188) += rk3188-board.o
|
|
obj-$(CONFIG_ROCKCHIP_RK3128) += rk3128-board.o
|
|
obj-$(CONFIG_ROCKCHIP_RK322X) += rk322x-board.o
|
|
obj-$(CONFIG_ROCKCHIP_RK3288) += rk3288-board.o
|
|
obj-$(CONFIG_ROCKCHIP_RK3036) += rk3036-board.o
|
|
obj-$(CONFIG_ROCKCHIP_RK3399) += rk3399-board.o
|
|
obj-$(CONFIG_ROCKCHIP_RV1108) += rv1108-board.o
|
|
endif
|
|
|
|
obj-$(CONFIG_$(SPL_TPL_)RAM) += sdram_common.o
|
|
|
|
ifndef CONFIG_ARM64
|
|
ifndef CONFIG_ROCKCHIP_RK3188
|
|
obj-y += rk_timer.o
|
|
endif
|
|
endif
|
|
|
|
obj-$(CONFIG_ROCKCHIP_RK3036) += rk3036/
|
|
obj-$(CONFIG_ROCKCHIP_RK3128) += rk3128/
|
|
ifndef CONFIG_TPL_BUILD
|
|
obj-$(CONFIG_ROCKCHIP_RK3188) += rk3188/
|
|
endif
|
|
obj-$(CONFIG_ROCKCHIP_RK322X) += rk322x/
|
|
obj-$(CONFIG_ROCKCHIP_RK3288) += rk3288/
|
|
obj-$(CONFIG_ROCKCHIP_RK3328) += rk3328/
|
|
obj-$(CONFIG_ROCKCHIP_RK3368) += rk3368/
|
|
obj-$(CONFIG_ROCKCHIP_RK3399) += rk3399/
|
|
obj-$(CONFIG_ROCKCHIP_RV1108) += rv1108/
|
|
|
|
# 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)
|