From: Keir Fraser Date: Thu, 6 May 2010 10:10:02 +0000 (+0100) Subject: ocaml: Build components by default on Linux if toolchain installed. X-Git-Tag: archive/raspbian/4.8.0-1+rpi1~1^2~12248 X-Git-Url: https://dgit.raspbian.org/?a=commitdiff_plain;h=a4c08349515acb96c5faab38098f6f68f0700433;p=xen.git ocaml: Build components by default on Linux if toolchain installed. Signed-off-by: Vincent Hanquez --- diff --git a/Config.mk b/Config.mk index b42ca40438..903f015924 100644 --- a/Config.mk +++ b/Config.mk @@ -163,8 +163,16 @@ XENSTAT_XENTOP ?= y VTPM_TOOLS ?= n LIBXENAPI_BINDINGS ?= n PYTHON_TOOLS ?= y -OCAML_TOOLS ?= n +OCAML_TOOLS ?= y CONFIG_MINITERM ?= n CONFIG_LOMOUNT ?= n +ifeq ($(OCAML_TOOLS),y) +ifeq ($(CONFIG_Linux),y) +OCAML_TOOLS := $(shell ocamlopt -v > /dev/null 2>&1 && echo "y" || echo "n") +else +OCAML_TOOLS := n +endif +endif + -include $(XEN_ROOT)/.config