]> git.kernelconcepts.de Git - karo-tx-uboot.git/commitdiff
fix unconfigured out-of-tree building of tools
authorMike Frysinger <vapier@gentoo.org>
Thu, 30 Jun 2011 16:56:20 +0000 (16:56 +0000)
committerWolfgang Denk <wd@denx.de>
Tue, 26 Jul 2011 14:55:20 +0000 (16:55 +0200)
Now that the tools target requires the generated version header file, we
need to make sure that the directory it writes to exists.  In a configured
tree, this is taken care of for us.  But in an unconfigured one, the dir
does not yet exist causing a build error like so:

/bin/sh: line 5: ..../u-boot_build/include/version_autogenerated.h.tmp: No such file or directory

So create the dir for this file before we attempt to generate it.

Signed-off-by: Mike Frysinger <vapier@gentoo.org>
Makefile

index 869755ac65252dfe531c5533ae86037e6c0e4792..10a9973f241d6edb444f4fc5a4cc72172ea1e764 100644 (file)
--- a/Makefile
+++ b/Makefile
@@ -533,6 +533,7 @@ tools: $(VERSION_FILE)
 endif  # config.mk
 
 $(VERSION_FILE):
+               @mkdir -p $(dir $(VERSION_FILE))
                @( localvers='$(shell $(TOPDIR)/tools/setlocalversion $(TOPDIR))' ; \
                   printf '#define PLAIN_VERSION "%s%s"\n' \
                        "$(U_BOOT_VERSION)" "$${localvers}" ; \