From: Avi Kivity <[email protected]>
Signed-off-by: Avi Kivity <[email protected]>
diff --git a/Makefile b/Makefile
index f2ef811..0413212 100644
--- a/Makefile
+++ b/Makefile
@@ -19,7 +19,7 @@ rpmrelease = devel
LINUX = ./linux-2.6
-version = $(shell cd $(LINUX); git describe)
+version = $(KVM_VERSION)
_hack = mv $1 $1.orig && \
gawk -v version=$(version) -f $(ARCH_DIR)/hack-module.awk $1.orig \
diff --git a/configure b/configure
index 30af6e7..e01ba98 100755
--- a/configure
+++ b/configure
@@ -76,6 +76,16 @@ case $arch in
;;
esac
+kvm_version() {
+ local fname="$(dirname "$0")/KVM_VERSION"
+
+ if test -f "$fname"; then
+ cat "$fname"
+ else
+ echo "kvm-devel"
+ fi
+}
+
processor=${arch#*-}
arch=${arch%%-*}
@@ -119,6 +129,7 @@ LD=$cross_prefix$ld
OBJCOPY=$cross_prefix$objcopy
AR=$cross_prefix$ar
DEPMOD_VERSION=$depmod_version
+KVM_VERSION=$(kvm_version)
EOF
cat <<EOF > config.kbuild
--
To unsubscribe from this list: send the line "unsubscribe kvm-commits" in
the body of a message to [email protected]
More majordomo info at http://vger.kernel.org/majordomo-info.html