From: Daniel Dickinson <[email protected]>
It can be convenient to separate builds into base system (included
in SDK), and task-oriented SDK builds (so that you limit the number
of packages which you must build at one time). For this to work
well it is useful to use separate opkg repositories.
This option adds the option to add a user-configurable list of
opkg repositores (just the end, like feeds, for e.g. base-packages,
vpn-packages, etc). We allow to combine separated feeds and this
option so that you can have e.g. base-packages/base base-packages/packages
vpn-packages/packages vpn-packages/luci and so on, if you want).
Signed-off-by: Daniel Dickinson <[email protected]>
---
include/feeds.mk | 27 ++++++++++++++++++++-------
package/base-files/image-config.in | 25 +++++++++++++++++++++++++
2 files changed, 45 insertions(+), 7 deletions(-)
diff --git a/include/feeds.mk b/include/feeds.mk
index b1a8f81..ffac5cd 100644
--- a/include/feeds.mk
+++ b/include/feeds.mk
@@ -28,12 +28,25 @@ endef
# 1: destination file
define FeedSourcesAppend
( \
- $(strip $(if $(CONFIG_PER_FEED_REPO), \
- $(foreach feed,base $(FEEDS_ENABLED),echo "src/gz %n_$(feed)
%U/$(feed)";) \
- $(if $(CONFIG_PER_FEED_REPO_ADD_DISABLED), \
- $(foreach feed,$(FEEDS_DISABLED),echo "$(if
$(CONFIG_PER_FEED_REPO_ADD_COMMENTED),# )src/gz %n_$(feed) %U/$(feed)";)) \
- , \
- echo "src/gz %n %U"; \
- )) \
+ $(if $(CONFIG_SDK_REPO), \
+ $(strip $(if $(CONFIG_PER_FEED_REPO), \
+ $(foreach repo,$(CONFIG_SDK_REPO),
+ $(foreach feed,base $(FEEDS_ENABLED),echo "src/gz
%n_$(repo)_$(feed) %U/$(repo)/$(feed)";) \
+ $(if $(CONFIG_PER_FEED_REPO_ADD_DISABLED), \
+ $(foreach feed,$(FEEDS_DISABLED),echo "$(if
$(CONFIG_PER_FEED_REPO_ADD_COMMENTED),# )src/gz %n_$(repo)_$(feed)
%U/$(repo)/$(feed)";) \
+ ) \
+ ) \
+ ,
+ $(foreach repo,$(CONFIG_SDK_REPO),echo "src/gz %n_$(repo)
%U/$(repo)";) \
+ )), \
+ $(strip $(if $(CONFIG_PER_FEED_REPO), \
+ $(foreach feed,base $(FEEDS_ENABLED),echo "src/gz %n_$(feed)
%U/$(feed)";) \
+ $(if $(CONFIG_PER_FEED_REPO_ADD_DISABLED), \
+ $(foreach feed,$(FEEDS_DISABLED),echo "$(if
$(CONFIG_PER_FEED_REPO_ADD_COMMENTED),# )src/gz %n_$(feed) %U/$(repo)";) \
+ ) \
+ ,
+ $(echo "src/gz %n %U";) \
+ )) \
+ ) \