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

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

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

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

24
ifeq ($(CONFIG_SPL_BUILD)$(CONFIG_TPL_BUILD),)
25

26
27
28
29
# 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".
30
31
obj-y += boot_mode.o

32
obj-$(CONFIG_ROCKCHIP_RK3188) += rk3188-board.o
33
obj-$(CONFIG_ROCKCHIP_RK3128) += rk3128-board.o
34
obj-$(CONFIG_ROCKCHIP_RK322X) += rk322x-board.o
35
obj-$(CONFIG_ROCKCHIP_RK3288) += rk3288-board.o
36
obj-$(CONFIG_ROCKCHIP_RK3036) += rk3036-board.o
37
obj-$(CONFIG_ROCKCHIP_RK3399) += rk3399-board.o
38
endif
39
40
41

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

42
ifndef CONFIG_ARM64
43
ifndef CONFIG_ROCKCHIP_RK3188
huang lin's avatar
huang lin committed
44
obj-y += rk_timer.o
45
endif
46
endif
47

48
obj-$(CONFIG_ROCKCHIP_RK3036) += rk3036/
49
obj-$(CONFIG_ROCKCHIP_RK3128) += rk3128/
50
51
52
ifndef CONFIG_TPL_BUILD
obj-$(CONFIG_ROCKCHIP_RK3188) += rk3188/
endif
53
obj-$(CONFIG_ROCKCHIP_RK322X) += rk322x/
54
obj-$(CONFIG_ROCKCHIP_RK3288) += rk3288/
55
obj-$(CONFIG_ROCKCHIP_RK3328) += rk3328/
56
obj-$(CONFIG_ROCKCHIP_RK3368) += rk3368/
57
obj-$(CONFIG_ROCKCHIP_RK3399) += rk3399/
58
obj-$(CONFIG_ROCKCHIP_RV1108) += rv1108/
59
60
61
62
63
64
65

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