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>
This commit is contained in:
		 Micha Lenk
					Micha Lenk
				
			
				
					committed by
					
						 Felix Fietkau
						Felix Fietkau
					
				
			
			
				
	
			
			
			 Felix Fietkau
						Felix Fietkau
					
				
			
						parent
						
							9209f4304b
						
					
				
				
					commit
					81dfbfb069
				
			| @@ -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 .git | $(XARGS) rm -rf | ||||||
| 	find $(TOOLCHAIN_BUILD_DIR) -name .svn | $(XARGS) rm -rf | 	find $(TOOLCHAIN_BUILD_DIR) -name .svn | $(XARGS) rm -rf | ||||||
| 	find $(TOOLCHAIN_BUILD_DIR) -name CVS | $(XARGS) rm -rf | 	find $(TOOLCHAIN_BUILD_DIR) -name CVS | $(XARGS) rm -rf | ||||||
|  | 	mkdir -p $(BIN_DIR) | ||||||
| 	(cd $(BUILD_DIR); \ | 	(cd $(BUILD_DIR); \ | ||||||
| 		tar cfj $@ $(TOOLCHAIN_NAME); \ | 		tar cfj $@ $(TOOLCHAIN_NAME); \ | ||||||
| 	) | 	) | ||||||
|   | |||||||
		Reference in New Issue
	
	Block a user