Makefile 1.9 KB
Newer Older
1
2
3
4
5
6
#
# Copyright (c) 2014 Google, Inc
#
# SPDX-License-Identifier:	GPL-2.0+
#

7
8
9
10
11
12
13
14
# 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 save_boot_param.o
obj-tpl-$(CONFIG_ROCKCHIP_BROM_HELPER) += bootrom.o save_boot_param.o

obj-tpl-$(CONFIG_ROCKCHIP_RK3188) += rk3188-board-tpl.o
Jagan Teki's avatar
Jagan Teki committed
15
obj-tpl-$(CONFIG_ROCKCHIP_RK3288) += rk3288-board-tpl.o
16
obj-tpl-$(CONFIG_ROCKCHIP_RK3368) += rk3368-board-tpl.o
17
18
19
20
21

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
obj-spl-$(CONFIG_ROCKCHIP_RK3288) += rk3288-board-spl.o
22
obj-spl-$(CONFIG_ROCKCHIP_RK3368) += rk3368-board-spl.o spl-boot-order.o
23
obj-spl-$(CONFIG_ROCKCHIP_RK3399) += rk3399-board-spl.o spl-boot-order.o
24

25
ifeq ($(CONFIG_SPL_BUILD)$(CONFIG_TPL_BUILD),)
26
obj-$(CONFIG_ROCKCHIP_RK3188) += rk3188-board.o
27
obj-$(CONFIG_ROCKCHIP_RK322X) += rk322x-board.o
28
obj-$(CONFIG_ROCKCHIP_RK3288) += rk3288-board.o
29
obj-$(CONFIG_ROCKCHIP_RK3036) += rk3036-board.o
30
endif
31
32
33

obj-$(CONFIG_$(SPL_TPL_)RAM) += sdram_common.o

34
ifndef CONFIG_ARM64
huang lin's avatar
huang lin committed
35
obj-y += rk_timer.o
36
endif
37

38
obj-$(CONFIG_ROCKCHIP_RK3036) += rk3036/
39
40
41
ifndef CONFIG_TPL_BUILD
obj-$(CONFIG_ROCKCHIP_RK3188) += rk3188/
endif
42
obj-$(CONFIG_ROCKCHIP_RK322X) += rk322x/
43
obj-$(CONFIG_ROCKCHIP_RK3288) += rk3288/
44
obj-$(CONFIG_ROCKCHIP_RK3328) += rk3328/
45
obj-$(CONFIG_ROCKCHIP_RK3368) += rk3368/
46
obj-$(CONFIG_ROCKCHIP_RK3399) += rk3399/
47
obj-$(CONFIG_ROCKCHIP_RV1108) += rv1108/
48
49
50
51
52
53
54

# 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)