Commit 77479b38e2f58890eb221a0418357502a5b41cd6

Authored by Nathan Rossi
Committed by Olof Johansson
1 parent 4550bdb0bd

kbuild: Create directory for target DTB

When building specific DTBs out of the kernel tree the vendor subdirs
(boot/dts/<vendor>) are not created, ensure that they are before
building the DTB.

Signed-off-by: Nathan Rossi <nathan.rossi@xilinx.com>
Signed-off-by: Michal Simek <michal.simek@xilinx.com>
Acked-by: Will Deacon <will.deacon@arm.com>
Signed-off-by: Olof Johansson <olof@lixom.net>

Showing 1 changed file with 2 additions and 1 deletions Side-by-side Diff

scripts/Makefile.lib
... ... @@ -282,7 +282,8 @@
282 282 $(call cmd,dt_S_dtb)
283 283  
284 284 quiet_cmd_dtc = DTC $@
285   -cmd_dtc = $(CPP) $(dtc_cpp_flags) -x assembler-with-cpp -o $(dtc-tmp) $< ; \
  285 +cmd_dtc = mkdir -p $(dir ${dtc-tmp}) ; \
  286 + $(CPP) $(dtc_cpp_flags) -x assembler-with-cpp -o $(dtc-tmp) $< ; \
286 287 $(objtree)/scripts/dtc/dtc -O dtb -o $@ -b 0 \
287 288 -i $(dir $<) $(DTC_FLAGS) \
288 289 -d $(depfile).dtc.tmp $(dtc-tmp) ; \