Repository : ssh://git@open-mesh.org/openwrt-feed-devel
On branch : master
commit ae1dbbeffda76c3c44d3552f31c2953a799b196a Author: Marek Lindner mareklindner@neomailbox.ch Date: Sun May 8 06:09:33 2016 +0800
batctl-devel: allow configuring the branch/tag via menuconfig
Signed-off-by: Marek Lindner mareklindner@neomailbox.ch
ae1dbbeffda76c3c44d3552f31c2953a799b196a batctl-devel/Makefile | 14 +++++++++++++- 1 file changed, 13 insertions(+), 1 deletion(-)
diff --git a/batctl-devel/Makefile b/batctl-devel/Makefile index 1ffb88a..3530471 100644 --- a/batctl-devel/Makefile +++ b/batctl-devel/Makefile @@ -9,7 +9,7 @@ include $(TOPDIR)/rules.mk
PKG_NAME:=batctl-devel
-PKG_BRANCH:=master +PKG_BRANCH:=$(call qstrip,$(CONFIG_BATCTL_DEVEL_BATCTL_BRANCH)) PKG_VERSION:=$(shell git ls-remote https://git@git.open-mesh.org/batctl.git $(PKG_BRANCH) | cut -c1-7) PKG_BATCTL_FNAME:=batctl-devel-$(PKG_VERSION).tar.gz PKG_BATCTL_DIR:=batctl-$(PKG_VERSION) @@ -37,6 +37,18 @@ additional tools for debugging as well. This package builds the latest development version ($(PKG_VERSION)). endef
+define Package/batctl-devel/config + config BATCTL_DEVEL_BATCTL_BRANCH + string + prompt "batctl branch to build package with" + depends on PACKAGE_batctl-devel + default "master" + help + Enter a batctl branch name or git tag to override package + default value. This allows to build from non-master branches + to test unreleased features. +endef + # The linker can identify unused sections of a binary when each symbol is stored # in a separate section. This mostly removes unused linker sections and reduces # the size by ~3% on mipsel.