mirror of
git://projects.qi-hardware.com/openwrt-xburst.git
synced 2024-11-23 21:35:20 +02:00
added packkage-version overriding, Signed-off-by: ralph <ralph.hempel@infineon.com>
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@9813 3c298f89-4303-0410-b956-a3cf2f4a3e73
This commit is contained in:
parent
903130c1c7
commit
2d4a2109e5
21
include/package-version-override.mk
Normal file
21
include/package-version-override.mk
Normal file
@ -0,0 +1,21 @@
|
||||
PKG_VERSION_ORGINAL:=$(PKG_VERSION)
|
||||
|
||||
ifeq ($(CONFIG_$(PKG_NAME)_USE_OTHER_VERSION),y)
|
||||
PKG_VERSION:= $(strip $(subst ",, $(CONFIG_$(PKG_NAME)_OTHER_VERSION)))
|
||||
PKG_MD5SUM:=
|
||||
PKG_SOURCE:=$(subst $(PKG_VERSION_ORGINAL),$(PKG_VERSION),$(PKG_SOURCE))
|
||||
endif
|
||||
|
||||
define Package/$(PKG_NAME)/config
|
||||
menu "overwrite package version"
|
||||
depends on PACKAGE_$(PKG_NAME)
|
||||
config $(PKG_NAME)_USE_OTHER_VERSION
|
||||
depends on PACKAGE_$(PKG_NAME)
|
||||
bool "Use other source version"
|
||||
default n
|
||||
config $(PKG_NAME)_OTHER_VERSION
|
||||
depends on $(PKG_NAME)_USE_OTHER_VERSION
|
||||
string "$(PKG_BASE_NAME) version as string (default version: $(PKG_VERSION_ORGINAL))"
|
||||
default "$(PKG_VERSION_ORGINAL)"
|
||||
endmenu
|
||||
endef
|
Loading…
Reference in New Issue
Block a user