From: Andrew Cooper Date: Mon, 25 Nov 2024 10:56:50 +0000 (+0100) Subject: tools/ocaml: Fix the version embedded in META files X-Git-Tag: RELEASE-4.19.1~18 X-Git-Url: http://xenbits.xensource.com/gitweb?a=commitdiff_plain;h=2d02d54cce38a7a556c38ccd1523bbd6ca749b33;p=xen.git tools/ocaml: Fix the version embedded in META files 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 Acked-by: Christian Lindig Reviewed-by: Edwin Török master commit: 1965e9a930740b37637ac450f4752fd53edf63c4 master date: 2024-08-23 15:02:27 +0100 --- diff --git a/tools/ocaml/common.make b/tools/ocaml/common.make index 708d74617c..cecfc5b6b8 100644 --- a/tools/ocaml/common.make +++ b/tools/ocaml/common.make @@ -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)