[source] target/toolchain: Fix toolchain packaging without package build
LEDE Commits
lede-commits at lists.infradead.org
Tue Sep 6 02:40:18 PDT 2016
nbd pushed a commit to source.git, branch master:
https://git.lede-project.org/81dfbfb069c3c8f3e5499f55b02b1f320208707d
commit 81dfbfb069c3c8f3e5499f55b02b1f320208707d
Author: Micha Lenk <micha at lenk.info>
AuthorDate: Tue Aug 9 12:59:06 2016 +0200
target/toolchain: Fix toolchain packaging without package build
If the toolchain is packaged for later use as external toolchain, the resulting
tarball is created in $BIN_DIR. But without building all packages first that
directory isn't created, hence 'make target/toolchain/compile' fails when
trying to create the toolchain tarball with error "Cannot open: No such file or
directory".
To fix that the $BIN_DIR is created before using it.
Signed-off-by: Micha Lenk <micha at lenk.info>
---
target/toolchain/Makefile | 1 +
1 file changed, 1 insertion(+)
diff --git a/target/toolchain/Makefile b/target/toolchain/Makefile
index 2f5186c..2fcda3e 100644
--- a/target/toolchain/Makefile
+++ b/target/toolchain/Makefile
@@ -58,6 +58,7 @@ $(BIN_DIR)/$(TOOLCHAIN_NAME).tar.bz2: clean
find $(TOOLCHAIN_BUILD_DIR) -name .git | $(XARGS) rm -rf
find $(TOOLCHAIN_BUILD_DIR) -name .svn | $(XARGS) rm -rf
find $(TOOLCHAIN_BUILD_DIR) -name CVS | $(XARGS) rm -rf
+ mkdir -p $(BIN_DIR)
(cd $(BUILD_DIR); \
tar cfj $@ $(TOOLCHAIN_NAME); \
)
More information about the lede-commits
mailing list