diff options
author | John Crispin <john@openwrt.org> | 2007-12-20 22:20:32 +0000 |
---|---|---|
committer | John Crispin <john@openwrt.org> | 2007-12-20 22:20:32 +0000 |
commit | ff74bb872be7dfae0178073f6990bc9a42a15aca (patch) | |
tree | 6154f1a2e7b3514964c61f17dcc20d45460d9170 | |
parent | dac2f8878af3dbc78a2fb167a1ce36e1a9f39c7f (diff) | |
download | mtk-20170518-ff74bb872be7dfae0178073f6990bc9a42a15aca.zip mtk-20170518-ff74bb872be7dfae0178073f6990bc9a42a15aca.tar.gz mtk-20170518-ff74bb872be7dfae0178073f6990bc9a42a15aca.tar.bz2 |
added packkage-version overriding, Signed-off-by: ralph <ralph.hempel@infineon.com>
SVN-Revision: 9813
-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 0000000..7e3e572 --- /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 |