summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMike Frysinger <vapier@gentoo.org>2011-06-30 16:56:20 +0000
committerWolfgang Denk <wd@denx.de>2011-07-26 16:55:20 +0200
commit14ce91b11530d7b5382adba19031b822f8f3c3fa (patch)
tree94f1a7b5a854dc844ad397e27e9562332fc9b2c7
parentd2e8b911c0a0661d395ccac72156040702ac842d (diff)
downloadu-boot-imx-14ce91b11530d7b5382adba19031b822f8f3c3fa.zip
u-boot-imx-14ce91b11530d7b5382adba19031b822f8f3c3fa.tar.gz
u-boot-imx-14ce91b11530d7b5382adba19031b822f8f3c3fa.tar.bz2
fix unconfigured out-of-tree building of tools
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>
-rw-r--r--Makefile1
1 files changed, 1 insertions, 0 deletions
diff --git a/Makefile b/Makefile
index 869755a..10a9973 100644
--- 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}" ; \