system-arm: Fix dtsi dependencies in Makefile
authorKevin Brodsky <kevin.brodsky@arm.com>
Mon, 4 Feb 2019 11:45:52 +0000 (11:45 +0000)
committerCiro Santilli <ciro.santilli@arm.com>
Tue, 12 Feb 2019 14:06:00 +0000 (14:06 +0000)
Making vexpress_gem5_vX.dtsi depend on vexpress_gem5_vX_base.dtsi
does nothing, since vexpress_gem5_vX.dtsi is never built (much in
the same way as there is no point in making a C header depend on
another).

Fix that by making all the .dts depend on both .dtsi's.

Change-Id: I9131e0b1b2e521bb09d14721dec38bf6a2d98583
Reviewed-by: Andreas Sandberg <andreas.sandberg@arm.com>
Reviewed-by: Ciro Santilli <ciro.santilli@arm.com>
Reviewed-by: Ruben Ayrapetyan <ruben.ayrapetyan@arm.com>
Reviewed-on: https://gem5-review.googlesource.com/c/16143
Reviewed-by: Giacomo Travaglini <giacomo.travaglini@arm.com>
Maintainer: Andreas Sandberg <andreas.sandberg@arm.com>

system/arm/dt/Makefile

index 9d2faf0e0c4b75012d66de8e4c739fe6c34cf00c..626ff0891f079a4fbca2c1a214680ade744cbcfc 100644 (file)
@@ -50,6 +50,14 @@ TARGETS=\
        armv8_gem5_v2_8cpu.dtb \
        armv8_gem5_v2_16cpu.dtb
 
+VEXPRESS_GEM5_V1_DTSIS=\
+       platforms/vexpress_gem5_v1.dtsi \
+       platforms/vexpress_gem5_v1_base.dtsi
+
+VEXPRESS_GEM5_V2_DTSIS=\
+       platforms/vexpress_gem5_v2.dtsi \
+       platforms/vexpress_gem5_v2_base.dtsi
+
 GEN_DTS=mkdir -p .gen; \
        $(CPP) -x assembler-with-cpp \
                $(DTC_CPP_FLAGS) \
@@ -59,21 +67,17 @@ GEN_DTS=mkdir -p .gen; \
 
 all: $(TARGETS)
 
-platforms/vexpress_gem5_v1.dtsi: platforms/vexpress_gem5_v1_base.dtsi
-
-platforms/vexpress_gem5_v2.dtsi: platforms/vexpress_gem5_v2_base.dtsi
-
-.gen/armv7_gem5_v1_%cpu.dts: armv7.dts platforms/vexpress_gem5_v1.dtsi
+.gen/armv7_gem5_v1_%cpu.dts: armv7.dts $(VEXPRESS_GEM5_V1_DTSIS)
        $(call GEN_DTS,vexpress_gem5_v1.dtsi,$*)
 
-.gen/armv8_gem5_v1_%cpu.dts: armv8.dts platforms/vexpress_gem5_v1.dtsi
+.gen/armv8_gem5_v1_%cpu.dts: armv8.dts $(VEXPRESS_GEM5_V1_DTSIS)
        $(call GEN_DTS,vexpress_gem5_v1.dtsi,$*)
 
-.gen/armv8_gem5_v2_%cpu.dts: armv8.dts platforms/vexpress_gem5_v2.dtsi
+.gen/armv8_gem5_v2_%cpu.dts: armv8.dts $(VEXPRESS_GEM5_V2_DTSIS)
        $(call GEN_DTS,vexpress_gem5_v2.dtsi,$*)
 
 .gen/armv8_gem5_v1_big_little%.dts: armv8_big_little.dts \
-       platforms/vexpress_gem5_v1.dtsi
+       $(VEXPRESS_GEM5_V1_DTSIS)
        $(call GEN_DTS,vexpress_gem5_v1.dtsi,$*)
 
 %.dtb: .gen/%.dts