mirror of
git://projects.qi-hardware.com/openwrt-xburst.git
synced 2024-11-23 23:32:49 +02:00
imagebuilder: add REVISION variable (closes #6795)
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@20064 3c298f89-4303-0410-b956-a3cf2f4a3e73
This commit is contained in:
parent
d6a5fc493b
commit
770be264bf
@ -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
|
||||
|
@ -1,6 +1,6 @@
|
||||
# Makefile for OpenWrt
|
||||
#
|
||||
# Copyright (C) 2007-2009 OpenWrt.org
|
||||
# Copyright (C) 2007-2010 OpenWrt.org
|
||||
#
|
||||
# This is free software, licensed under the GNU General Public License v2.
|
||||
# See /LICENSE for more information.
|
||||
@ -24,6 +24,9 @@ include rules.mk
|
||||
include $(INCLUDE_DIR)/debug.mk
|
||||
include $(INCLUDE_DIR)/depends.mk
|
||||
|
||||
include $(INCLUDE_DIR)/version.mk
|
||||
export REVISION
|
||||
|
||||
define Helptext
|
||||
Available Commands:
|
||||
help: This help text
|
||||
|
Loading…
Reference in New Issue
Block a user