nios2: Add order-only DTC dependency to %.dtb target
9fa78f63 · Marek Vasut <[email protected]> · 2016-05-19 09:05:38 +08:00
The dtc dependency is missing, thus dtc is not built before it's invoked,
resulting in the following problem:
linux-2.6$ make 10m50_defconfig && make 10m50_devboard.dtb
[...]
scripts/kconfig/conf --silentoldconfig Kconfig
DTC arch/nios2/boot/10m50_devboard.dtb
/bin/sh: 1: ./scripts/dtc/dtc: not found
arch/nios2/boot/Makefile:52: recipe for target 'arch/nios2/boot/10m50_devboard.dtb' failed
make[1]: *** [arch/nios2/boot/10m50_devboard.dtb] Error 127
arch/nios2/Makefile:57: recipe for target '10m50_devboard.dtb' failed
make: *** [10m50_devboard.dtb] Error 2
Signed-off-by: Marek Vasut <[email protected]>
Cc: Ley Foon Tan <[email protected]>
Cc: Romain Perier <[email protected]>
Acked-by: Ley Foon Tan <[email protected]>
- Commit
- 9fa78f63a8921ce37252be34ef8eea2f4bfbb13f
- Parents
- fb75a2bb
Changes
1 files changed · +1 −1
diff --git a/arch/nios2/Makefile b/arch/nios2/Makefile
index 08130fe..e74afc1 100644
--- a/arch/nios2/Makefile
+++ b/arch/nios2/Makefile
@@ -53,7 +53,7 @@ all: vmImage
archclean:
$(Q)$(MAKE) $(clean)=$(nios2-boot)
-%.dtb:
+%.dtb: | scripts
$(Q)$(MAKE) $(build)=$(nios2-boot) $(nios2-boot)/$@
dtbs: