kernel: update 3.14 to 3.14.16
[oweals/openwrt.git] / include / feeds.mk
1 #
2 # Copyright (C) 2014 OpenWrt.org
3 #
4 # This is free software, licensed under the GNU General Public License v2.
5 # See /LICENSE for more information.
6 #
7
8 -include $(TMP_DIR)/.packagefeeds
9
10 FEEDS_AVAILABLE:=$(shell $(SCRIPT_DIR)/feeds list -n)
11 FEEDS_INSTALLED:=$(notdir $(wildcard $(TOPDIR)/package/feeds/*))
12 FEEDS_ENABLED:=$(foreach feed,$(FEEDS_INSTALLED),$(if $(CONFIG_FEED_$(feed)),$(feed)))
13 FEEDS_DISABLED:=$(filter-out $(FEEDS_ENABLED),$(FEEDS_INSTALLED))
14
15 PKG_CONFIG_DEPENDS += \
16         CONFIG_PER_FEED_REPO \
17         $(foreach feed,$(FEEDS_INSTALLED),CONFIG_FEED_$(feed))
18
19 # 1: package name
20 define FeedPackageDir
21 $(strip $(if $(CONFIG_PER_FEED_REPO), \
22   $(abspath $(PACKAGE_DIR)/$(if $(Package/$(1)/feed),$(Package/$(1)/feed),base)), \
23   $(PACKAGE_DIR)))
24 endef