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 <[email protected]> --- CC: Christian Lindig <[email protected]> CC: David Scott <[email protected]> CC: Edwin Török <[email protected]> CC: Rob Hoes <[email protected]> CC: Andrii Sultanov <[email protected]> CC: Anthony PERARD <[email protected]> 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
