X-Git-Url: https://git.rohieb.name/openwrt.git/blobdiff_plain/92896c8dca0cfdd42a72df32b47ce7a714c76294..1cf8903c6926b17c9990cb284dca3494d5a09081:/rules.mk diff --git a/rules.mk b/rules.mk index 28d28b10c..4a0fa32e3 100644 --- a/rules.mk +++ b/rules.mk @@ -32,7 +32,7 @@ SUBDIR:=$(patsubst $(TOPDIR)/%,%,${CURDIR}) OPTIMIZE_FOR_CPU:=$(ARCH) -DL_DIR:=$(call qstrip,$(if $(CONFIG_DOWNLOAD_FOLDER), $(CONFIG_DOWNLOAD_FOLDER),$(TOPDIR)/dl)) +DL_DIR:=$(if $(call qstrip,$(CONFIG_DOWNLOAD_FOLDER)),$(call qstrip,$(CONFIG_DOWNLOAD_FOLDER)),$(TOPDIR)/dl) BIN_DIR:=$(TOPDIR)/bin INCLUDE_DIR:=$(TOPDIR)/include SCRIPT_DIR:=$(TOPDIR)/scripts @@ -138,6 +138,10 @@ $(call shvar,$(1))=$$(call $(1)) export $(call shvar,$(1)) endef +define confvar +$(foreach v,$(1),$(if $($(v)),y,n)) +endef + # file extension ext=$(word $(words $(subst ., ,$(1))),$(subst ., ,$(1)))