summaryrefslogtreecommitdiff
path: root/plat/rockchip/rk3399
diff options
context:
space:
mode:
authorHeiko Stuebner <heiko@sntech.de>2019-04-24 20:26:51 +0200
committerHeiko Stuebner <heiko@sntech.de>2019-04-26 23:36:17 +0200
commit4200e5aae7c70c728bc9c2e1d8d45223a3f7c614 (patch)
tree3ef13b12282761893a715aff2e681d524a125097 /plat/rockchip/rk3399
parent5167520610a81d422cfeb0dc27cc746797cd8189 (diff)
rockchip: only include libfdt in non-coreboot cases
While mainline u-boot always expects to submit the devicetree as platform param, coreboot always uses the existing parameter structure. As libfdt is somewhat big, it makes sense to limit its inclusion to where necessary and thus only to non-coreboot builds. libfdt itself will get build in all cases, but only the non- coreboot build will actually reference and thus include it. Signed-off-by: Heiko Stuebner <heiko@sntech.de> Change-Id: I4c5bc28405a14e6070917e48a526bfe77bab2fb7
Diffstat (limited to 'plat/rockchip/rk3399')
-rw-r--r--plat/rockchip/rk3399/platform.mk4
1 files changed, 1 insertions, 3 deletions
diff --git a/plat/rockchip/rk3399/platform.mk b/plat/rockchip/rk3399/platform.mk
index 3dfafc90..c73df6d7 100644
--- a/plat/rockchip/rk3399/platform.mk
+++ b/plat/rockchip/rk3399/platform.mk
@@ -8,8 +8,6 @@ RK_PLAT := plat/rockchip
RK_PLAT_SOC := ${RK_PLAT}/${PLAT}
RK_PLAT_COMMON := ${RK_PLAT}/common
-include lib/libfdt/libfdt.mk
-
PLAT_INCLUDES := -I${RK_PLAT_COMMON}/ \
-I${RK_PLAT_COMMON}/include/ \
-I${RK_PLAT_COMMON}/aarch64/ \
@@ -45,7 +43,6 @@ BL31_SOURCES += ${RK_GIC_SOURCES} \
drivers/gpio/gpio.c \
lib/cpus/aarch64/cortex_a53.S \
lib/cpus/aarch64/cortex_a72.S \
- $(LIBFDT_SRCS) \
${RK_PLAT_COMMON}/aarch64/plat_helpers.S \
${RK_PLAT_COMMON}/bl31_plat_setup.c \
${RK_PLAT_COMMON}/params_setup.c \
@@ -71,6 +68,7 @@ BL31_SOURCES += ${RK_GIC_SOURCES} \
MULTI_CONSOLE_API := 1
include lib/coreboot/coreboot.mk
+include lib/libfdt/libfdt.mk
$(eval $(call add_define,PLAT_EXTRA_LD_SCRIPT))