aboutsummaryrefslogtreecommitdiffstats
path: root/target/imagebuilder/Makefile
diff options
context:
space:
mode:
authorGabor Juhos <juhosg@openwrt.org>2010-03-08 17:00:46 +0000
committerGabor Juhos <juhosg@openwrt.org>2010-03-08 17:00:46 +0000
commita189e15a78562a477614cebcadaa1ba66752082f (patch)
treed81b3f4bb546f8a512e774622662c791f4407bdc /target/imagebuilder/Makefile
parente7896246fe2a3ac6b97eaa8b3f55d0b46b9502e8 (diff)
downloadupstream-a189e15a78562a477614cebcadaa1ba66752082f.tar.gz
upstream-a189e15a78562a477614cebcadaa1ba66752082f.tar.bz2
upstream-a189e15a78562a477614cebcadaa1ba66752082f.zip
imagebuilder: add REVISION variable (closes #6795)
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@20064 3c298f89-4303-0410-b956-a3cf2f4a3e73
Diffstat (limited to 'target/imagebuilder/Makefile')
-rw-r--r--target/imagebuilder/Makefile3
1 files changed, 2 insertions, 1 deletions
diff --git a/target/imagebuilder/Makefile b/target/imagebuilder/Makefile
index d0b6b88b2e..923c1e94b7 100644
--- a/target/imagebuilder/Makefile
+++ b/target/imagebuilder/Makefile
@@ -1,5 +1,5 @@
#
-# Copyright (C) 2006 OpenWrt.org
+# Copyright (C) 2006-2010 OpenWrt.org
#
# This is free software, licensed under the GNU General Public License v2.
# See /LICENSE for more information.
@@ -38,6 +38,7 @@ $(BIN_DIR)/$(IB_NAME).tar.bz2: clean
$(PKG_BUILD_DIR)/target/linux/*/patches \
$(PKG_BUILD_DIR)/target/linux/*/*/patches
-cp $(KERNEL_BUILD_DIR)/* $(IB_KDIR)/ # don't copy subdirectories here
+ echo REVISION:="$(REVISION)" > $(PKG_BUILD_DIR)/include/version.mk
find $(PKG_BUILD_DIR) -name .svn | $(XARGS) rm -rf
find $(PKG_BUILD_DIR) -name CVS | $(XARGS) rm -rf
find $(PKG_BUILD_DIR) -name .git | $(XARGS) rm -rf