commit e355a685c7c2053b63e94eca5dc284495af315f5
Author: Roger Pueyo Centelles <roger.pueyo@guifi.net>
Date:   Thu Dec 4 18:06:30 2014 +0100

    Fix #327. Use qMp +codename +version firmware naming (/etc/openwrt_release, Ubus, LuCI, etc.)

diff --git a/Makefile b/Makefile
index b72ae51..38733ca 100644
--- a/Makefile
+++ b/Makefile
@@ -39,6 +39,10 @@ MAKE_SRC = -j$(J) V=$(V)
 IMAGEOPT ?= true
 VERSIONOPT ?= true
 VERSION_REPO ?= http://fw.qmp.cat/$(QMP_GIT_BRANCH)_openwrt-%T-generic/packages
+VERSION_DIST ?= qMp
+VERSION_NICK ?= Clearance
+VERSION_CODE ?= Clearance
+VERSION_NUMBER ?= testing
 
 include targets.mk
 
@@ -71,7 +75,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) IMAGEOPT=$(IMAGEOPT) VERSIONOPT=$(VERSIONOPT) VERSION_REPO=$(VERSION_REPO) BRANCH_GIT=$(BRANCH_GIT) REV_GIT=$(REV_GIT)
+	make -C $(BUILD_PATH) $(MAKE_SRC) IMAGEOPT=$(IMAGEOPT) VERSIONOPT=$(VERSIONOPT) VERSION_REPO=$(VERSION_REPO) VERSION_DIST=$(VERSION_DIST) VERSION_NICK=$(VERSION_NICK) VERSION_NUMBER=$(VERSION_NUMBER) VERSION_CODE=$(VERSION_CODE) BRANCH_GIT=$(BRANCH_GIT) REV_GIT=$(REV_GIT)
 endef
 
 define copy_feeds_file
