Merge pull request #16927 from kaspar030/pkg_mirror_url

make: support package mirrors
This commit is contained in:
chrysn 2021-10-01 15:46:01 +02:00 committed by GitHub
commit b0628c5ce7
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
3 changed files with 12 additions and 1 deletions

View File

@ -72,7 +72,11 @@ NIGHTLY=${NIGHTLY:-0}
RUN_TESTS=${RUN_TESTS:-${NIGHTLY}} RUN_TESTS=${RUN_TESTS:-${NIGHTLY}}
DWQ_ENV="-E BOARDS -E APPS -E NIGHTLY -E RUN_TESTS -E ENABLE_TEST_CACHE DWQ_ENV="-E BOARDS -E APPS -E NIGHTLY -E RUN_TESTS -E ENABLE_TEST_CACHE
-E TEST_HASH -E CI_PULL_LABELS" -E TEST_HASH -E CI_PULL_LABELS -EPKG_USE_MIRROR"
if [ ${NIGHTLY} -eq 1 ]; then
export PKG_USE_MIRROR=0
fi
get_supported_kconfig_board_app() { get_supported_kconfig_board_app() {
local board=$1 local board=$1

View File

@ -24,6 +24,12 @@ ifeq (,$(PKG_LICENSE))
$(error PKG_LICENSE not defined) $(error PKG_LICENSE not defined)
endif endif
ifneq (, $(PKG_MIRROR_URL))
ifneq (0, $(PKG_USE_MIRROR))
PKG_URL = $(PKG_MIRROR_URL)
endif
endif
PKG_DIR ?= $(CURDIR) PKG_DIR ?= $(CURDIR)
PKG_PATCH_DIR ?= $(PKG_DIR)/patches PKG_PATCH_DIR ?= $(PKG_DIR)/patches

View File

@ -1,5 +1,6 @@
PKG_NAME=yxml PKG_NAME=yxml
PKG_URL=https://g.blicky.net/yxml.git PKG_URL=https://g.blicky.net/yxml.git
PKG_MIRROR_URL=https://github.com/RIOT-OS-pkgmirror/yxml.git
PKG_VERSION=f9438757fc49b9f86961ddb55ae430e36bb88ebb PKG_VERSION=f9438757fc49b9f86961ddb55ae430e36bb88ebb
PKG_LICENSE=MIT PKG_LICENSE=MIT