Browse Source

support/download: make sure the download folder is created

At the moment, it means that we make sure that BR2_DL_DIR is created, in
the future, it will make sure that BR2_DL_DIR/PKG_NAME/ is created.

[Peter: drop trailing / on mkdir]
Signed-off-by: Maxime Hadjinlian <maxime.hadjinlian@gmail.com>
Signed-off-by: Peter Korsgaard <peter@korsgaard.com>
Maxime Hadjinlian 7 years ago
parent
commit
08252b5457
1 changed files with 1 additions and 0 deletions
  1. 1 0
      package/pkg-download.mk

+ 1 - 0
package/pkg-download.mk

@@ -88,6 +88,7 @@ endif
 endif
 
 define DOWNLOAD
+	$(Q)mkdir -p $($(PKG)_DL_DIR)
 	$(Q)$(if $(filter bzr cvs hg svn,$($(PKG)_SITE_METHOD)),
 		BR_NO_CHECK_HASH_FOR=$(notdir $(call qstrip,$(1)))) \
 	$(EXTRA_ENV) $(DL_WRAPPER) \