X-Git-Url: http://git.openwrt.org/?a=blobdiff_plain;f=include%2Ffeeds.mk;h=9637424c5bc249257342cadcb36cdc18113f453e;hb=97940f876616ad3b6ff7f88d0c1303eaff774a0a;hp=d20cdfe0690e0f2cd36755d7f32efd0f1c22809d;hpb=c72f3b5e2b7e9a86488046bb6e2396f2354b82c9;p=openwrt%2Fstaging%2Fwigyori.git diff --git a/include/feeds.mk b/include/feeds.mk index d20cdfe069..9637424c5b 100644 --- a/include/feeds.mk +++ b/include/feeds.mk @@ -6,10 +6,10 @@ # See /LICENSE for more information. # --include $(TMP_DIR)/.packagesubdirs +-include $(TMP_DIR)/.packageauxvars FEEDS_INSTALLED:=$(notdir $(wildcard $(TOPDIR)/package/feeds/*)) -FEEDS_AVAILABLE:=$(sort $(FEEDS_INSTALLED) $(shell $(SCRIPT_DIR)/feeds list -n)) +FEEDS_AVAILABLE:=$(sort $(FEEDS_INSTALLED) $(shell $(SCRIPT_DIR)/feeds list -n 2>/dev/null)) PACKAGE_SUBDIRS=$(PACKAGE_DIR) ifneq ($(CONFIG_PER_FEED_REPO),) @@ -41,3 +41,8 @@ define FeedSourcesAppend echo '$(if $(filter m,$(CONFIG_FEED_$(feed))),# )src/gz %d_$(feed) %U/packages/%A/$(feed)';)))) \ ) >> $(1) endef + +# 1: package name +define GetABISuffix +$(if $(filter-out kmod-%,$(1)),$(if $(Package/$(1)/abiversion),$(if $(filter %0 %1 %2 %3 %4 %5 %6 %7 %8 %9,$(1)),-)$(Package/$(1)/abiversion))) +endef