Skip to contentSkip to conversation

Makefile: Ensure tools directory exists in output prior to use

PATCH New Tom Rini 3 participants 4 messages Dec 4, 2019 – Dec 6, 2019 Kbuild

lore
Share & tools
lore

Tom Rini

author
#0 lore raw

PATCH 1/1 Makefile: Ensure tools directory exists in output prior to use

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.

Fixes 4d90f6cd9813 ("tools: Avoid creating symbolic links for tools/version.h")
---
 Makefile | 1 +
 1 file changed, 1 insertion(+)
Makefile +1 -0
index 0ee0c701022a..960926caad45 100644
@@ -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
Signature · 1 line
2.17.1
#1 lore raw

PATCH 1/1 Makefile: Ensure tools directory exists in output prior to use

Quoted 4 lines · Tom Rini

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.

Quoted 8 lines
Fixes 4d90f6cd9813 ("tools: Avoid creating symbolic links for tools/version.h")
---
 Makefile | 1 +
 1 file changed, 1 insertion(+)
#2 lore raw

PATCH 1/1 Makefile: Ensure tools directory exists in output prior to use

In reply to Tom Rini
Quoted 11 lines · Tom Rini

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.

Fixes 4d90f6cd9813 ("tools: Avoid creating symbolic links for tools/version.h")
---
 Makefile | 1 +
 1 file changed, 1 insertion(+)
author
#3 lore raw

PATCH 1/1 Makefile: Ensure tools directory exists in output prior to use

In reply to Tom Rini
Quoted 9 lines · Tom Rini

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.

Fixes 4d90f6cd9813 ("tools: Avoid creating symbolic links for tools/version.h")

Applied to u-boot/master, thanks!

Signature · 8 lines
Tom
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 833 bytes
Desc: not available
URL: <https://lists.denx.de/pipermail/u-boot/attachments/20191206/2a847eb1/attachment.sig>