[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Xen-devel] [PATCH] xen/makefile: Allow XEN_CHANGESET to be set externally



Build systems based on tarballs rather than source code trees, such as
rpms/debs are unable to obtain changeset infomation.

Allow XEN_CHANGESET to be optionally specified in the environment.

Signed-off-by: Andrew Cooper <andrew.cooper3@xxxxxxxxxx>

---

Changes from v1:
 * Rebase on top of "Use {git, hg, svn} commit id if available for 
xen_changeset"

diff -r 2369a9d759f0 -r 396ebb07e2d0 xen/Makefile
--- a/xen/Makefile
+++ b/xen/Makefile
@@ -13,6 +13,7 @@ export BASEDIR := $(CURDIR)
 export XEN_ROOT := $(BASEDIR)/..
 
 EFI_MOUNTPOINT ?= /boot/efi
+XEN_CHANGESET  ?= $(shell tools/scmversion $(XEN_ROOT) || echo "unavailable")
 
 .PHONY: default
 default: build
@@ -126,7 +127,7 @@ include/xen/compile.h: include/xen/compi
            -e 's/@@version@@/$(XEN_VERSION)/g' \
            -e 's/@@subversion@@/$(XEN_SUBVERSION)/g' \
            -e 's/@@extraversion@@/$(XEN_EXTRAVERSION)/g' \
-           -e 's!@@changeset@@!$(shell tools/scmversion $(XEN_ROOT) || echo 
"unavailable")!g' \
+           -e 's!@@changeset@@!$(XEN_CHANGESET)!g' \
            < include/xen/compile.h.in > $@.new
        @grep \" .banner >> $@.new
        @grep -v \" .banner

_______________________________________________
Xen-devel mailing list
Xen-devel@xxxxxxxxxxxxx
http://lists.xen.org/xen-devel


 


Rackspace

Lists.xenproject.org is hosted with RackSpace, monitoring our
servers 24x7x365 and backed by RackSpace's Fanatical Support®.