Xen 4.1 is more than a decade stale now. Use the same mechanism as elsewhere in the tree to get the current version number.
Signed-off-by: Andrew Cooper <andrew.coop...@citrix.com> --- CC: Christian Lindig <christian.lin...@citrix.com> CC: David Scott <d...@recoil.org> CC: Edwin Török <edwin.to...@cloud.com> CC: Rob Hoes <rob.h...@citrix.com> CC: Andrii Sultanov <andrii.sulta...@cloud.com> CC: Anthony PERARD <anthony.per...@vates.tech> We could use autoconf for this, but it's rather more invasive and there's going to be a reasonable amount of churn in this area anyway. --- tools/ocaml/common.make | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tools/ocaml/common.make b/tools/ocaml/common.make index 979cbe08459b..c7eefceeb42b 100644 --- a/tools/ocaml/common.make +++ b/tools/ocaml/common.make @@ -14,6 +14,6 @@ CFLAGS += -fPIC -I$(shell ocamlc -where) OCAMLOPTFLAGS = -g -ccopt "$(LDFLAGS)" -dtypes $(OCAMLINCLUDE) -w F -warn-error F OCAMLCFLAGS += -g $(OCAMLINCLUDE) -w F -warn-error F -VERSION := 4.1 +VERSION := $(shell $(XEN_ROOT)/version.sh $(XEN_ROOT)/xen/Makefile) OCAMLDESTDIR ?= $(DESTDIR)$(shell $(OCAMLFIND) printconf destdir) -- 2.39.2