]> rtime.felk.cvut.cz Git - coffee/buildroot.git/blobdiff - package/pkg-download.mk
infra: replace BUILDROOT_DL_DIR with BR2_DL_DIR.
[coffee/buildroot.git] / package / pkg-download.mk
index 2641d4e8b7c2cbfd142662a3a1009daf737d45c0..84598d5257fee87ed194837e96f0ca737fab87d0 100644 (file)
@@ -23,13 +23,8 @@ LOCALFILES := $(call qstrip,$(BR2_LOCALFILES))
 # external-deps target.
 DL_MODE=DOWNLOAD
 
-# Override BR2_DL_DIR if shell variable defined
-ifneq ($(BUILDROOT_DL_DIR),)
-DL_DIR := $(BUILDROOT_DL_DIR)
-else
-DL_DIR := $(call qstrip,$(BR2_DL_DIR))
-endif
-
+# DL_DIR may have been set already from the environment
+DL_DIR ?= $(call qstrip,$(BR2_DL_DIR))
 ifeq ($(DL_DIR),)
 DL_DIR := $(TOPDIR)/dl
 endif