rockchip: rv1108: Migrate to use common board file
[oweals/u-boot.git] / arch / arm / mach-rockchip / Makefile
1 # SPDX-License-Identifier: GPL-2.0+
2 #
3 # Copyright (c) 2014 Google, Inc
4
5 # We don't want the bootrom-helper present in a full U-Boot build, as
6 # this may have entered from ATF with the stack-pointer pointing to
7 # inaccessible/protected memory (and the bootrom-helper assumes that
8 # the stack-pointer is valid before switching to the U-Boot stack).
9 obj-spl-$(CONFIG_ROCKCHIP_BROM_HELPER) += bootrom.o
10 obj-spl-$(CONFIG_SPL_ROCKCHIP_COMMON_BOARD) += spl.o spl-boot-order.o
11 obj-tpl-$(CONFIG_ROCKCHIP_BROM_HELPER) += bootrom.o
12 obj-tpl-$(CONFIG_TPL_ROCKCHIP_COMMON_BOARD) += tpl.o
13
14 obj-spl-$(CONFIG_ROCKCHIP_RK3036) += rk3036-board-spl.o
15
16 ifeq ($(CONFIG_SPL_BUILD)$(CONFIG_TPL_BUILD),)
17
18 # Always include boot_mode.o, as we bypass it (i.e. turn it off)
19 # inside of boot_mode.c when CONFIG_BOOT_MODE_REG is 0.  This way,
20 # we can have the preprocessor correctly recognise both 0x0 and 0
21 # meaning "turn it off".
22 obj-y += boot_mode.o
23 obj-$(CONFIG_ROCKCHIP_COMMON_BOARD) += board.o
24 endif
25
26 obj-$(CONFIG_$(SPL_TPL_)RAM) += sdram_common.o
27
28 obj-$(CONFIG_ROCKCHIP_RK3036) += rk3036/
29 obj-$(CONFIG_ROCKCHIP_RK3128) += rk3128/
30 ifndef CONFIG_TPL_BUILD
31 obj-$(CONFIG_ROCKCHIP_RK3188) += rk3188/
32 endif
33 obj-$(CONFIG_ROCKCHIP_RK322X) += rk322x/
34 obj-$(CONFIG_ROCKCHIP_RK3288) += rk3288/
35 obj-$(CONFIG_ROCKCHIP_RK3328) += rk3328/
36 obj-$(CONFIG_ROCKCHIP_RK3368) += rk3368/
37 obj-$(CONFIG_ROCKCHIP_RK3399) += rk3399/
38 obj-$(CONFIG_ROCKCHIP_RV1108) += rv1108/
39
40 # Clear out SPL objects, in case this is a TPL build
41 obj-spl-$(CONFIG_TPL_BUILD) =
42
43 # Now add SPL/TPL objects back into the main build
44 obj-$(CONFIG_SPL_BUILD) += $(obj-spl-y)
45 obj-$(CONFIG_TPL_BUILD) += $(obj-tpl-y)