diff options
author | John Crispin <blogic@openwrt.org> | 2007-12-20 22:20:32 +0000 |
---|---|---|
committer | John Crispin <blogic@openwrt.org> | 2007-12-20 22:20:32 +0000 |
commit | b135b8f2b9bfa5c3acd0c65e8abbf68472b6d56e (patch) | |
tree | 70d3bcf79c9df3f04d963f248dd857893a80f63b /include | |
parent | 857d49c66965a371b48dfe7be4a02e7061015fd6 (diff) | |
download | upstream-b135b8f2b9bfa5c3acd0c65e8abbf68472b6d56e.tar.gz upstream-b135b8f2b9bfa5c3acd0c65e8abbf68472b6d56e.tar.bz2 upstream-b135b8f2b9bfa5c3acd0c65e8abbf68472b6d56e.zip |
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
Diffstat (limited to 'include')
-rw-r--r-- | include/package-version-override.mk | 21 |
1 files changed, 21 insertions, 0 deletions
diff --git a/include/package-version-override.mk b/include/package-version-override.mk new file mode 100644 index 0000000000..7e3e5729a6 --- /dev/null +++ b/include/package-version-override.mk @@ -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 |