ARM: 7774/1: Fix dtb dependency to use order-only prerequisites
authorDouglas Anderson <[email protected]>
Mon, 24 Jun 2013 21:03:50 +0000 (22:03 +0100)
committerRussell King <[email protected]>
Sat, 29 Jun 2013 10:20:22 +0000 (11:20 +0100)
The %.dtb dependency is specified to depend on the PHONY "scripts".
That means that it'll build every time even if the underlying dtb file
hasn't been touched.  Use an order-only prerequisites to fix this.
Also mark "dtbs" as PHONY for correctness.

This was broken in (70b0476 ARM: 7513/1: Make sure dtc is built before
running it).

Reported-by: Mike Frysinger <[email protected]>
Signed-off-by: Doug Anderson <[email protected]>
Acked-by: Olof Johansson <[email protected]>
Reviewed-by: David Brown <[email protected]>
Signed-off-by: Russell King <[email protected]>
arch/arm/Makefile

index 47374085befdf6d4ad1cc49c0714e52453ec510f..10c08092378f3a21097c50c7618b2865f444c140 100644 (file)
@@ -289,9 +289,10 @@ zImage Image xipImage bootpImage uImage: vmlinux
 zinstall uinstall install: vmlinux
        $(Q)$(MAKE) $(build)=$(boot) MACHINE=$(MACHINE) $@
 
-%.dtb: scripts
+%.dtb: scripts
        $(Q)$(MAKE) $(build)=$(boot)/dts MACHINE=$(MACHINE) $(boot)/dts/$@
 
+PHONY += dtbs
 dtbs: scripts
        $(Q)$(MAKE) $(build)=$(boot)/dts MACHINE=$(MACHINE) dtbs