]> xenbits.xensource.com Git - xen.git/commitdiff
tools/ocaml: Fix the version embedded in META files
authorAndrew Cooper <andrew.cooper3@citrix.com>
Mon, 25 Nov 2024 10:56:50 +0000 (11:56 +0100)
committerJan Beulich <jbeulich@suse.com>
Mon, 25 Nov 2024 10:56:50 +0000 (11:56 +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>
master commit: 1965e9a930740b37637ac450f4752fd53edf63c4
master date: 2024-08-23 15:02:27 +0100

tools/ocaml/common.make

index 708d74617c8db2d5b63df9cd6ab3ed355bcb479c..cecfc5b6b8c8e2531e1f1445ebc520f950a5681a 100644 (file)
@@ -14,7 +14,7 @@ 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)