diff options
author | Micha Lenk <micha@lenk.info> | 2016-08-09 12:59:06 +0200 |
---|---|---|
committer | Felix Fietkau <nbd@nbd.name> | 2016-09-06 11:40:12 +0200 |
commit | 81dfbfb069c3c8f3e5499f55b02b1f320208707d (patch) | |
tree | 8547197c1e45b15091effce5ebb763a5ada7f0a8 /target/toolchain/Makefile | |
parent | 9209f4304b0dd5e5a5337abd69a6dbf6a9cb782e (diff) | |
download | upstream-81dfbfb069c3c8f3e5499f55b02b1f320208707d.tar.gz upstream-81dfbfb069c3c8f3e5499f55b02b1f320208707d.tar.bz2 upstream-81dfbfb069c3c8f3e5499f55b02b1f320208707d.zip |
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@lenk.info>
Diffstat (limited to 'target/toolchain/Makefile')
-rw-r--r-- | target/toolchain/Makefile | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/target/toolchain/Makefile b/target/toolchain/Makefile index 2f5186c152..2fcda3e25f 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); \ ) |