From ca95374ea1b0dcbe26991501e3a9dd07776eba76 Mon Sep 17 00:00:00 2001
From: Jan-Philipp Litza <janphilipp@litza.de>
Date: Fri, 17 Jan 2014 17:23:58 +0100
Subject: [PATCH] Enable the site config to include own package feeds

---
 Makefile           | 1 +
 scripts/modules.sh | 3 ++-
 2 files changed, 3 insertions(+), 1 deletion(-)

diff --git a/Makefile b/Makefile
index 2050287d2..5d267e042 100644
--- a/Makefile
+++ b/Makefile
@@ -143,6 +143,7 @@ export GLUON_CONFIGURE := $(GLUONDIR)/scripts/configure.pl
 
 
 feeds: FORCE
+	[ ! -f $(GLUON_SITEDIR)/modules ] || . $(GLUON_SITEDIR)/modules && for feed in $$GLUON_SITE_FEEDS; do echo src-link $$feed ../../packages/$$feed; done > feeds.conf
 	. $(GLUONDIR)/modules && for feed in $$GLUON_FEEDS; do echo src-link $$feed ../../packages/$$feed; done > feeds.conf
 	+$(GLUONMAKE) refresh_feeds V=s$(OPENWRT_VERBOSE)
 
diff --git a/scripts/modules.sh b/scripts/modules.sh
index 1d0925aec..24f60502a 100644
--- a/scripts/modules.sh
+++ b/scripts/modules.sh
@@ -1,7 +1,8 @@
 . "$1"/modules
+[ ! -f "$1"/site/modules ] || . "$1"/site/modules
 
 GLUON_MODULES=openwrt
 
-for feed in $GLUON_FEEDS; do
+for feed in $GLUON_SITE_FEEDS $GLUON_FEEDS; do
 	GLUON_MODULES="$GLUON_MODULES packages/$feed"
 done
-- 
GitLab