2014-01-02 19:09:07 +00:00
|
|
|
Index: xen-4.4.0-testing/xen/Makefile
|
2011-09-15 21:43:21 +00:00
|
|
|
===================================================================
|
2014-01-02 19:09:07 +00:00
|
|
|
--- xen-4.4.0-testing.orig/xen/Makefile
|
|
|
|
+++ xen-4.4.0-testing/xen/Makefile
|
2007-02-11 10:48:10 +00:00
|
|
|
@@ -1,3 +1,4 @@
|
2007-01-15 23:42:10 +00:00
|
|
|
+export XEN_CHANGESET = unavailable
|
2007-02-11 10:48:10 +00:00
|
|
|
# This is the correct place to edit the build version.
|
|
|
|
# All other places this is stored (eg. compile.h) should be autogenerated.
|
2010-01-16 00:12:54 +00:00
|
|
|
export XEN_VERSION = 4
|
2014-01-02 19:09:07 +00:00
|
|
|
@@ -122,7 +123,7 @@ delete-unfresh-files:
|
|
|
|
@mv -f $@.tmp $@
|
2008-04-26 09:41:49 +00:00
|
|
|
|
|
|
|
# compile.h contains dynamic build info. Rebuilt on every 'make' invocation.
|
|
|
|
-include/xen/compile.h: include/xen/compile.h.in .banner
|
|
|
|
+include/xen/compile.h: include/xen/compile.h.in
|
|
|
|
@sed -e 's/@@date@@/$(shell LC_ALL=C date)/g' \
|
|
|
|
-e 's/@@time@@/$(shell LC_ALL=C date +%T)/g' \
|
2008-07-18 23:04:37 +00:00
|
|
|
-e 's/@@whoami@@/$(XEN_WHOAMI)/g' \
|
2014-01-02 19:09:07 +00:00
|
|
|
@@ -132,9 +133,9 @@ include/xen/compile.h: include/xen/compi
|
2007-01-15 23:42:10 +00:00
|
|
|
-e 's/@@version@@/$(XEN_VERSION)/g' \
|
|
|
|
-e 's/@@subversion@@/$(XEN_SUBVERSION)/g' \
|
|
|
|
-e 's/@@extraversion@@/$(XEN_EXTRAVERSION)/g' \
|
2013-06-01 21:11:56 +00:00
|
|
|
- -e 's!@@changeset@@!$(shell tools/scmversion $(XEN_ROOT) || echo "unavailable")!g' \
|
2014-01-02 19:09:07 +00:00
|
|
|
+ -e 's!@@changeset@@!$(XEN_CHANGESET)!g' \
|
2007-01-15 23:42:10 +00:00
|
|
|
< include/xen/compile.h.in > $@.new
|
2014-01-02 19:09:07 +00:00
|
|
|
- @cat .banner
|
|
|
|
+ @echo "Xen $(XEN_FULLVERSION)" > .banner
|
|
|
|
@$(PYTHON) tools/fig-to-oct.py < .banner >> $@.new
|
2007-01-15 23:42:10 +00:00
|
|
|
@mv -f $@.new $@
|
2008-04-26 09:41:49 +00:00
|
|
|
|