|
@@ -131,6 +131,9 @@ TAR ?= tar
|
|
# Retrieve and unpack the archive
|
|
# Retrieve and unpack the archive
|
|
$(BUILD_DIR)/%/.stamp_downloaded:
|
|
$(BUILD_DIR)/%/.stamp_downloaded:
|
|
$(call MESSAGE,"Downloading")
|
|
$(call MESSAGE,"Downloading")
|
|
|
|
+ifdef BR2_PRIMARY_SITE
|
|
|
|
+ -$(Q)test -e $(DL_DIR)/$($(PKG)_SOURCE) || $(WGET) -P $(DL_DIR) $(BR2_PRIMARY_SITE)/$($(PKG)_SOURCE)
|
|
|
|
+endif
|
|
$(Q)test -e $(DL_DIR)/$($(PKG)_SOURCE) || $(WGET) -P $(DL_DIR) $($(PKG)_SITE)/$($(PKG)_SOURCE)
|
|
$(Q)test -e $(DL_DIR)/$($(PKG)_SOURCE) || $(WGET) -P $(DL_DIR) $($(PKG)_SITE)/$($(PKG)_SOURCE)
|
|
$(if $($(PKG)_PATCH),$(Q)test -e $(DL_DIR)/$($(PKG)_PATCH) || $(WGET) -P $(DL_DIR) $($(PKG)_SITE)/$($(PKG)_PATCH))
|
|
$(if $($(PKG)_PATCH),$(Q)test -e $(DL_DIR)/$($(PKG)_PATCH) || $(WGET) -P $(DL_DIR) $($(PKG)_SITE)/$($(PKG)_PATCH))
|
|
$(Q)mkdir -p $(@D)
|
|
$(Q)mkdir -p $(@D)
|