don't overwrite version.mk, substitute REVISION instead

SVN-Revision: 31271
This commit is contained in:
Jo-Philipp Wich 2012-04-13 10:47:45 +00:00
parent 4b230e19fc
commit 93b8648b15
2 changed files with 4 additions and 1 deletions

View File

@ -5,6 +5,9 @@
# See /LICENSE for more information.
#
# Substituted by SDK, do not remove
# REVISION:=x
PKG_CONFIG_DEPENDS += \
CONFIG_VERSION_NUMBER \
CONFIG_VERSION_NICK \

View File

@ -56,7 +56,7 @@ $(BIN_DIR)/$(SDK_NAME).tar.bz2: clean
> $(SDK_BUILD_DIR)/feeds.conf.default
cat $(TOPDIR)/feeds.conf.default \
>> $(SDK_BUILD_DIR)/feeds.conf.default
echo REVISION:="$(REVISION)" > $(SDK_BUILD_DIR)/include/version.mk
$(SED) 's,^# REVISION:=.*,REVISION:=$(REVISION),g' $(SDK_BUILD_DIR)/include/version.mk
find $(SDK_BUILD_DIR) -name .git | $(XARGS) rm -rf
find $(SDK_BUILD_DIR) -name .svn | $(XARGS) rm -rf
find $(SDK_BUILD_DIR) -name CVS | $(XARGS) rm -rf