summaryrefslogtreecommitdiff
path: root/arch/nios2/Makefile
diff options
context:
space:
mode:
authorMarek Vasut <marex@denx.de>2016-05-19 04:05:38 +0300
committerLey Foon Tan <lftan@altera.com>2016-05-19 04:15:00 +0300
commit9fa78f63a8921ce37252be34ef8eea2f4bfbb13f (patch)
tree835b94652abb2a7b965ca35bfe9dc611ac4781ca /arch/nios2/Makefile
parentfb75a2bb53a16069e2837ea1a4fa1bd99d636dd4 (diff)
downloadlinux-9fa78f63a8921ce37252be34ef8eea2f4bfbb13f.tar.xz
nios2: Add order-only DTC dependency to %.dtb target
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 <marex@denx.de> Cc: Ley Foon Tan <lftan@altera.com> Cc: Romain Perier <romain.perier@free-electrons.com> Acked-by: Ley Foon Tan <lftan@altera.com>
Diffstat (limited to 'arch/nios2/Makefile')
-rw-r--r--arch/nios2/Makefile2
1 files changed, 1 insertions, 1 deletions
diff --git a/arch/nios2/Makefile b/arch/nios2/Makefile
index 08130febf0a3..e74afc12d516 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: