commit 36fc26b7768fcc9a0235d237697ac1f885ef52ec
Author: Roger Pueyo Centelles <roger.pueyo@guifi.net>
Date:   Tue Nov 4 10:54:58 2014 +0100

    Fix issue #321: added VERSION_REPO variable for OpenWrt compilation pointing to http://fw.qmp.cat

diff --git a/Makefile b/Makefile
index c49b286..b72ae51 100644
--- a/Makefile
+++ b/Makefile
@@ -36,6 +36,9 @@ J ?= 1
 V ?= 0
 T ?= ar71xx
 MAKE_SRC = -j$(J) V=$(V)
+IMAGEOPT ?= true
+VERSIONOPT ?= true
+VERSION_REPO ?= http://fw.qmp.cat/$(QMP_GIT_BRANCH)_openwrt-%T-generic/packages
 
 include targets.mk
 
@@ -68,7 +71,7 @@ KCONFIG = $(BUILD_PATH)/target/linux/$(ARCH)/config-*
 define build_src
 	$(eval BRANCH_GIT=$(shell git --git-dir=$(BUILD_DIR)/qmp/.git branch|grep ^*|cut -d " " -f 2))
 	$(eval REV_GIT=$(shell git --git-dir=$(BUILD_DIR)/qmp/.git --no-pager log -n 1 --oneline|cut -d " " -f 1))
-	make -C $(BUILD_PATH) $(MAKE_SRC) BRANCH_GIT=$(BRANCH_GIT) REV_GIT=$(REV_GIT)
+	make -C $(BUILD_PATH) $(MAKE_SRC) IMAGEOPT=$(IMAGEOPT) VERSIONOPT=$(VERSIONOPT) VERSION_REPO=$(VERSION_REPO) BRANCH_GIT=$(BRANCH_GIT) REV_GIT=$(REV_GIT)
 endef
 
 define copy_feeds_file
