From nobody Fri May 3 13:02:12 2024 Delivered-To: importer@patchew.org Received-SPF: pass (zohomail.com: domain of lists.xenproject.org designates 192.237.175.120 as permitted sender) client-ip=192.237.175.120; envelope-from=xen-devel-bounces@lists.xenproject.org; helo=lists.xenproject.org; Authentication-Results: mx.zohomail.com; dkim=pass; spf=pass (zohomail.com: domain of lists.xenproject.org designates 192.237.175.120 as permitted sender) smtp.mailfrom=xen-devel-bounces@lists.xenproject.org; dmarc=pass(p=none dis=none) header.from=suse.com ARC-Seal: i=1; a=rsa-sha256; t=1603462818; cv=none; d=zohomail.com; s=zohoarc; b=m9SNxKMMNf5nyn0GMhY+4/MLM2+HapvIMGZUUs/IwrX0w7rtYIUf3hGm2UBtcuwzrri9r72aUnW/8zrmXVOXperZaheinTM79JVo3I5s87JCtJZrT3zOWOGUOQhWurMN63hfMzIlciXtJsx0zyA3xxrJqleA86MxDVSkkkR+Umk= ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=zohomail.com; s=zohoarc; t=1603462818; h=Content-Transfer-Encoding:Cc:Date:From:In-Reply-To:List-Subscribe:List-Post:List-Id:List-Help:List-Unsubscribe:MIME-Version:Message-ID:References:Sender:Subject:To; bh=iY9Qn8kSLsYhVemyYxA+92+y1Yj78ZJBQagEpKpdTSU=; b=Co6gSN2RWFyIB4AjIHNbKNOosJb1rtqycMvg8r6a/QpQHaPHPAZP80Zv6swtqL+BiQeiHSoebIq6yJdqu3/IW7pbwpO6mU5wbc0hF+ErKnWoHTP/NugKsKGhO5fiHaHSA34jEn892jRzcNTd/JFecr2Guh48PUT6jigJl7+v3ZI= ARC-Authentication-Results: i=1; mx.zohomail.com; dkim=pass; spf=pass (zohomail.com: domain of lists.xenproject.org designates 192.237.175.120 as permitted sender) smtp.mailfrom=xen-devel-bounces@lists.xenproject.org; dmarc=pass header.from= (p=none dis=none) header.from= Return-Path: Received: from lists.xenproject.org (lists.xenproject.org [192.237.175.120]) by mx.zohomail.com with SMTPS id 1603462818676255.64210111325588; Fri, 23 Oct 2020 07:20:18 -0700 (PDT) Received: from list by lists.xenproject.org with outflank-mailman.11014.29241 (Exim 4.92) (envelope-from ) id 1kVxuw-0000np-K4; Fri, 23 Oct 2020 14:19:42 +0000 Received: by outflank-mailman (output) from mailman id 11014.29241; Fri, 23 Oct 2020 14:19:42 +0000 Received: from localhost ([127.0.0.1] helo=lists.xenproject.org) by lists.xenproject.org with esmtp (Exim 4.92) (envelope-from ) id 1kVxuw-0000ni-Gl; Fri, 23 Oct 2020 14:19:42 +0000 Received: by outflank-mailman (input) for mailman id 11014; Fri, 23 Oct 2020 14:19:41 +0000 Received: from all-amaz-eas1.inumbo.com ([34.197.232.57] helo=us1-amaz-eas2.inumbo.com) by lists.xenproject.org with esmtp (Exim 4.92) (envelope-from ) id 1kVxuv-0000nb-9H for xen-devel@lists.xenproject.org; Fri, 23 Oct 2020 14:19:41 +0000 Received: from mx2.suse.de (unknown [195.135.220.15]) by us1-amaz-eas2.inumbo.com (Halon) with ESMTPS id 0940eab8-7c47-487b-90cb-c3622471516b; Fri, 23 Oct 2020 14:19:38 +0000 (UTC) Received: from relay2.suse.de (unknown [195.135.221.27]) by mx2.suse.de (Postfix) with ESMTP id 2CDCCB2A4; Fri, 23 Oct 2020 14:19:37 +0000 (UTC) Received: from all-amaz-eas1.inumbo.com ([34.197.232.57] helo=us1-amaz-eas2.inumbo.com) by lists.xenproject.org with esmtp (Exim 4.92) (envelope-from ) id 1kVxuv-0000nb-9H for xen-devel@lists.xenproject.org; Fri, 23 Oct 2020 14:19:41 +0000 Received: from mx2.suse.de (unknown [195.135.220.15]) by us1-amaz-eas2.inumbo.com (Halon) with ESMTPS id 0940eab8-7c47-487b-90cb-c3622471516b; Fri, 23 Oct 2020 14:19:38 +0000 (UTC) Received: from relay2.suse.de (unknown [195.135.221.27]) by mx2.suse.de (Postfix) with ESMTP id 2CDCCB2A4; Fri, 23 Oct 2020 14:19:37 +0000 (UTC) X-Outflank-Mailman: Message body and most headers restored to incoming version X-BeenThere: xen-devel@lists.xenproject.org List-Id: Xen developer discussion List-Unsubscribe: , List-Post: List-Help: List-Subscribe: , Errors-To: xen-devel-bounces@lists.xenproject.org Precedence: list Sender: "Xen-devel" X-Inumbo-ID: 0940eab8-7c47-487b-90cb-c3622471516b X-Virus-Scanned: by amavisd-new at test-mx.suse.de DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=suse.com; s=susede1; t=1603462777; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=iY9Qn8kSLsYhVemyYxA+92+y1Yj78ZJBQagEpKpdTSU=; b=PJVlFY6xGJL5feekzk/MDJOPK7IQQ0Lq91cCqNE5NDSNzB5fbH+j1ZvcgfJ30gMRrqzNZy TZkCog/srgpj6QIPv+Y/R3AVf97Zn/YT0XdU8NAwxvqYddu3Ac+ylgbabO4nQzi7mjs810 cAHMPnkoqBUyoPWHh7RoqcxbxwqCV+Q= From: Juergen Gross To: xen-devel@lists.xenproject.org Cc: Juergen Gross , Andrew Cooper , George Dunlap , Ian Jackson , Jan Beulich , Julien Grall , Stefano Stabellini , Wei Liu , Samuel Thibault , Christian Lindig , David Scott , Bertrand Marquis Subject: [PATCH v2 1/3] tools/libs: move official headers to common directory Date: Fri, 23 Oct 2020 16:19:32 +0200 Message-Id: <20201023141934.20062-2-jgross@suse.com> X-Mailer: git-send-email 2.26.2 In-Reply-To: <20201023141934.20062-1-jgross@suse.com> References: <20201023141934.20062-1-jgross@suse.com> MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable X-ZohoMail-DKIM: pass (identity @suse.com) Content-Type: text/plain; charset="utf-8" Instead of each library having an own include directory move the official headers to tools/include instead. This will drop the need to link those headers to tools/include and there is no need any longer to have library-specific include paths when building Xen. While at it remove setting of the unused variable PKG_CONFIG_CFLAGS_LOCAL in libs/*/Makefile. Signed-off-by: Juergen Gross Acked-by: Christian Lindig Tested-by: Bertrand Marquis Acked-by: Ian Jackson --- .gitignore | 5 ++-- stubdom/mini-os.mk | 2 +- tools/Rules.mk | 5 ++-- tools/include/Makefile | 6 ++++ tools/{libs/vchan =3D> }/include/libxenvchan.h | 0 tools/{libs/light =3D> }/include/libxl.h | 0 tools/{libs/light =3D> }/include/libxl_event.h | 0 tools/{libs/light =3D> }/include/libxl_json.h | 0 tools/{libs/light =3D> }/include/libxl_utils.h | 0 tools/{libs/light =3D> }/include/libxl_uuid.h | 0 tools/{libs/util =3D> }/include/libxlutil.h | 0 tools/{libs/call =3D> }/include/xencall.h | 0 tools/{libs/ctrl =3D> }/include/xenctrl.h | 0 .../{libs/ctrl =3D> }/include/xenctrl_compat.h | 0 .../devicemodel =3D> }/include/xendevicemodel.h | 0 tools/{libs/evtchn =3D> }/include/xenevtchn.h | 0 .../include/xenforeignmemory.h | 0 tools/{libs/gnttab =3D> }/include/xengnttab.h | 0 tools/{libs/guest =3D> }/include/xenguest.h | 0 tools/{libs/hypfs =3D> }/include/xenhypfs.h | 0 tools/{libs/stat =3D> }/include/xenstat.h | 0 .../compat =3D> include/xenstore-compat}/xs.h | 0 .../xenstore-compat}/xs_lib.h | 0 tools/{libs/store =3D> }/include/xenstore.h | 0 tools/{xenstore =3D> include}/xenstore_lib.h | 0 .../{libs/toolcore =3D> }/include/xentoolcore.h | 0 .../include/xentoolcore_internal.h | 0 tools/{libs/toollog =3D> }/include/xentoollog.h | 0 tools/libs/call/Makefile | 3 -- tools/libs/ctrl/Makefile | 3 -- tools/libs/devicemodel/Makefile | 3 -- tools/libs/evtchn/Makefile | 2 -- tools/libs/foreignmemory/Makefile | 3 -- tools/libs/gnttab/Makefile | 3 -- tools/libs/guest/Makefile | 3 -- tools/libs/hypfs/Makefile | 3 -- tools/libs/libs.mk | 10 ++----- tools/libs/light/Makefile | 28 ++++++++----------- tools/libs/stat/Makefile | 2 -- tools/libs/store/Makefile | 11 +++----- tools/libs/toolcore/Makefile | 9 +++--- tools/libs/toollog/Makefile | 2 -- tools/libs/util/Makefile | 3 -- tools/libs/vchan/Makefile | 3 -- tools/ocaml/libs/xentoollog/Makefile | 2 +- tools/ocaml/libs/xentoollog/genlevels.py | 2 +- 46 files changed, 36 insertions(+), 77 deletions(-) rename tools/{libs/vchan =3D> }/include/libxenvchan.h (100%) rename tools/{libs/light =3D> }/include/libxl.h (100%) rename tools/{libs/light =3D> }/include/libxl_event.h (100%) rename tools/{libs/light =3D> }/include/libxl_json.h (100%) rename tools/{libs/light =3D> }/include/libxl_utils.h (100%) rename tools/{libs/light =3D> }/include/libxl_uuid.h (100%) rename tools/{libs/util =3D> }/include/libxlutil.h (100%) rename tools/{libs/call =3D> }/include/xencall.h (100%) rename tools/{libs/ctrl =3D> }/include/xenctrl.h (100%) rename tools/{libs/ctrl =3D> }/include/xenctrl_compat.h (100%) rename tools/{libs/devicemodel =3D> }/include/xendevicemodel.h (100%) rename tools/{libs/evtchn =3D> }/include/xenevtchn.h (100%) rename tools/{libs/foreignmemory =3D> }/include/xenforeignmemory.h (100%) rename tools/{libs/gnttab =3D> }/include/xengnttab.h (100%) rename tools/{libs/guest =3D> }/include/xenguest.h (100%) rename tools/{libs/hypfs =3D> }/include/xenhypfs.h (100%) rename tools/{libs/stat =3D> }/include/xenstat.h (100%) rename tools/{libs/store/include/compat =3D> include/xenstore-compat}/xs.h= (100%) rename tools/{libs/store/include/compat =3D> include/xenstore-compat}/xs_l= ib.h (100%) rename tools/{libs/store =3D> }/include/xenstore.h (100%) rename tools/{xenstore =3D> include}/xenstore_lib.h (100%) rename tools/{libs/toolcore =3D> }/include/xentoolcore.h (100%) rename tools/{libs/toolcore =3D> }/include/xentoolcore_internal.h (100%) rename tools/{libs/toollog =3D> }/include/xentoollog.h (100%) diff --git a/.gitignore b/.gitignore index f6865c9cd8..b346a2abf6 100644 --- a/.gitignore +++ b/.gitignore @@ -143,7 +143,6 @@ tools/libs/light/test_timedereg tools/libs/light/test_fdderegrace tools/libs/light/tmp.* tools/libs/light/xenlight.pc -tools/libs/light/include/_*.h tools/libs/stat/_paths.h tools/libs/stat/headers.chk tools/libs/stat/libxenstat.map @@ -153,7 +152,6 @@ tools/libs/store/list.h tools/libs/store/utils.h tools/libs/store/xenstore.pc tools/libs/store/xs_lib.c -tools/libs/store/include/xenstore_lib.h tools/libs/util/*.pc tools/libs/util/_paths.h tools/libs/util/libxlu_cfg_y.output @@ -231,7 +229,8 @@ tools/hotplug/Linux/xendomains tools/hotplug/NetBSD/rc.d/xencommons tools/hotplug/NetBSD/rc.d/xendriverdomain tools/include/acpi -tools/include/*.h +tools/include/_libxl*.h +tools/include/_xentoolcore_list.h tools/include/xen/* tools/include/xen-xsm/* tools/include/xen-foreign/*.(c|h|size) diff --git a/stubdom/mini-os.mk b/stubdom/mini-os.mk index 420e9a8771..7e4968e026 100644 --- a/stubdom/mini-os.mk +++ b/stubdom/mini-os.mk @@ -5,7 +5,7 @@ # XEN_ROOT # MINIOS_TARGET_ARCH =20 -XENSTORE_CPPFLAGS =3D -isystem $(XEN_ROOT)/tools/libs/store/include +XENSTORE_CPPFLAGS =3D -isystem $(XEN_ROOT)/tools/include TOOLCORE_PATH =3D $(XEN_ROOT)/stubdom/libs-$(MINIOS_TARGET_ARCH)/toolcore TOOLLOG_PATH =3D $(XEN_ROOT)/stubdom/libs-$(MINIOS_TARGET_ARCH)/toollog EVTCHN_PATH =3D $(XEN_ROOT)/stubdom/libs-$(MINIOS_TARGET_ARCH)/evtchn diff --git a/tools/Rules.mk b/tools/Rules.mk index f3e0078927..f61da81f4a 100644 --- a/tools/Rules.mk +++ b/tools/Rules.mk @@ -87,7 +87,7 @@ endif define LIB_defs FILENAME_$(1) ?=3D xen$(1) XEN_libxen$(1) =3D $$(XEN_ROOT)/tools/libs/$(1) - CFLAGS_libxen$(1) =3D -I$$(XEN_libxen$(1))/include $$(CFLAGS_xeninclude) + CFLAGS_libxen$(1) =3D $$(CFLAGS_xeninclude) SHDEPS_libxen$(1) =3D $$(foreach use,$$(USELIBS_$(1)),$$(SHLIB_libxen$$(u= se))) LDLIBS_libxen$(1) =3D $$(SHDEPS_libxen$(1)) $$(XEN_libxen$(1))/lib$$(FILE= NAME_$(1))$$(libextension) SHLIB_libxen$(1) =3D $$(SHDEPS_libxen$(1)) -Wl,-rpath-link=3D$$(XEN_libxe= n$(1)) @@ -97,8 +97,7 @@ $(foreach lib,$(LIBS_LIBS),$(eval $(call LIB_defs,$(lib))= )) =20 # code which compiles against libxenctrl get __XEN_TOOLS__ and # therefore sees the unstable hypercall interfaces. -CFLAGS_libxenctrl +=3D $(CFLAGS_libxentoollog) $(CFLAGS_libxenforeignmemor= y) $(CFLAGS_libxendevicemodel) -D__XEN_TOOLS__ -CFLAGS_libxenguest +=3D $(CFLAGS_libxenevtchn) $(CFLAGS_libxenforeignmemor= y) +CFLAGS_libxenctrl +=3D -D__XEN_TOOLS__ =20 ifeq ($(CONFIG_Linux),y) LDLIBS_libxenstore +=3D -ldl diff --git a/tools/include/Makefile b/tools/include/Makefile index 4d4313b60d..4d4ec5f974 100644 --- a/tools/include/Makefile +++ b/tools/include/Makefile @@ -1,6 +1,12 @@ XEN_ROOT =3D $(CURDIR)/../.. include $(XEN_ROOT)/tools/Rules.mk =20 +# Caution: some tools/libs/*/Makefile generate header files directly in +# tools/include, and they do the [un]install actions for those, too. +# In case other headers need to be built cwin tools/include this should be +# taken into account, i.e. there should be no rules added here for generat= ing +# any tools/include/*.h files. + # Relative to $(XEN_ROOT)/xen/xsm/flask FLASK_H_DEPEND :=3D policy/initial_sids =20 diff --git a/tools/libs/vchan/include/libxenvchan.h b/tools/include/libxenv= chan.h similarity index 100% rename from tools/libs/vchan/include/libxenvchan.h rename to tools/include/libxenvchan.h diff --git a/tools/libs/light/include/libxl.h b/tools/include/libxl.h similarity index 100% rename from tools/libs/light/include/libxl.h rename to tools/include/libxl.h diff --git a/tools/libs/light/include/libxl_event.h b/tools/include/libxl_e= vent.h similarity index 100% rename from tools/libs/light/include/libxl_event.h rename to tools/include/libxl_event.h diff --git a/tools/libs/light/include/libxl_json.h b/tools/include/libxl_js= on.h similarity index 100% rename from tools/libs/light/include/libxl_json.h rename to tools/include/libxl_json.h diff --git a/tools/libs/light/include/libxl_utils.h b/tools/include/libxl_u= tils.h similarity index 100% rename from tools/libs/light/include/libxl_utils.h rename to tools/include/libxl_utils.h diff --git a/tools/libs/light/include/libxl_uuid.h b/tools/include/libxl_uu= id.h similarity index 100% rename from tools/libs/light/include/libxl_uuid.h rename to tools/include/libxl_uuid.h diff --git a/tools/libs/util/include/libxlutil.h b/tools/include/libxlutil.h similarity index 100% rename from tools/libs/util/include/libxlutil.h rename to tools/include/libxlutil.h diff --git a/tools/libs/call/include/xencall.h b/tools/include/xencall.h similarity index 100% rename from tools/libs/call/include/xencall.h rename to tools/include/xencall.h diff --git a/tools/libs/ctrl/include/xenctrl.h b/tools/include/xenctrl.h similarity index 100% rename from tools/libs/ctrl/include/xenctrl.h rename to tools/include/xenctrl.h diff --git a/tools/libs/ctrl/include/xenctrl_compat.h b/tools/include/xenct= rl_compat.h similarity index 100% rename from tools/libs/ctrl/include/xenctrl_compat.h rename to tools/include/xenctrl_compat.h diff --git a/tools/libs/devicemodel/include/xendevicemodel.h b/tools/includ= e/xendevicemodel.h similarity index 100% rename from tools/libs/devicemodel/include/xendevicemodel.h rename to tools/include/xendevicemodel.h diff --git a/tools/libs/evtchn/include/xenevtchn.h b/tools/include/xenevtch= n.h similarity index 100% rename from tools/libs/evtchn/include/xenevtchn.h rename to tools/include/xenevtchn.h diff --git a/tools/libs/foreignmemory/include/xenforeignmemory.h b/tools/in= clude/xenforeignmemory.h similarity index 100% rename from tools/libs/foreignmemory/include/xenforeignmemory.h rename to tools/include/xenforeignmemory.h diff --git a/tools/libs/gnttab/include/xengnttab.h b/tools/include/xengntta= b.h similarity index 100% rename from tools/libs/gnttab/include/xengnttab.h rename to tools/include/xengnttab.h diff --git a/tools/libs/guest/include/xenguest.h b/tools/include/xenguest.h similarity index 100% rename from tools/libs/guest/include/xenguest.h rename to tools/include/xenguest.h diff --git a/tools/libs/hypfs/include/xenhypfs.h b/tools/include/xenhypfs.h similarity index 100% rename from tools/libs/hypfs/include/xenhypfs.h rename to tools/include/xenhypfs.h diff --git a/tools/libs/stat/include/xenstat.h b/tools/include/xenstat.h similarity index 100% rename from tools/libs/stat/include/xenstat.h rename to tools/include/xenstat.h diff --git a/tools/libs/store/include/compat/xs.h b/tools/include/xenstore-= compat/xs.h similarity index 100% rename from tools/libs/store/include/compat/xs.h rename to tools/include/xenstore-compat/xs.h diff --git a/tools/libs/store/include/compat/xs_lib.h b/tools/include/xenst= ore-compat/xs_lib.h similarity index 100% rename from tools/libs/store/include/compat/xs_lib.h rename to tools/include/xenstore-compat/xs_lib.h diff --git a/tools/libs/store/include/xenstore.h b/tools/include/xenstore.h similarity index 100% rename from tools/libs/store/include/xenstore.h rename to tools/include/xenstore.h diff --git a/tools/xenstore/xenstore_lib.h b/tools/include/xenstore_lib.h similarity index 100% rename from tools/xenstore/xenstore_lib.h rename to tools/include/xenstore_lib.h diff --git a/tools/libs/toolcore/include/xentoolcore.h b/tools/include/xent= oolcore.h similarity index 100% rename from tools/libs/toolcore/include/xentoolcore.h rename to tools/include/xentoolcore.h diff --git a/tools/libs/toolcore/include/xentoolcore_internal.h b/tools/inc= lude/xentoolcore_internal.h similarity index 100% rename from tools/libs/toolcore/include/xentoolcore_internal.h rename to tools/include/xentoolcore_internal.h diff --git a/tools/libs/toollog/include/xentoollog.h b/tools/include/xentoo= llog.h similarity index 100% rename from tools/libs/toollog/include/xentoollog.h rename to tools/include/xentoollog.h diff --git a/tools/libs/call/Makefile b/tools/libs/call/Makefile index 81c7478efd..4ed201b3b3 100644 --- a/tools/libs/call/Makefile +++ b/tools/libs/call/Makefile @@ -12,6 +12,3 @@ SRCS-$(CONFIG_NetBSD) +=3D netbsd.c SRCS-$(CONFIG_MiniOS) +=3D minios.c =20 include $(XEN_ROOT)/tools/libs/libs.mk - -$(PKG_CONFIG_LOCAL): PKG_CONFIG_INCDIR =3D $(XEN_libxencall)/include -$(PKG_CONFIG_LOCAL): PKG_CONFIG_CFLAGS_LOCAL =3D $(CFLAGS_xeninclude) diff --git a/tools/libs/ctrl/Makefile b/tools/libs/ctrl/Makefile index 0071226d2a..4185dc3f22 100644 --- a/tools/libs/ctrl/Makefile +++ b/tools/libs/ctrl/Makefile @@ -62,9 +62,6 @@ $(eval $(genpath-target)) =20 $(LIB_OBJS) $(PIC_OBJS): _paths.h =20 -$(PKG_CONFIG_LOCAL): PKG_CONFIG_INCDIR =3D $(XEN_libxenctrl)/include -$(PKG_CONFIG_LOCAL): PKG_CONFIG_CFLAGS_LOCAL =3D $(CFLAGS_xeninclude) - clean: cleanlocal =20 .PHONY: cleanlocal diff --git a/tools/libs/devicemodel/Makefile b/tools/libs/devicemodel/Makef= ile index 42417958f2..b67fc0fac1 100644 --- a/tools/libs/devicemodel/Makefile +++ b/tools/libs/devicemodel/Makefile @@ -12,6 +12,3 @@ SRCS-$(CONFIG_NetBSD) +=3D compat.c SRCS-$(CONFIG_MiniOS) +=3D compat.c =20 include $(XEN_ROOT)/tools/libs/libs.mk - -$(PKG_CONFIG_LOCAL): PKG_CONFIG_INCDIR =3D $(XEN_libxendevicemodel)/include -$(PKG_CONFIG_LOCAL): PKG_CONFIG_CFLAGS_LOCAL =3D $(CFLAGS_xeninclude) diff --git a/tools/libs/evtchn/Makefile b/tools/libs/evtchn/Makefile index aec76641e8..ad01a17b3d 100644 --- a/tools/libs/evtchn/Makefile +++ b/tools/libs/evtchn/Makefile @@ -12,5 +12,3 @@ SRCS-$(CONFIG_NetBSD) +=3D netbsd.c SRCS-$(CONFIG_MiniOS) +=3D minios.c =20 include $(XEN_ROOT)/tools/libs/libs.mk - -$(PKG_CONFIG_LOCAL): PKG_CONFIG_INCDIR =3D $(XEN_libxenevtchn)/include diff --git a/tools/libs/foreignmemory/Makefile b/tools/libs/foreignmemory/M= akefile index cf444d3c1a..13850f7988 100644 --- a/tools/libs/foreignmemory/Makefile +++ b/tools/libs/foreignmemory/Makefile @@ -12,6 +12,3 @@ SRCS-$(CONFIG_NetBSD) +=3D compat.c netbsd.c SRCS-$(CONFIG_MiniOS) +=3D minios.c =20 include $(XEN_ROOT)/tools/libs/libs.mk - -$(PKG_CONFIG_LOCAL): PKG_CONFIG_INCDIR =3D $(XEN_libxenforeignmemory)/incl= ude -$(PKG_CONFIG_LOCAL): PKG_CONFIG_CFLAGS_LOCAL =3D $(CFLAGS_xeninclude) diff --git a/tools/libs/gnttab/Makefile b/tools/libs/gnttab/Makefile index d8d4d55e27..d86c49d243 100644 --- a/tools/libs/gnttab/Makefile +++ b/tools/libs/gnttab/Makefile @@ -14,6 +14,3 @@ SRCS-$(CONFIG_SunOS) +=3D gnttab_unimp.c gntshr_unimp.c SRCS-$(CONFIG_NetBSD) +=3D gnttab_unimp.c gntshr_unimp.c =20 include $(XEN_ROOT)/tools/libs/libs.mk - -$(PKG_CONFIG_LOCAL): PKG_CONFIG_INCDIR =3D $(XEN_libxengnttab)/include -$(PKG_CONFIG_LOCAL): PKG_CONFIG_CFLAGS_LOCAL =3D $(CFLAGS_xeninclude) diff --git a/tools/libs/guest/Makefile b/tools/libs/guest/Makefile index f24732fbcd..5b4ad313cc 100644 --- a/tools/libs/guest/Makefile +++ b/tools/libs/guest/Makefile @@ -113,9 +113,6 @@ xc_private.h: _paths.h =20 $(LIB_OBJS) $(PIC_OBJS): $(LINK_FILES) =20 -$(PKG_CONFIG_LOCAL): PKG_CONFIG_INCDIR =3D $(XEN_libxenctrl)/include -$(PKG_CONFIG_LOCAL): PKG_CONFIG_CFLAGS_LOCAL =3D $(CFLAGS_xeninclude) - .PHONY: cleanlocal cleanlocal: rm -f libxenguest.map diff --git a/tools/libs/hypfs/Makefile b/tools/libs/hypfs/Makefile index 668d68853f..39feca87e8 100644 --- a/tools/libs/hypfs/Makefile +++ b/tools/libs/hypfs/Makefile @@ -9,6 +9,3 @@ APPEND_LDFLAGS +=3D -lz SRCS-y +=3D core.c =20 include ../libs.mk - -$(PKG_CONFIG_LOCAL): PKG_CONFIG_INCDIR =3D $(XEN_libxenhypfs)/include -$(PKG_CONFIG_LOCAL): PKG_CONFIG_CFLAGS_LOCAL =3D $(CFLAGS_xeninclude) diff --git a/tools/libs/libs.mk b/tools/libs/libs.mk index 325b7b7cea..959ff91a56 100644 --- a/tools/libs/libs.mk +++ b/tools/libs/libs.mk @@ -47,10 +47,10 @@ endif PKG_CONFIG_LOCAL :=3D $(PKG_CONFIG_DIR)/$(PKG_CONFIG) =20 LIBHEADER ?=3D $(LIB_FILE_NAME).h -LIBHEADERS =3D $(foreach h, $(LIBHEADER), include/$(h)) -LIBHEADERSGLOB =3D $(foreach h, $(LIBHEADER), $(XEN_ROOT)/tools/include/$(= h)) +LIBHEADERS =3D $(foreach h, $(LIBHEADER), $(XEN_INCLUDE)/$(h)) =20 $(PKG_CONFIG_LOCAL): PKG_CONFIG_PREFIX =3D $(XEN_ROOT) +$(PKG_CONFIG_LOCAL): PKG_CONFIG_INCDIR =3D $(XEN_INCLUDE) $(PKG_CONFIG_LOCAL): PKG_CONFIG_LIBDIR =3D $(CURDIR) =20 .PHONY: all @@ -74,14 +74,11 @@ else .PHONY: headers.chk endif =20 -headers.chk: $(LIBHEADERSGLOB) $(AUTOINCS) +headers.chk: $(AUTOINCS) =20 libxen$(LIBNAME).map: echo 'VERS_$(MAJOR).$(MINOR) { global: *; };' >$@ =20 -$(LIBHEADERSGLOB): $(LIBHEADERS) - for i in $(realpath $(LIBHEADERS)); do ln -sf $$i $(XEN_ROOT)/tools/inclu= de; done - lib$(LIB_FILE_NAME).a: $(LIB_OBJS) $(AR) rc $@ $^ =20 @@ -123,7 +120,6 @@ clean: rm -f lib$(LIB_FILE_NAME).so.$(MAJOR).$(MINOR) lib$(LIB_FILE_NAME).so.$(M= AJOR) rm -f headers.chk rm -f $(PKG_CONFIG) - rm -f $(LIBHEADERSGLOB) rm -f _paths.h =20 .PHONY: distclean diff --git a/tools/libs/light/Makefile b/tools/libs/light/Makefile index f58a3214e5..3424fdb61b 100644 --- a/tools/libs/light/Makefile +++ b/tools/libs/light/Makefile @@ -152,7 +152,7 @@ LIBXL_TEST_OBJS +=3D $(foreach t, $(LIBXL_TESTS_INSIDE)= ,libxl_test_$t.opic) TEST_PROG_OBJS +=3D $(foreach t, $(LIBXL_TESTS_PROGS),test_$t.o) test_comm= on.o TEST_PROGS +=3D $(foreach t, $(LIBXL_TESTS_PROGS),test_$t) =20 -AUTOINCS =3D _libxl_list.h _paths.h _libxl_save_msgs_callout.h _libxl_save= _msgs_helper.h +AUTOINCS =3D $(XEN_INCLUDE)/_libxl_list.h _paths.h _libxl_save_msgs_callou= t.h _libxl_save_msgs_helper.h AUTOSRCS =3D _libxl_save_msgs_callout.c _libxl_save_msgs_helper.c =20 CLIENTS =3D testidl libxl-save-helper @@ -165,9 +165,6 @@ NO_HEADERS_CHK :=3D y =20 include $(XEN_ROOT)/tools/libs/libs.mk =20 -$(PKG_CONFIG_LOCAL): PKG_CONFIG_INCDIR =3D $(CURDIR) -$(PKG_CONFIG_LOCAL): PKG_CONFIG_CFLAGS_LOCAL =3D $(CFLAGS_xeninclude) - LDUSELIBS-y +=3D $(PTYFUNCS_LIBS) LDUSELIBS-$(CONFIG_LIBNL) +=3D $(LIBNL3_LIBS) LDUSELIBS-$(CONFIG_Linux) +=3D -luuid @@ -185,7 +182,7 @@ libxl_x86_acpi.o libxl_x86_acpi.opic: CFLAGS +=3D -I$(X= EN_ROOT)/tools $(SAVE_HELPER_OBJS): CFLAGS +=3D $(CFLAGS_libxenctrl) $(CFLAGS_libxenevtch= n) $(CFLAGS_libxenguest) =20 testidl.o: CFLAGS +=3D $(CFLAGS_libxenctrl) $(CFLAGS_libxenlight) -testidl.c: libxl_types.idl gentest.py include/libxl.h $(AUTOINCS) +testidl.c: libxl_types.idl gentest.py $(XEN_INCLUDE)/libxl.h $(AUTOINCS) $(PYTHON) gentest.py libxl_types.idl testidl.c.new mv testidl.c.new testidl.c =20 @@ -200,15 +197,15 @@ libxl.api-ok: check-libxl-api-rules _libxl.api-for-ch= eck $(PERL) $^ touch $@ =20 -_%.api-for-check: include/%.h $(AUTOINCS) - $(CC) $(CPPFLAGS) $(CFLAGS) $(CFLAGS_$*.o) -c -E $< $(APPEND_CFLAGS) \ +_libxl.api-for-check: $(XEN_INCLUDE)/libxl.h $(AUTOINCS) + $(CC) $(CPPFLAGS) $(CFLAGS) $(CFLAGS_libxl.o) -c -E $< $(APPEND_CFLAGS) \ -DLIBXL_EXTERNAL_CALLERS_ONLY=3DLIBXL_EXTERNAL_CALLERS_ONLY \ >$@.new mv -f $@.new $@ =20 -_libxl_list.h: $(XEN_INCLUDE)/xen-external/bsd-sys-queue-h-seddery $(XEN_I= NCLUDE)/xen-external/bsd-sys-queue.h - $(PERL) $^ --prefix=3Dlibxl >$@.new - $(call move-if-changed,$@.new,$@) +$(XEN_INCLUDE)/_libxl_list.h: $(XEN_INCLUDE)/xen-external/bsd-sys-queue-h-= seddery $(XEN_INCLUDE)/xen-external/bsd-sys-queue.h + $(PERL) $^ --prefix=3Dlibxl >$(notdir $@).new + $(call move-if-changed,$(notdir $@).new,$@) =20 _libxl_save_msgs_helper.c _libxl_save_msgs_callout.c \ _libxl_save_msgs_helper.h _libxl_save_msgs_callout.h: \ @@ -216,13 +213,13 @@ _libxl_save_msgs_helper.h _libxl_save_msgs_callout.h:= \ $(PERL) -w $< $@ >$@.new $(call move-if-changed,$@.new,$@) =20 -include/libxl.h: _libxl_types.h _libxl_list.h -include/libxl_json.h: _libxl_types_json.h +$(XEN_INCLUDE)/libxl.h: $(XEN_INCLUDE)/_libxl_types.h $(XEN_INCLUDE)/_libx= l_list.h +$(XEN_INCLUDE)/libxl_json.h: $(XEN_INCLUDE)/_libxl_types_json.h libxl_internal.h: _libxl_types_internal.h _libxl_types_private.h _libxl_ty= pes_internal_private.h _paths.h libxl_internal_json.h: _libxl_types_internal_json.h xl.h: _paths.h =20 -$(LIB_OBJS) $(PIC_OBJS) $(LIBXL_TEST_OBJS) $(TEST_PROG_OBJS) $(SAVE_HELPER= _OBJS): include/libxl.h +$(LIB_OBJS) $(PIC_OBJS) $(LIBXL_TEST_OBJS) $(TEST_PROG_OBJS) $(SAVE_HELPER= _OBJS): $(XEN_INCLUDE)/libxl.h $(LIB_OBJS) $(PIC_OBJS) $(LIBXL_TEST_OBJS): libxl_internal.h =20 _libxl_type%.h _libxl_type%_json.h _libxl_type%_private.h _libxl_type%.c: = libxl_type%.idl gentypes.py idl.py @@ -234,8 +231,8 @@ _libxl_type%.h _libxl_type%_json.h _libxl_type%_private= .h _libxl_type%.c: libxl_ $(call move-if-changed,__libxl_type$(stem)_json.h,_libxl_type$(stem)_json= .h) $(call move-if-changed,__libxl_type$(stem).c,_libxl_type$(stem).c) =20 -include/_%.h: _%.h - cp $< $@ +$(XEN_INCLUDE)/_%.h: _%.h + $(call move-if-changed,_$*.h,$(XEN_INCLUDE)/_$*.h) =20 libxenlight_test.so: $(PIC_OBJS) $(LIBXL_TEST_OBJS) $(CC) $(LDFLAGS) -Wl,$(SONAME_LDFLAG) -Wl,libxenlight.so.$(MAJOR) $(SHLIB= _LDFLAGS) -o $@ $^ $(LDUSELIBS) $(APPEND_LDFLAGS) @@ -271,7 +268,6 @@ cleanlocal: $(RM) -f testidl.c.new testidl.c *.api-ok $(RM) -f $(TEST_PROGS) $(RM) -rf __pycache__ - $(RM) -f include/_*.h $(RM) -f libxenlight.map $(RM) -f $(AUTOSRCS) $(AUTOINCS) $(MAKE) -C $(ACPI_PATH) ACPI_BUILD_DIR=3D$(CURDIR) clean diff --git a/tools/libs/stat/Makefile b/tools/libs/stat/Makefile index 5463f5f7ca..8353e96946 100644 --- a/tools/libs/stat/Makefile +++ b/tools/libs/stat/Makefile @@ -30,8 +30,6 @@ APPEND_LDFLAGS +=3D $(LDLIBS-y) =20 include $(XEN_ROOT)/tools/libs/libs.mk =20 -$(PKG_CONFIG_LOCAL): PKG_CONFIG_INCDIR =3D $(XEN_libxenstat)/include - $(LIB_OBJS): _paths.h =20 PYLIB=3Dbindings/swig/python/_xenstat.so diff --git a/tools/libs/store/Makefile b/tools/libs/store/Makefile index 4da502646e..930e763de9 100644 --- a/tools/libs/store/Makefile +++ b/tools/libs/store/Makefile @@ -21,12 +21,12 @@ CFLAGS +=3D $(CFLAGS_libxentoolcore) CFLAGS +=3D -DXEN_LIB_STORED=3D"\"$(XEN_LIB_STORED)\"" CFLAGS +=3D -DXEN_RUN_STORED=3D"\"$(XEN_RUN_STORED)\"" =20 -LINK_FILES =3D xs_lib.c include/xenstore_lib.h list.h utils.h +LINK_FILES =3D xs_lib.c list.h utils.h =20 $(LIB_OBJS): $(LINK_FILES) =20 $(LINK_FILES): - ln -sf $(XEN_ROOT)/tools/xenstore/$(notdir $@) $@ + ln -sf $(XEN_ROOT)/tools/xenstore/$@ $@ =20 xs.opic: CFLAGS +=3D -DUSE_PTHREAD ifeq ($(CONFIG_Linux),y) @@ -35,9 +35,6 @@ else PKG_CONFIG_REMOVE +=3D -ldl endif =20 -$(PKG_CONFIG_LOCAL): PKG_CONFIG_INCDIR =3D $(XEN_libxenstore)/include -$(PKG_CONFIG_LOCAL): PKG_CONFIG_CFLAGS_LOCAL =3D $(CFLAGS_xeninclude) - .PHONY: install install: install-headers =20 @@ -45,8 +42,8 @@ install: install-headers install-headers: $(INSTALL_DIR) $(DESTDIR)$(includedir) $(INSTALL_DIR) $(DESTDIR)$(includedir)/xenstore-compat - $(INSTALL_DATA) include/compat/xs.h $(DESTDIR)$(includedir)/xenstore-comp= at/xs.h - $(INSTALL_DATA) include/compat/xs_lib.h $(DESTDIR)$(includedir)/xenstore-= compat/xs_lib.h + $(INSTALL_DATA) $(XEN_INCLUDE)/xenstore-compat/xs.h $(DESTDIR)$(includedi= r)/xenstore-compat/xs.h + $(INSTALL_DATA) $(XEN_INCLUDE)/xenstore-compat/xs_lib.h $(DESTDIR)$(inclu= dedir)/xenstore-compat/xs_lib.h ln -sf xenstore-compat/xs.h $(DESTDIR)$(includedir)/xs.h ln -sf xenstore-compat/xs_lib.h $(DESTDIR)$(includedir)/xs_lib.h =20 diff --git a/tools/libs/toolcore/Makefile b/tools/libs/toolcore/Makefile index 5819bbc8ee..1cf30733c9 100644 --- a/tools/libs/toolcore/Makefile +++ b/tools/libs/toolcore/Makefile @@ -3,18 +3,17 @@ include $(XEN_ROOT)/tools/Rules.mk =20 MAJOR =3D 1 MINOR =3D 0 -AUTOINCS :=3D include/_xentoolcore_list.h +AUTOINCS :=3D $(XEN_INCLUDE)/_xentoolcore_list.h =20 SRCS-y +=3D handlereg.c =20 include $(XEN_ROOT)/tools/libs/libs.mk =20 PKG_CONFIG_DESC :=3D Central support for Xen Hypervisor userland libraries -$(PKG_CONFIG_LOCAL): PKG_CONFIG_INCDIR =3D $(XEN_libxentoolcore)/include =20 $(LIB_OBJS): $(AUTOINCS) $(PIC_OBJS): $(AUTOINCS) =20 -include/_xentoolcore_list.h: $(XEN_INCLUDE)/xen-external/bsd-sys-queue-h-s= eddery $(XEN_INCLUDE)/xen-external/bsd-sys-queue.h - $(PERL) $^ --prefix=3Dxentoolcore >$@.new - $(call move-if-changed,$@.new,$@) +$(XEN_INCLUDE)/_xentoolcore_list.h: $(XEN_INCLUDE)/xen-external/bsd-sys-qu= eue-h-seddery $(XEN_INCLUDE)/xen-external/bsd-sys-queue.h + $(PERL) $^ --prefix=3Dxentoolcore >$(notdir $@).new + $(call move-if-changed,$(notdir $@).new,$@) diff --git a/tools/libs/toollog/Makefile b/tools/libs/toollog/Makefile index 3f986835d6..dce1b2de85 100644 --- a/tools/libs/toollog/Makefile +++ b/tools/libs/toollog/Makefile @@ -8,5 +8,3 @@ SRCS-y +=3D xtl_core.c SRCS-y +=3D xtl_logger_stdio.c =20 include $(XEN_ROOT)/tools/libs/libs.mk - -$(PKG_CONFIG_LOCAL): PKG_CONFIG_INCDIR =3D $(XEN_libxentoollog)/include diff --git a/tools/libs/util/Makefile b/tools/libs/util/Makefile index 0c9db8027d..b739360be7 100644 --- a/tools/libs/util/Makefile +++ b/tools/libs/util/Makefile @@ -39,9 +39,6 @@ NO_HEADERS_CHK :=3D y =20 include $(XEN_ROOT)/tools/libs/libs.mk =20 -$(PKG_CONFIG_LOCAL): PKG_CONFIG_INCDIR =3D $(XEN_libxenutil)/include -$(PKG_CONFIG_LOCAL): PKG_CONFIG_CFLAGS_LOCAL =3D $(CFLAGS_xeninclude) - $(LIB_OBJS) $(PIC_OBJS): $(AUTOINCS) _paths.h =20 %.c %.h:: %.y diff --git a/tools/libs/vchan/Makefile b/tools/libs/vchan/Makefile index 5e18d5b196..83a45d2817 100644 --- a/tools/libs/vchan/Makefile +++ b/tools/libs/vchan/Makefile @@ -12,9 +12,6 @@ NO_HEADERS_CHK :=3D y =20 include $(XEN_ROOT)/tools/libs/libs.mk =20 -$(PKG_CONFIG_LOCAL): PKG_CONFIG_INCDIR =3D $(XEN_libxenvchan)/include -$(PKG_CONFIG_LOCAL): PKG_CONFIG_CFLAGS_LOCAL =3D $(CFLAGS_xeninclude) - clean: cleanlocal =20 .PHONY: cleanlocal diff --git a/tools/ocaml/libs/xentoollog/Makefile b/tools/ocaml/libs/xentoo= llog/Makefile index 8ae0a784fd..593f9e9e9d 100644 --- a/tools/ocaml/libs/xentoollog/Makefile +++ b/tools/ocaml/libs/xentoollog/Makefile @@ -49,7 +49,7 @@ xentoollog.mli: xentoollog.mli.in _xtl_levels.mli.in =20 libs: $(LIBS) =20 -_xtl_levels.ml.in _xtl_levels.mli.in _xtl_levels.inc: genlevels.py $(XEN_R= OOT)/tools/libs/toollog/include/xentoollog.h +_xtl_levels.ml.in _xtl_levels.mli.in _xtl_levels.inc: genlevels.py $(XEN_I= NCLUDE)/xentoollog.h $(PYTHON) genlevels.py _xtl_levels.mli.in _xtl_levels.ml.in _xtl_levels.i= nc =20 .PHONY: install diff --git a/tools/ocaml/libs/xentoollog/genlevels.py b/tools/ocaml/libs/xe= ntoollog/genlevels.py index f9cf853e26..11a623e459 100755 --- a/tools/ocaml/libs/xentoollog/genlevels.py +++ b/tools/ocaml/libs/xentoollog/genlevels.py @@ -6,7 +6,7 @@ import sys from functools import reduce =20 def read_levels(): - f =3D open('../../../libs/toollog/include/xentoollog.h', 'r') + f =3D open('../../../include/xentoollog.h', 'r') =20 levels =3D [] record =3D False --=20 2.26.2 From nobody Fri May 3 13:02:12 2024 Delivered-To: importer@patchew.org Received-SPF: pass (zohomail.com: domain of lists.xenproject.org designates 192.237.175.120 as permitted sender) client-ip=192.237.175.120; envelope-from=xen-devel-bounces@lists.xenproject.org; helo=lists.xenproject.org; Authentication-Results: mx.zohomail.com; dkim=pass; spf=pass (zohomail.com: domain of lists.xenproject.org designates 192.237.175.120 as permitted sender) smtp.mailfrom=xen-devel-bounces@lists.xenproject.org; dmarc=pass(p=none dis=none) header.from=suse.com ARC-Seal: i=1; a=rsa-sha256; t=1603462810; cv=none; d=zohomail.com; s=zohoarc; b=B2+IZ22moHB2WAeWH3YQeTTEglHfHCK1uoJIByCjSFANaqBRFtLC6lKuHuaj4JQk/hTapUGUXxnMm/bCrs58ognTCu9ZmH98MQx2Djw5PbzNFoHB5yFdnWUVEhRZX6Bc2ARV5RcUNgEWVlM5GrWhLHxWI4hrb1Np01GNem2Lcto= ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=zohomail.com; s=zohoarc; t=1603462810; h=Content-Transfer-Encoding:Cc:Date:From:In-Reply-To:List-Subscribe:List-Post:List-Id:List-Help:List-Unsubscribe:MIME-Version:Message-ID:References:Sender:Subject:To; bh=hnG6mBS9gSVm05A1WvJ2mFbfRf9HUb0Klxqf2yEGtiU=; b=HkWflXiulQbvw8kBI2HqTjwFT5Skev5V5XnjbwMxfrLd5PLwCsYnqfq6DL8w64s+8mvByfBqFAzxS3YGcnPdqEoKfp5FFQdPkhX4lg06OvL64RLi06KxozS6QLe93kB/H2fKzF2CjpoiRzeqDqg+D3/Q7heUcxoxvxYJ/CGWMJs= ARC-Authentication-Results: i=1; mx.zohomail.com; dkim=pass; spf=pass (zohomail.com: domain of lists.xenproject.org designates 192.237.175.120 as permitted sender) smtp.mailfrom=xen-devel-bounces@lists.xenproject.org; dmarc=pass header.from= (p=none dis=none) header.from= Return-Path: Received: from lists.xenproject.org (lists.xenproject.org [192.237.175.120]) by mx.zohomail.com with SMTPS id 1603462810536963.1614374990145; Fri, 23 Oct 2020 07:20:10 -0700 (PDT) Received: from list by lists.xenproject.org with outflank-mailman.11015.29253 (Exim 4.92) (envelope-from ) id 1kVxuz-0000q5-10; Fri, 23 Oct 2020 14:19:45 +0000 Received: by outflank-mailman (output) from mailman id 11015.29253; Fri, 23 Oct 2020 14:19:44 +0000 Received: from localhost ([127.0.0.1] helo=lists.xenproject.org) by lists.xenproject.org with esmtp (Exim 4.92) (envelope-from ) id 1kVxuy-0000pw-Tv; Fri, 23 Oct 2020 14:19:44 +0000 Received: by outflank-mailman (input) for mailman id 11015; Fri, 23 Oct 2020 14:19:43 +0000 Received: from us1-rack-iad1.inumbo.com ([172.99.69.81]) by lists.xenproject.org with esmtp (Exim 4.92) (envelope-from ) id 1kVxux-0000me-Li for xen-devel@lists.xenproject.org; Fri, 23 Oct 2020 14:19:43 +0000 Received: from mx2.suse.de (unknown [195.135.220.15]) by us1-rack-iad1.inumbo.com (Halon) with ESMTPS id e36debdc-7f34-4275-b6a0-68932db8629c; Fri, 23 Oct 2020 14:19:38 +0000 (UTC) Received: from relay2.suse.de (unknown [195.135.221.27]) by mx2.suse.de (Postfix) with ESMTP id 51A85B2AE; Fri, 23 Oct 2020 14:19:37 +0000 (UTC) Received: from us1-rack-iad1.inumbo.com ([172.99.69.81]) by lists.xenproject.org with esmtp (Exim 4.92) (envelope-from ) id 1kVxux-0000me-Li for xen-devel@lists.xenproject.org; Fri, 23 Oct 2020 14:19:43 +0000 Received: from mx2.suse.de (unknown [195.135.220.15]) by us1-rack-iad1.inumbo.com (Halon) with ESMTPS id e36debdc-7f34-4275-b6a0-68932db8629c; Fri, 23 Oct 2020 14:19:38 +0000 (UTC) Received: from relay2.suse.de (unknown [195.135.221.27]) by mx2.suse.de (Postfix) with ESMTP id 51A85B2AE; Fri, 23 Oct 2020 14:19:37 +0000 (UTC) X-Outflank-Mailman: Message body and most headers restored to incoming version X-BeenThere: xen-devel@lists.xenproject.org List-Id: Xen developer discussion List-Unsubscribe: , List-Post: List-Help: List-Subscribe: , Errors-To: xen-devel-bounces@lists.xenproject.org Precedence: list Sender: "Xen-devel" X-Inumbo-ID: e36debdc-7f34-4275-b6a0-68932db8629c X-Virus-Scanned: by amavisd-new at test-mx.suse.de DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=suse.com; s=susede1; t=1603462777; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=hnG6mBS9gSVm05A1WvJ2mFbfRf9HUb0Klxqf2yEGtiU=; b=VOpIkOShAiYoVQ1Z1LvjYBSS54URrWcvP2/Reabmd31f6qX9kAni+cmJZQfeadW3yIMAHQ 9YqLBIApz9GgEoetRJpQWmYURjUzbwrDujymf2OOFVaXTfmf3JF7ASqz6uVJMAlR4sWab0 VQnBclxUxEvJfUNiN2r22dTu/ksXQ0Q= From: Juergen Gross To: xen-devel@lists.xenproject.org Cc: Juergen Gross , Ian Jackson , Wei Liu , Christian Lindig , Bertrand Marquis Subject: [PATCH v2 2/3] tools/libs/guest: don't use symbolic links for xenctrl headers Date: Fri, 23 Oct 2020 16:19:33 +0200 Message-Id: <20201023141934.20062-3-jgross@suse.com> X-Mailer: git-send-email 2.26.2 In-Reply-To: <20201023141934.20062-1-jgross@suse.com> References: <20201023141934.20062-1-jgross@suse.com> MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable X-ZohoMail-DKIM: pass (identity @suse.com) Content-Type: text/plain; charset="utf-8" Instead of using symbolic links for accessing the xenctrl private headers use an include path instead. Signed-off-by: Juergen Gross Acked-by: Christian Lindig Tested-by: Bertrand Marquis --- tools/libs/guest/Makefile | 9 ++------- 1 file changed, 2 insertions(+), 7 deletions(-) diff --git a/tools/libs/guest/Makefile b/tools/libs/guest/Makefile index 5b4ad313cc..1c729040b3 100644 --- a/tools/libs/guest/Makefile +++ b/tools/libs/guest/Makefile @@ -6,11 +6,6 @@ ifeq ($(CONFIG_LIBXC_MINIOS),y) override CONFIG_MIGRATE :=3D n endif =20 -LINK_FILES :=3D xc_private.h xc_core.h xc_core_x86.h xc_core_arm.h xc_bito= ps.h - -$(LINK_FILES): - ln -sf $(XEN_ROOT)/tools/libs/ctrl/$(notdir $@) $@ - SRCS-y +=3D xg_private.c SRCS-y +=3D xg_domain.c SRCS-y +=3D xg_suspend.c @@ -29,6 +24,8 @@ else SRCS-y +=3D xg_nomigrate.c endif =20 +CFLAGS +=3D -I$(XEN_libxenctrl) + vpath %.c ../../../xen/common/libelf CFLAGS +=3D -I../../../xen/common/libelf =20 @@ -111,8 +108,6 @@ $(eval $(genpath-target)) =20 xc_private.h: _paths.h =20 -$(LIB_OBJS) $(PIC_OBJS): $(LINK_FILES) - .PHONY: cleanlocal cleanlocal: rm -f libxenguest.map --=20 2.26.2 From nobody Fri May 3 13:02:12 2024 Delivered-To: importer@patchew.org Received-SPF: pass (zohomail.com: domain of lists.xenproject.org designates 192.237.175.120 as permitted sender) client-ip=192.237.175.120; envelope-from=xen-devel-bounces@lists.xenproject.org; helo=lists.xenproject.org; Authentication-Results: mx.zohomail.com; dkim=pass; spf=pass (zohomail.com: domain of lists.xenproject.org designates 192.237.175.120 as permitted sender) smtp.mailfrom=xen-devel-bounces@lists.xenproject.org; dmarc=pass(p=none dis=none) header.from=suse.com ARC-Seal: i=1; a=rsa-sha256; t=1603462817; cv=none; d=zohomail.com; s=zohoarc; b=ZomGM0t2OmCaZlQ3w6PLo5DuryDBMfRE7hu+q5GNoZxWOoOVUu3zuJgkV2vmZu+EM7cFIKJr4GJ52xGhaFBoZ6FeCN6TWqZ/U58TWoyRkD33Sow2cvL6Tf43UZJdLVhSdH9PMghs9Y99ubqxvAw3Opxi1pCdGupHQmVyT4XffhI= ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=zohomail.com; s=zohoarc; t=1603462817; h=Content-Transfer-Encoding:Cc:Date:From:In-Reply-To:List-Subscribe:List-Post:List-Id:List-Help:List-Unsubscribe:MIME-Version:Message-ID:References:Sender:Subject:To; bh=bpbKlAusw8M3iIDqGNsPUH+GZlGUA08Dg8QDzb3c4FQ=; b=Y2nXNrRuTrwRlgaBfu72xZdktcx2WCFj1/ZClW+ekG4fow0whO/IdEv93EM4Bsd31BXBcP547hGUfXMlWSvuCabNGyOPp6uGhqqmQXZ7t0J9fHLvm/ejE9dMxj+THx7cf04gEC/gChDK3l77+xWUjmi8Id69vOteHzsE2BEb5nI= ARC-Authentication-Results: i=1; mx.zohomail.com; dkim=pass; spf=pass (zohomail.com: domain of lists.xenproject.org designates 192.237.175.120 as permitted sender) smtp.mailfrom=xen-devel-bounces@lists.xenproject.org; dmarc=pass header.from= (p=none dis=none) header.from= Return-Path: Received: from lists.xenproject.org (lists.xenproject.org [192.237.175.120]) by mx.zohomail.com with SMTPS id 1603462817794233.86997065864693; Fri, 23 Oct 2020 07:20:17 -0700 (PDT) Received: from list by lists.xenproject.org with outflank-mailman.11016.29265 (Exim 4.92) (envelope-from ) id 1kVxv4-0000ud-9h; Fri, 23 Oct 2020 14:19:50 +0000 Received: by outflank-mailman (output) from mailman id 11016.29265; Fri, 23 Oct 2020 14:19:50 +0000 Received: from localhost ([127.0.0.1] helo=lists.xenproject.org) by lists.xenproject.org with esmtp (Exim 4.92) (envelope-from ) id 1kVxv4-0000uW-6Y; Fri, 23 Oct 2020 14:19:50 +0000 Received: by outflank-mailman (input) for mailman id 11016; Fri, 23 Oct 2020 14:19:48 +0000 Received: from us1-rack-iad1.inumbo.com ([172.99.69.81]) by lists.xenproject.org with esmtp (Exim 4.92) (envelope-from ) id 1kVxv2-0000me-Lx for xen-devel@lists.xenproject.org; Fri, 23 Oct 2020 14:19:48 +0000 Received: from mx2.suse.de (unknown [195.135.220.15]) by us1-rack-iad1.inumbo.com (Halon) with ESMTPS id 1913b86f-e79a-4782-aa59-63cfb60638e9; Fri, 23 Oct 2020 14:19:38 +0000 (UTC) Received: from relay2.suse.de (unknown [195.135.221.27]) by mx2.suse.de (Postfix) with ESMTP id 7F4C2B2B0; Fri, 23 Oct 2020 14:19:37 +0000 (UTC) Received: from us1-rack-iad1.inumbo.com ([172.99.69.81]) by lists.xenproject.org with esmtp (Exim 4.92) (envelope-from ) id 1kVxv2-0000me-Lx for xen-devel@lists.xenproject.org; Fri, 23 Oct 2020 14:19:48 +0000 Received: from mx2.suse.de (unknown [195.135.220.15]) by us1-rack-iad1.inumbo.com (Halon) with ESMTPS id 1913b86f-e79a-4782-aa59-63cfb60638e9; Fri, 23 Oct 2020 14:19:38 +0000 (UTC) Received: from relay2.suse.de (unknown [195.135.221.27]) by mx2.suse.de (Postfix) with ESMTP id 7F4C2B2B0; Fri, 23 Oct 2020 14:19:37 +0000 (UTC) X-Outflank-Mailman: Message body and most headers restored to incoming version X-BeenThere: xen-devel@lists.xenproject.org List-Id: Xen developer discussion List-Unsubscribe: , List-Post: List-Help: List-Subscribe: , Errors-To: xen-devel-bounces@lists.xenproject.org Precedence: list Sender: "Xen-devel" X-Inumbo-ID: 1913b86f-e79a-4782-aa59-63cfb60638e9 X-Virus-Scanned: by amavisd-new at test-mx.suse.de DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=suse.com; s=susede1; t=1603462777; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=bpbKlAusw8M3iIDqGNsPUH+GZlGUA08Dg8QDzb3c4FQ=; b=PRNm5DbdDC2YY7W6D25UhZWCQG09mMtqjfr2R1uLjAIkh8IVVobCZjtNLxlTbw8nMYdvw4 xJ4p25F/Yr/Uzw04O5xvFdEy1JbGUV5WvOCQUcqfcH1H8hyEvVLiPyQoN4fsjVC08MoU2S tpUEaAD0+SixDAuNJsYuo8LSK4mcvKk= From: Juergen Gross To: xen-devel@lists.xenproject.org Cc: Juergen Gross , Ian Jackson , Wei Liu , Christian Lindig , Bertrand Marquis Subject: [PATCH v2 3/3] tools/libs/store: don't use symbolic links for external files Date: Fri, 23 Oct 2020 16:19:34 +0200 Message-Id: <20201023141934.20062-4-jgross@suse.com> X-Mailer: git-send-email 2.26.2 In-Reply-To: <20201023141934.20062-1-jgross@suse.com> References: <20201023141934.20062-1-jgross@suse.com> MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable X-ZohoMail-DKIM: pass (identity @suse.com) Content-Type: text/plain; charset="utf-8" Instead of using symbolic links to include files from xenstored use the vpath directive and an include path. Signed-off-by: Juergen Gross Acked-by: Christian Lindig Tested-by: Bertrand Marquis --- tools/libs/store/Makefile | 8 ++------ 1 file changed, 2 insertions(+), 6 deletions(-) diff --git a/tools/libs/store/Makefile b/tools/libs/store/Makefile index 930e763de9..bc89b9cd70 100644 --- a/tools/libs/store/Makefile +++ b/tools/libs/store/Makefile @@ -21,12 +21,8 @@ CFLAGS +=3D $(CFLAGS_libxentoolcore) CFLAGS +=3D -DXEN_LIB_STORED=3D"\"$(XEN_LIB_STORED)\"" CFLAGS +=3D -DXEN_RUN_STORED=3D"\"$(XEN_RUN_STORED)\"" =20 -LINK_FILES =3D xs_lib.c list.h utils.h - -$(LIB_OBJS): $(LINK_FILES) - -$(LINK_FILES): - ln -sf $(XEN_ROOT)/tools/xenstore/$@ $@ +vpath xs_lib.c $(XEN_ROOT)/tools/xenstore +CFLAGS +=3D -I $(XEN_ROOT)/tools/xenstore =20 xs.opic: CFLAGS +=3D -DUSE_PTHREAD ifeq ($(CONFIG_Linux),y) --=20 2.26.2