]> xenbits.xensource.com Git - people/jgross/xen.git/commitdiff
libxl: avoid golang building without CONFIG_GOLANG=y
authorJan Beulich <jbeulich@suse.com>
Mon, 3 Aug 2020 08:06:32 +0000 (10:06 +0200)
committerWei Liu <wl@xen.org>
Tue, 4 Aug 2020 14:46:55 +0000 (14:46 +0000)
While this doesn't address the real problem I've run into (attempting to
update r/o source files), not recursing into tools/golang/xenlight/ is
enough to fix the build for me for the moment. I don't currently see why
60db5da62ac0 ("libxl: Generate golang bindings in libxl Makefile") found
it necessary to invoke this build step unconditionally.

Signed-off-by: Jan Beulich <jbeulich@suse.com>
Acked-by: Wei Liu <wl@xen.org>
tools/libxl/Makefile

index 38cd43abae1cce2c4cc8c5bebf3b2116281b87af..4fc4e1e9444a2b422080f84489d75ff64f3ddf35 100644 (file)
@@ -282,7 +282,9 @@ _libxl_type%.h _libxl_type%_json.h _libxl_type%_private.h _libxl_type%.c: libxl_
 # about races with tools/golang/xenlight/Makefile:all
 .PHONY: idl-external
 idl-external:
+ifeq ($(CONFIG_GOLANG),y)
        $(MAKE) -C $(XEN_ROOT)/tools/golang/xenlight idl-gen
+endif
 
 LIBXL_IDLGEN_FILES = _libxl_types.h _libxl_types_json.h _libxl_types_private.h _libxl_types.c \
        _libxl_types_internal.h _libxl_types_internal_json.h _libxl_types_internal_private.h _libxl_types_internal.c