Skip to content
Snippets Groups Projects
Commit d9118228 authored by blogic's avatar blogic
Browse files

build: add new option to add disabled feeds commented out to opkg.conf


Signed-off-by: default avatarJo-Philipp Wich <jow@openwrt.org>

Backport of r42004

git-svn-id: svn://svn.openwrt.org/openwrt/branches/barrier_breaker@42018 3c298f89-4303-0410-b956-a3cf2f4a3e73
parent 05528edc
No related branches found
No related tags found
No related merge requests found
...@@ -216,6 +216,13 @@ menuconfig PER_FEED_REPO ...@@ -216,6 +216,13 @@ menuconfig PER_FEED_REPO
If set, a separate repository is generated within bin/*/packages/ If set, a separate repository is generated within bin/*/packages/
for the core packages and each enabled feed. for the core packages and each enabled feed.
config PER_FEED_REPO_ADD_DISABLED
bool "Add installed but disabled feeds to opkg.conf"
default y
depends on PER_FEED_REPO
help
Add installed but disabled feeds as commented out source lines to opkg.conf.
source "tmp/.config-feeds.in" source "tmp/.config-feeds.in"
......
...@@ -111,6 +111,11 @@ define Package/opkg/Default/install ...@@ -111,6 +111,11 @@ define Package/opkg/Default/install
for d in base $(FEEDS_ENABLED); do \ for d in base $(FEEDS_ENABLED); do \
echo "src/gz %n_$$$$d %U/$$$$d" >> $(1)/etc/opkg.conf; \ echo "src/gz %n_$$$$d %U/$$$$d" >> $(1)/etc/opkg.conf; \
done done
ifneq ($(CONFIG_PER_FEED_REPO_ADD_DISABLED),)
for d in $(FEEDS_DISABLED); do \
echo "# src/gz %n_$$$$d %U/$$$$d" >> $(1)/etc/opkg.conf; \
done
endif
endif endif
$(VERSION_SED) $(1)/etc/opkg.conf $(VERSION_SED) $(1)/etc/opkg.conf
$(INSTALL_BIN) $(PKG_INSTALL_DIR)/usr/bin/opkg-cl $(1)/bin/opkg $(INSTALL_BIN) $(PKG_INSTALL_DIR)/usr/bin/opkg-cl $(1)/bin/opkg
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment