Skip to content
Snippets Groups Projects
Commit 75374642 authored by Matthias Schiffer's avatar Matthias Schiffer
Browse files

Nicer feed specification

parent 59adccca
No related branches found
No related tags found
No related merge requests found
...@@ -3,8 +3,5 @@ ...@@ -3,8 +3,5 @@
/images /images
/site /site
/openwrt /openwrt
/packages/openwrt /packages
/packages/gluon
/packages/routing
/packages/luci
/modules.local /modules.local
...@@ -129,22 +129,11 @@ clean: FORCE ...@@ -129,22 +129,11 @@ clean: FORCE
rm -rf $(GLUON_BUILDDIR) rm -rf $(GLUON_BUILDDIR)
refresh_feeds: FORCE refresh_feeds: FORCE
( \ export MAKEFLAGS=V=s$(OPENWRT_VERBOSE); \
export MAKEFLAGS=V=s$(OPENWRT_VERBOSE) \ export SCAN_COOKIE=; \
export SCAN_COOKIE=; \ scripts/feeds uninstall -a; \
scripts/feeds uninstall -a; \ scripts/feeds update -a; \
scripts/feeds update -a; \ scripts/feeds install -a
scripts/feeds install -a; \
)
define FEEDS
src-link gluon ../../packages/gluon
src-link packages ../../packages/openwrt
src-link routing ../../packages/routing
src-link luci ../../packages/luci
endef
export FEEDS
export GLUON_GENERATE := $(GLUONDIR)/scripts/generate.sh export GLUON_GENERATE := $(GLUONDIR)/scripts/generate.sh
...@@ -152,8 +141,7 @@ export GLUON_CONFIGURE := $(GLUONDIR)/scripts/configure.pl ...@@ -152,8 +141,7 @@ export GLUON_CONFIGURE := $(GLUONDIR)/scripts/configure.pl
feeds: FORCE feeds: FORCE
rm -f feeds.conf . $(GLUONDIR)/modules && for feed in $$GLUON_FEEDS; do echo src-link $$feed ../../packages/$$feed; done > feeds.conf
echo "$$FEEDS" > feeds.conf
+$(GLUONMAKE) refresh_feeds V=s$(OPENWRT_VERBOSE) +$(GLUONMAKE) refresh_feeds V=s$(OPENWRT_VERBOSE)
config: FORCE config: FORCE
......
GLUON_MODULES='openwrt packages/openwrt packages/gluon packages/routing packages/luci' GLUON_FEEDS='openwrt gluon routing luci'
MODULE_OPENWRT_REPO=git://nbd.name/attitude_adjustment.git OPENWRT_REPO=git://nbd.name/attitude_adjustment.git
MODULE_OPENWRT_COMMIT=f22d159c5ccb289125a9299c178236b075a73eaf OPENWRT_COMMIT=f22d159c5ccb289125a9299c178236b075a73eaf
MODULE_PACKAGES_OPENWRT_REPO=git://nbd.name/packages_12.09.git PACKAGES_OPENWRT_REPO=git://nbd.name/packages_12.09.git
MODULE_PACKAGES_OPENWRT_COMMIT=c67cd451ac28058a4992ba9eb2eb5551f6cd1adb PACKAGES_OPENWRT_COMMIT=c67cd451ac28058a4992ba9eb2eb5551f6cd1adb
MODULE_PACKAGES_GLUON_REPO=https://github.com/freifunk-gluon/packages.git PACKAGES_GLUON_REPO=https://github.com/freifunk-gluon/packages.git
MODULE_PACKAGES_GLUON_COMMIT=c045ce17dac418c69135ed40ac1a06ea1d6b3885 PACKAGES_GLUON_COMMIT=c045ce17dac418c69135ed40ac1a06ea1d6b3885
MODULE_PACKAGES_ROUTING_REPO=https://github.com/openwrt-routing/packages.git PACKAGES_ROUTING_REPO=https://github.com/openwrt-routing/packages.git
MODULE_PACKAGES_ROUTING_COMMIT=0e4201a983df967e88e6ce5451f5f5f99bab2370 PACKAGES_ROUTING_COMMIT=0e4201a983df967e88e6ce5451f5f5f99bab2370
MODULE_PACKAGES_LUCI_REPO=https://github.com/freifunk-gluon/luci.git PACKAGES_LUCI_REPO=https://github.com/freifunk-gluon/luci.git
MODULE_PACKAGES_LUCI_COMMIT=bed710786d8a3a63f5908823e6382a51efc91003 PACKAGES_LUCI_COMMIT=bed710786d8a3a63f5908823e6382a51efc91003
# It is possible to change the values defined in this file in a new file `modules.local` # It is possible to change the values defined in this file in a new file `modules.local`
if [ -f modules.local ]; then . ./modules.local; fi if [ -f modules.local ]; then . ./modules.local; fi
. "$1"/modules
GLUON_MODULES=openwrt
for feed in $GLUON_FEEDS; do
GLUON_MODULES="$GLUON_MODULES packages/$feed"
done
...@@ -3,7 +3,7 @@ ...@@ -3,7 +3,7 @@
set -e set -e
shopt -s nullglob shopt -s nullglob
. "$1"/modules . "$1"/scripts/modules.sh
for module in $GLUON_MODULES; do for module in $GLUON_MODULES; do
cd "$1"/$module cd "$1"/$module
...@@ -17,6 +17,5 @@ for module in $GLUON_MODULES; do ...@@ -17,6 +17,5 @@ for module in $GLUON_MODULES; do
false false
) )
fi fi
git checkout -B patched git branch -M patched
git branch -d patching
done done
...@@ -2,7 +2,7 @@ ...@@ -2,7 +2,7 @@
set -e set -e
. "$1"/modules . "$1"/scripts/modules.sh
for module in $GLUON_MODULES; do for module in $GLUON_MODULES; do
cd "$1"/$module cd "$1"/$module
......
...@@ -3,7 +3,7 @@ ...@@ -3,7 +3,7 @@
set -e set -e
shopt -s nullglob shopt -s nullglob
. "$1"/modules . "$1"/scripts/modules.sh
for module in $GLUON_MODULES; do for module in $GLUON_MODULES; do
rm -f "$1"/patches/$module/*.patch rm -f "$1"/patches/$module/*.patch
......
...@@ -2,12 +2,12 @@ ...@@ -2,12 +2,12 @@
set -e set -e
. "$1"/modules . "$1"/scripts/modules.sh
for module in $GLUON_MODULES; do for module in $GLUON_MODULES; do
var=$(echo $module | tr '[:lower:]/' '[:upper:]_') var=$(echo $module | tr '[:lower:]/' '[:upper:]_')
eval repo=\${MODULE_${var}_REPO} eval repo=\${${var}_REPO}
eval commit=\${MODULE_${var}_COMMIT} eval commit=\${${var}_COMMIT}
mkdir -p "$1"/$module mkdir -p "$1"/$module
cd "$1"/$module cd "$1"/$module
......
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