1
0
mirror of https://github.com/RIOT-OS/RIOT.git synced 2025-01-17 10:12:45 +01:00

pkg: support PKG_MIRROR_URL, use if PKG_USE_MIRROR=1 (default)

This commit is contained in:
Kaspar Schleiser 2021-10-01 13:13:12 +02:00
parent 5a9c659f5d
commit 92ca97e31b

View File

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