]> Git Repo - u-boot.git/commitdiff
Makefile: Ensure tools directory exists in output prior to use
authorTom Rini <[email protected]>
Wed, 4 Dec 2019 23:54:30 +0000 (18:54 -0500)
committerTom Rini <[email protected]>
Fri, 6 Dec 2019 21:45:32 +0000 (16:45 -0500)
With the change to make tools/version.h a file we need to make sure that
the output directory exists first otherwise we will get a build failure.

Reported-by: Peter Robinson <[email protected]>
Tested-by: Peter Robinson <[email protected]>
Fixes: 4d90f6cd9813 ("tools: Avoid creating symbolic links for tools/version.h")
Signed-off-by: Tom Rini <[email protected]>
Reviewed-by: Bin Meng <[email protected]>
Reviewed-by: Simon Glass <[email protected]>
Makefile

index b6a091a7d23ea3a616b481b4e3f70783bbe67d39..0766f78dcbbf69788b0154a300b7d19081457279 100644 (file)
--- a/Makefile
+++ b/Makefile
@@ -1889,6 +1889,7 @@ checkarmreloc: u-boot
        fi
 
 tools/version.h: include/version.h
+       $(Q)mkdir -p $(dir $@)
        $(call if_changed,copy)
 
 envtools: scripts_basic $(version_h) $(timestamp_h) tools/version.h
This page took 0.0398 seconds and 4 git commands to generate.