summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJan Huwald <jh@sotun.de>2012-03-06 14:36:48 (GMT)
committerJan Huwald <jh@sotun.de>2012-03-06 14:36:48 (GMT)
commit75b997c981686ef060cf7e454e0b9014fc2e51be (patch)
tree4b5f9cf455bab39065c26b761877c77a3717912e
parent56878581f13fd4f4ebe4625a8c40318011836d3c (diff)
Makefile: add option to check out specific SVN revision, fix revision for trunk
-rw-r--r--Makefile3
1 files changed, 2 insertions, 1 deletions
diff --git a/Makefile b/Makefile
index 6b19605..2c01683 100644
--- a/Makefile
+++ b/Makefile
@@ -13,7 +13,7 @@ all: image/trunk/openwrt-ar71xx-tl-wr841 \
# fetching and maintaing OpenWRT repositories
define init-repo
mkdir -p openwrt dl
-cd openwrt && svn co $(REPO_URL)
+cd openwrt && svn co $(shell [ -n "$(REPO_VSN)" ] && echo -r $(REPO_VSN)) $(REPO_URL)
cat $(@D)/feeds.conf.default feeds.conf > $(@D)/feeds.conf
cd $(@D) && ./scripts/feeds update
cd $(@D) && ./scripts/feeds install -a -p ffj
@@ -22,6 +22,7 @@ touch $@
endef
openwrt/trunk/.repo_access: REPO_URL=svn://svn.openwrt.org/openwrt/trunk/
+openwrt/trunk/.repo_access: REPO_VSN=30772
openwrt/trunk/.repo_access:
$(init-repo)
contact: Jan Huwald // Impressum