]> xenbits.xensource.com Git - people/royger/xen.git/commitdiff
tools/ocaml: Fix the version embedded in META files
authorAndrew Cooper <andrew.cooper3@citrix.com>
Fri, 23 Aug 2024 10:37:35 +0000 (11:37 +0100)
committerAndrew Cooper <andrew.cooper3@citrix.com>
Fri, 23 Aug 2024 14:02:27 +0000 (15:02 +0100)
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.cooper3@citrix.com>
Acked-by: Christian Lindig <christian.lindig@cloud.com>
Reviewed-by: Edwin Török <edwin.torok@cloud.com>
tools/ocaml/common.make

index 979cbe08459bc2dc20a1f48302f34deb22c66ad6..c7eefceeb42bbe537e42e4f388cd9a2bb78a1ec3 100644 (file)
@@ -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)