tools: provide pkg-config files for all libs
cover tools: provide pkg-config files for all libs
To help consumers of the Xen libraries (e.g. qemu) to use correct flags when building provide pkg-config files for all libraries of Xen.
The first 2 patches correct some flags used by the Xen internal build system. The build process wasn't producing wrong results, but this was just pure luck as no flags were missing when building some libraries, but they came partially from other variables then they were meant to.
Patches 3 and 4 set the stage for generating the pkg-config files.
The rest of the patches are one for each directory where at least one library is being built. Especially patch 16 is modifying the way the already existing pkg-config files for libxenlight and libxlutil are being built to fit into the new scheme.
Even if not necessary right now I have added stubdom support for all libraries, not only the ones which are really used in stubdom environment.
Juergen Gross (16):
tools: fix typo in tools/Rules.mk
tools: add missing library flag definitions
tools,stubdom: set PKG_CONFIG_DIR in main Makefiles
tools: add support for additional items in .pc files for local builds
tools: provide pkg-config file for libxentoollog
tools: provide pkg-config file for libxenevtchn
tools: provide pkg-config file for libxengnttab
tools: provide pkg-config file for libxencall
tools: provide pkg-config file for libxenforeignmemory
tools: provide pkg-config file for libxendevicemodel
tools: provide pkg-config file for libxenguest, update the one for
libxenctrl
tools: provide pkg-config file for libxenstore
tools: provide pkg-config file for libxenstat
tools: provide pkg-config file for libxenvchan
tools: provide pkg-config file for libxenblktapctl
tools: adapt xenlight.pc and xlutil.pc to new pkg-config scheme
.gitignore | 12 ++++++- stubdom/Makefile | 1 + tools/Makefile | 3 ++ tools/Rules.mk | 43 ++++++++++++++++--------- tools/blktap2/control/Makefile | 23 +++++++++++-- tools/blktap2/control/xenblktapctl.pc.in | 9 ++++++ tools/configure | 4 +-- tools/configure.ac | 2 -- tools/libs/call/Makefile | 21 +++++++++++- tools/libs/call/xencall.pc.in | 10 ++++++ tools/libs/devicemodel/Makefile | 21 +++++++++++- tools/libs/devicemodel/xendevicemodel.pc.in | 10 ++++++ tools/libs/evtchn/Makefile | 20 +++++++++++- tools/libs/evtchn/xenevtchn.pc.in | 10 ++++++ tools/libs/foreignmemory/Makefile | 21 +++++++++++- tools/libs/foreignmemory/xenforeignmemory.pc.in | 10 ++++++ tools/libs/gnttab/Makefile | 22 ++++++++++++- tools/libs/gnttab/xengntshr.pc.in | 8 +++++ tools/libs/gnttab/xengnttab.pc.in | 10 ++++++ tools/libs/toollog/Makefile | 20 +++++++++++- tools/libs/toollog/xentoollog.pc.in | 9 ++++++ tools/libvchan/Makefile | 21 +++++++++++- tools/libvchan/xenvchan.pc.in | 10 ++++++ tools/libxc/Makefile | 7 ++-- tools/libxc/xencontrol.pc.in | 5 +-- tools/libxc/xenguest.pc.in | 10 ++++++ tools/libxl/Makefile | 25 +++++++++++--- tools/libxl/xenlight.pc.in | 12 +++++++ tools/libxl/xenlight.pc.in.in | 11 ------- tools/libxl/xlutil.pc.in | 10 ++++++ tools/libxl/xlutil.pc.in.in | 9 ------ tools/xenstat/libxenstat/Makefile | 20 +++++++++++- tools/xenstat/libxenstat/xenstat.pc.in | 10 ++++++ tools/xenstore/Makefile | 21 ++++++++++++ tools/xenstore/xenstore.pc.in | 10 ++++++ 35 files changed, 408 insertions(+), 62 deletions(-) create mode 100644 tools/blktap2/control/xenblktapctl.pc.in create mode 100644 tools/libs/call/xencall.pc.in create mode 100644 tools/libs/devicemodel/xendevicemodel.pc.in create mode 100644 tools/libs/evtchn/xenevtchn.pc.in create mode 100644 tools/libs/foreignmemory/xenforeignmemory.pc.in create mode 100644 tools/libs/gnttab/xengntshr.pc.in create mode 100644 tools/libs/gnttab/xengnttab.pc.in create mode 100644 tools/libs/toollog/xentoollog.pc.in create mode 100644 tools/libvchan/xenvchan.pc.in create mode 100644 tools/libxc/xenguest.pc.in create mode 100644 tools/libxl/xenlight.pc.in delete mode 100644 tools/libxl/xenlight.pc.in.in create mode 100644 tools/libxl/xlutil.pc.in delete mode 100644 tools/libxl/xlutil.pc.in.in create mode 100644 tools/xenstat/libxenstat/xenstat.pc.in create mode 100644 tools/xenstore/xenstore.pc.in
Signature · 7 lines
2.10.2 _______________________________________________ Xen-devel mailing list [email protected] https://lists.xen.org/xen-devel
PATCH 1/16 tools: fix typo in tools/Rules.mk
Commit 78fb69ad9 ("tools/Rules.mk: Properly handle libraries with recursive dependencies.") introduced a copy and paste error in tools/Rules.mk:
LDLIBS_libxenstore and SHLIB_libxenstore don't use SHDEPS_libxenstore but SHDEPS_libxenguest. This will add a superfluous dependency of libxenstore on libxenevtchn.
Correct this bug.
--- tools/Rules.mk | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-)
tools/Rules.mk +2 -2
@@ -139,8 +139,8 @@ SHLIB_libxenguest = $(SHDEPS_libxenguest) -Wl,-rpath-link=$(XEN_LIBXC) CFLAGS_libxenstore = -I$(XEN_XENSTORE)/include $(CFLAGS_xeninclude) SHDEPS_libxenstore = -LDLIBS_libxenstore = $(SHDEPS_libxenguest) $(XEN_XENSTORE)/libxenstore$(libextension) -SHLIB_libxenstore = $(SHDEPS_libxenguest) -Wl,-rpath-link=$(XEN_XENSTORE) +LDLIBS_libxenstore = $(SHDEPS_libxenstore) $(XEN_XENSTORE)/libxenstore$(libextension) +SHLIB_libxenstore = $(SHDEPS_libxenstore) -Wl,-rpath-link=$(XEN_XENSTORE) CFLAGS_libxenstat = -I$(XEN_LIBXENSTAT) SHDEPS_libxenstat = $(SHLIB_libxenctrl) $(SHLIB_libxenstore)
Signature · 7 lines
2.10.2 _______________________________________________ Xen-devel mailing list [email protected] https://lists.xen.org/xen-devel
PATCH 2/16 tools: add missing library flag definitions
In reply to Juergen GrossLDLIBS_* and SHLIB_* settings in tools/Rules.mk are sometimes missing some SHDEPS_* added to them.
Add the missing flags, even if sometimes being empty.
--- tools/Rules.mk | 27 +++++++++++++++------------ 1 file changed, 15 insertions(+), 12 deletions(-)
tools/Rules.mk +15 -12
@@ -94,13 +94,13 @@ endif CFLAGS_libxentoollog = -I$(XEN_LIBXENTOOLLOG)/include $(CFLAGS_xeninclude) SHDEPS_libxentoollog = -LDLIBS_libxentoollog = $(XEN_LIBXENTOOLLOG)/libxentoollog$(libextension) -SHLIB_libxentoollog = -Wl,-rpath-link=$(XEN_LIBXENTOOLLOG) +LDLIBS_libxentoollog = $(SHDEPS_libxentoollog) $(XEN_LIBXENTOOLLOG)/libxentoollog$(libextension) +SHLIB_libxentoollog = $(SHDEPS_libxentoollog) -Wl,-rpath-link=$(XEN_LIBXENTOOLLOG) CFLAGS_libxenevtchn = -I$(XEN_LIBXENEVTCHN)/include $(CFLAGS_xeninclude) SHDEPS_libxenevtchn = -LDLIBS_libxenevtchn = $(XEN_LIBXENEVTCHN)/libxenevtchn$(libextension) -SHLIB_libxenevtchn = -Wl,-rpath-link=$(XEN_LIBXENEVTCHN) +LDLIBS_libxenevtchn = $(SHDEPS_libxenevtchn) $(XEN_LIBXENEVTCHN)/libxenevtchn$(libextension) +SHLIB_libxenevtchn = $(SHDEPS_libxenevtchn) -Wl,-rpath-link=$(XEN_LIBXENEVTCHN) CFLAGS_libxengnttab = -I$(XEN_LIBXENGNTTAB)/include $(CFLAGS_xeninclude) SHDEPS_libxengnttab = $(SHLIB_libxentoollog)
@@ -109,21 +109,24 @@ SHLIB_libxengnttab = $(SHDEPS_libxengnttab) -Wl,-rpath-link=$(XEN_LIBXENGNTTAB) # xengntshr_* interfaces are actually part of libxengnttab.so CFLAGS_libxengntshr = -I$(XEN_LIBXENGNTTAB)/include $(CFLAGS_xeninclude) -LDLIBS_libxengntshr = $(XEN_LIBXENGNTTAB)/libxengnttab$(libextension) -SHLIB_libxengntshr = -Wl,-rpath-link=$(XEN_LIBXENGNTTAB) +SHDEPS_libxengntshr = $(SHDEPS_libxengnttab) +LDLIBS_libxengntshr = $(SHDEPS_libxengntshr) $(XEN_LIBXENGNTTAB)/libxengnttab$(libextension) +SHLIB_libxengntshr = $(SHDEPS_libxengntshr) -Wl,-rpath-link=$(XEN_LIBXENGNTTAB) CFLAGS_libxencall = -I$(XEN_LIBXENCALL)/include $(CFLAGS_xeninclude) -LDLIBS_libxencall = $(XEN_LIBXENCALL)/libxencall$(libextension) -SHLIB_libxencall = -Wl,-rpath-link=$(XEN_LIBXENCALL) +SHDEPS_libxencall = +LDLIBS_libxencall = $(SHDEPS_libxencall) $(XEN_LIBXENCALL)/libxencall$(libextension) +SHLIB_libxencall = $(SHDEPS_libxencall) -Wl,-rpath-link=$(XEN_LIBXENCALL) CFLAGS_libxenforeignmemory = -I$(XEN_LIBXENFOREIGNMEMORY)/include $(CFLAGS_xeninclude) -LDLIBS_libxenforeignmemory = $(XEN_LIBXENFOREIGNMEMORY)/libxenforeignmemory$(libextension) -SHLIB_libxenforeignmemory = -Wl,-rpath-link=$(XEN_LIBXENFOREIGNMEMORY) +SHDEPS_libxenforeignmemory = +LDLIBS_libxenforeignmemory = $(SHDEPS_libxenforeignmemory) $(XEN_LIBXENFOREIGNMEMORY)/libxenforeignmemory$(libextension) +SHLIB_libxenforeignmemory = $(SHDEPS_libxenforeignmemory) -Wl,-rpath-link=$(XEN_LIBXENFOREIGNMEMORY) CFLAGS_libxendevicemodel = -I$(XEN_LIBXENDEVICEMODEL)/include $(CFLAGS_xeninclude) SHDEPS_libxendevicemodel = $(SHLIB_libxentoollog) $(SHLIB_xencall) -LDLIBS_libxendevicemodel = $(XEN_LIBXENDEVICEMODEL)/libxendevicemodel$(libextension) -SHLIB_libxendevicemodel = -Wl,-rpath-link=$(XEN_LIBXENDEVICEMODEL) +LDLIBS_libxendevicemodel = $(SHDEPS_libxendevicemodel) $(XEN_LIBXENDEVICEMODEL)/libxendevicemodel$(libextension) +SHLIB_libxendevicemodel = $(SHDEPS_libxendevicemodel) -Wl,-rpath-link=$(XEN_LIBXENDEVICEMODEL) # code which compiles against libxenctrl get __XEN_TOOLS__ and # therefore sees the unstable hypercall interfaces.
Signature · 7 lines
2.10.2 _______________________________________________ Xen-devel mailing list [email protected] https://lists.xen.org/xen-devel
PATCH 4/16 tools: add support for additional items in .pc files for local builds
In reply to Juergen GrossSome libraries require different compiler-flags when being used in a local build compared to a build using installed libraries.
Reflect that by supporting local cflags variables in generated pkg-config files. The local variants will be empty in the installed pkg-config files.
The flags for the linker in the local variants will have to specify the search patch for the library with "-Wl,-rpath-link=", while the flags for the installed library will be "-L".
Add needed directory patterns.
--- tools/Rules.mk | 12 ++++++++++-- tools/libxc/xencontrol.pc.in | 2 +- 2 files changed, 11 insertions(+), 3 deletions(-)
tools/Rules.mk +10 -2
@@ -254,10 +254,18 @@ $(PKG_CONFIG_DIR)/%.pc: %.pc.in Makefile @sed -e 's!@@version@@!$(PKG_CONFIG_VERSION)!g' \ -e 's!@@prefix@@!$(PKG_CONFIG_PREFIX)!g' \ -e 's!@@incdir@@!$(PKG_CONFIG_INCDIR)!g' \ - -e 's!@@libdir@@!$(PKG_CONFIG_LIBDIR)!g' < $< > $@ + -e 's!@@libdir@@!$(PKG_CONFIG_LIBDIR)!g' \ + -e 's!@@firmwaredir@@!$(XENFIRMWAREDIR)!g' \ + -e 's!@@libexecbin@@!$(LIBEXEC_BIN)!g' \ + -e 's!@@cflagslocal@@!$(PKG_CONFIG_CFLAGS_LOCAL)!g' \ + -e 's!@@libsflag@@!-Wl,-rpath-link=!g' < $< > $@ %.pc: %.pc.in Makefile @sed -e 's!@@version@@!$(PKG_CONFIG_VERSION)!g' \ -e 's!@@prefix@@!$(PKG_CONFIG_PREFIX)!g' \ -e 's!@@incdir@@!$(PKG_CONFIG_INCDIR)!g' \ - -e 's!@@libdir@@!$(PKG_CONFIG_LIBDIR)!g' < $< > $@ + -e 's!@@libdir@@!$(PKG_CONFIG_LIBDIR)!g' \ + -e 's!@@firmwaredir@@!$(XENFIRMWAREDIR)!g' \ + -e 's!@@libexecbin@@!$(LIBEXEC_BIN)!g' \ + -e 's!@@cflagslocal@@!!g' \ + -e 's!@@libsflag@@!-L!g' < $< > $@
tools/libxc/xencontrol.pc.in +1 -1
@@ -6,4 +6,4 @@ Name: Xencontrol Description: The Xencontrol library for Xen hypervisor Version: @@version@@ Cflags: -I${includedir} -Libs: -L${libdir} -lxenctrl +Libs: @@libsflag@@${libdir} -lxenctrl
Signature · 7 lines
2.10.2 _______________________________________________ Xen-devel mailing list [email protected] https://lists.xen.org/xen-devel
PATCH 8/16 tools: provide pkg-config file for libxencall
In reply to Juergen GrossIn order to be able to use pkg-config for obtaining linker- and compiler-flags provide a xencall.pc file.
--- .gitignore | 1 + tools/libs/call/Makefile | 21 ++++++++++++++++++++- tools/libs/call/xencall.pc.in | 10 ++++++++++ tools/libs/evtchn/Makefile | 1 - tools/libs/evtchn/xenevtchn.pc.in | 2 +- 5 files changed, 32 insertions(+), 3 deletions(-) create mode 100644 tools/libs/call/xencall.pc.in
.gitignore +1 -0
@@ -103,6 +103,7 @@ tools/libs/gnttab/headers.chk tools/libs/gnttab/xengntshr.pc tools/libs/gnttab/xengnttab.pc tools/libs/call/headers.chk +tools/libs/call/xencall.pc tools/libs/foreignmemory/headers.chk tools/libs/devicemodel/headers.chk tools/blktap2/daemon/blktapctrl
tools/libs/call/Makefile +20 -1
@@ -24,6 +24,23 @@ ifneq ($(nosharedlibs),y) LIB += libxencall.so endif +PKG_CONFIG := xencall.pc +PKG_CONFIG_VERSION := $(MAJOR).$(MINOR) + +ifneq ($(CONFIG_LIBXC_MINIOS),y) +PKG_CONFIG_INST := $(PKG_CONFIG) +$(PKG_CONFIG_INST): PKG_CONFIG_PREFIX = $(prefix) +$(PKG_CONFIG_INST): PKG_CONFIG_INCDIR = $(includedir) +$(PKG_CONFIG_INST): PKG_CONFIG_LIBDIR = $(libdir) +endif + +PKG_CONFIG_LOCAL := $(foreach pc,$(PKG_CONFIG),$(PKG_CONFIG_DIR)/$(pc)) + +$(PKG_CONFIG_LOCAL): PKG_CONFIG_PREFIX = $(XEN_ROOT) +$(PKG_CONFIG_LOCAL): PKG_CONFIG_INCDIR = $(XEN_LIBXENCALL)/include +$(PKG_CONFIG_LOCAL): PKG_CONFIG_LIBDIR = $(CURDIR) +$(PKG_CONFIG_LOCAL): PKG_CONFIG_CFLAGS_LOCAL = $(CFLAGS_xeninclude) + .PHONY: all all: build
@@ -32,7 +49,7 @@ build: $(MAKE) libs .PHONY: libs -libs: headers.chk $(LIB) +libs: headers.chk $(LIB) $(PKG_CONFIG_INST) $(PKG_CONFIG_LOCAL) headers.chk: $(wildcard include/*.h)
@@ -56,6 +73,7 @@ install: build $(SYMLINK_SHLIB) libxencall.so.$(MAJOR).$(MINOR) $(DESTDIR)$(libdir)/libxencall.so.$(MAJOR) $(SYMLINK_SHLIB) libxencall.so.$(MAJOR) $(DESTDIR)$(libdir)/libxencall.so $(INSTALL_DATA) include/xencall.h $(DESTDIR)$(includedir) + $(INSTALL_DATA) xencall.pc $(DESTDIR)$(PKG_INSTALLDIR) .PHONY: TAGS TAGS:
@@ -66,6 +84,7 @@ clean: rm -rf *.rpm $(LIB) *~ $(DEPS) $(LIB_OBJS) $(PIC_OBJS) rm -f libxencall.so.$(MAJOR).$(MINOR) libxencall.so.$(MAJOR) rm -f headers.chk + rm -f xencall.pc .PHONY: distclean distclean: clean
tools/libs/call/xencall.pc.in new file +10 -0
@@ -0,0 +1,10 @@ +prefix=@@prefix@@ +includedir=@@incdir@@ +libdir=@@libdir@@ + +Name: Xencall +Description: The Xencall library for Xen hypervisor +Version: @@version@@ +Cflags: -I${includedir} @@cflagslocal@@ +Libs: @@libsflag@@${libdir} -lxencall +Requires.private: xentoollog
tools/libs/evtchn/Makefile +0 -1
@@ -39,7 +39,6 @@ PKG_CONFIG_LOCAL := $(foreach pc,$(PKG_CONFIG),$(PKG_CONFIG_DIR)/$(pc)) $(PKG_CONFIG_LOCAL): PKG_CONFIG_PREFIX = $(XEN_ROOT) $(PKG_CONFIG_LOCAL): PKG_CONFIG_INCDIR = $(XEN_LIBXENEVTCHN)/include $(PKG_CONFIG_LOCAL): PKG_CONFIG_LIBDIR = $(CURDIR) -$(PKG_CONFIG_LOCAL): PKG_CONFIG_CFLAGS_LOCAL = $(CFLAGS_xeninclude) .PHONY: all all: build
tools/libs/evtchn/xenevtchn.pc.in +1 -1
@@ -5,6 +5,6 @@ libdir=@@libdir@@ Name: Xenevtchn Description: The Xenevtchn library for Xen hypervisor Version: @@version@@ -Cflags: -I${includedir} @@cflagslocal@@ +Cflags: -I${includedir} Libs: @@libsflag@@${libdir} -lxenevtchn Requires.private: xentoollog
Signature · 7 lines
2.10.2 _______________________________________________ Xen-devel mailing list [email protected] https://lists.xen.org/xen-devel
PATCH 10/16 tools: provide pkg-config file for libxendevicemodel
In reply to Juergen GrossIn order to be able to use pkg-config for obtaining linker- and compiler-flags provide a xendevicemodel.pc file.
--- .gitignore | 1 + tools/libs/devicemodel/Makefile | 21 ++++++++++++++++++++- tools/libs/devicemodel/xendevicemodel.pc.in | 10 ++++++++++ 3 files changed, 31 insertions(+), 1 deletion(-) create mode 100644 tools/libs/devicemodel/xendevicemodel.pc.in
.gitignore +1 -0
@@ -107,6 +107,7 @@ tools/libs/call/xencall.pc tools/libs/foreignmemory/headers.chk tools/libs/foreignmemory/xenforeignmemory.pc tools/libs/devicemodel/headers.chk +tools/libs/devicemodel/xendevicemodel.pc tools/blktap2/daemon/blktapctrl tools/blktap2/drivers/img2qcow tools/blktap2/drivers/lock-util
tools/libs/devicemodel/Makefile +20 -1
@@ -25,6 +25,23 @@ ifneq ($(nosharedlibs),y) LIB += libxendevicemodel.so endif +PKG_CONFIG := xendevicemodel.pc +PKG_CONFIG_VERSION := $(MAJOR).$(MINOR) + +ifneq ($(CONFIG_LIBXC_MINIOS),y) +PKG_CONFIG_INST := $(PKG_CONFIG) +$(PKG_CONFIG_INST): PKG_CONFIG_PREFIX = $(prefix) +$(PKG_CONFIG_INST): PKG_CONFIG_INCDIR = $(includedir) +$(PKG_CONFIG_INST): PKG_CONFIG_LIBDIR = $(libdir) +endif + +PKG_CONFIG_LOCAL := $(foreach pc,$(PKG_CONFIG),$(PKG_CONFIG_DIR)/$(pc)) + +$(PKG_CONFIG_LOCAL): PKG_CONFIG_PREFIX = $(XEN_ROOT) +$(PKG_CONFIG_LOCAL): PKG_CONFIG_INCDIR = $(XEN_LIBXENDEVICEMODEL)/include +$(PKG_CONFIG_LOCAL): PKG_CONFIG_LIBDIR = $(CURDIR) +$(PKG_CONFIG_LOCAL): PKG_CONFIG_CFLAGS_LOCAL = $(CFLAGS_xeninclude) + .PHONY: all all: build
@@ -33,7 +50,7 @@ build: $(MAKE) libs .PHONY: libs -libs: headers.chk $(LIB) +libs: headers.chk $(LIB) $(PKG_CONFIG_INST) $(PKG_CONFIG_LOCAL) headers.chk: $(wildcard include/*.h)
@@ -57,6 +74,7 @@ install: build $(SYMLINK_SHLIB) libxendevicemodel.so.$(MAJOR).$(MINOR) $(DESTDIR)$(libdir)/libxendevicemodel.so.$(MAJOR) $(SYMLINK_SHLIB) libxendevicemodel.so.$(MAJOR) $(DESTDIR)$(libdir)/libxendevicemodel.so $(INSTALL_DATA) include/xendevicemodel.h $(DESTDIR)$(includedir) + $(INSTALL_DATA) xendevicemodel.pc $(DESTDIR)$(PKG_INSTALLDIR) .PHONY: TAGS TAGS:
@@ -67,6 +85,7 @@ clean: rm -rf *.rpm $(LIB) *~ $(DEPS) $(LIB_OBJS) $(PIC_OBJS) rm -f libxendevicemodel.so.$(MAJOR).$(MINOR) libxendevicemodel.so.$(MAJOR) rm -f headers.chk + rm -f xendevicemodel.pc .PHONY: distclean distclean: clean
tools/libs/devicemodel/xendevicemodel.pc.in new file +10 -0
@@ -0,0 +1,10 @@ +prefix=@@prefix@@ +includedir=@@incdir@@ +libdir=@@libdir@@ + +Name: Xendevicemodel +Description: The Xendevicemodel library for Xen hypervisor +Version: @@version@@ +Cflags: -I${includedir} @@cflagslocal@@ +Libs: @@libsflag@@${libdir} -lxendevicemodel +Requires.private: xentoollog,xencall
Signature · 7 lines
2.10.2 _______________________________________________ Xen-devel mailing list [email protected] https://lists.xen.org/xen-devel
PATCH 11/16 tools: provide pkg-config file for libxenguest, update the one for libxenctrl
In reply to Juergen GrossIn order to be able to use pkg-config for obtaining linker- and compiler-flags provide a xenguest.pc file.
Update the xencontrol.pc file to reflect the dependencies of libxenctrl.
--- tools/libxc/Makefile | 6 ++++-- tools/libxc/xencontrol.pc.in | 3 ++- tools/libxc/xenguest.pc.in | 10 ++++++++++ 3 files changed, 16 insertions(+), 3 deletions(-) create mode 100644 tools/libxc/xenguest.pc.in
tools/libxc/Makefile +4 -2
@@ -159,7 +159,7 @@ endif $(CTRL_LIB_OBJS) $(GUEST_LIB_OBJS) \ $(CTRL_PIC_OBJS) $(GUEST_PIC_OBJS): xc_private.h -PKG_CONFIG := xencontrol.pc +PKG_CONFIG := xencontrol.pc xenguest.pc PKG_CONFIG_VERSION := $(MAJOR).$(MINOR) ifneq ($(CONFIG_LIBXC_MINIOS),y)
@@ -174,6 +174,7 @@ PKG_CONFIG_LOCAL := $(foreach pc,$(PKG_CONFIG),$(PKG_CONFIG_DIR)/$(pc)) $(PKG_CONFIG_LOCAL): PKG_CONFIG_PREFIX = $(XEN_ROOT) $(PKG_CONFIG_LOCAL): PKG_CONFIG_INCDIR = $(XEN_LIBXC)/include $(PKG_CONFIG_LOCAL): PKG_CONFIG_LIBDIR = $(CURDIR) +$(PKG_CONFIG_LOCAL): PKG_CONFIG_CFLAGS_LOCAL = $(CFLAGS_xeninclude) .PHONY: all all: build
@@ -201,6 +202,7 @@ install: build $(SYMLINK_SHLIB) libxenguest.so.$(MAJOR) $(DESTDIR)$(libdir)/libxenguest.so $(INSTALL_DATA) include/xenguest.h $(DESTDIR)$(includedir) $(INSTALL_DATA) xencontrol.pc $(DESTDIR)$(PKG_INSTALLDIR) + $(INSTALL_DATA) xenguest.pc $(DESTDIR)$(PKG_INSTALLDIR) .PHONY: TAGS TAGS:
@@ -210,7 +212,7 @@ TAGS: clean: rm -rf *.rpm $(LIB) *~ $(DEPS) \ _paths.h \ - xencontrol.pc \ + xencontrol.pc xenguest.pc \ $(CTRL_LIB_OBJS) $(CTRL_PIC_OBJS) \ $(GUEST_LIB_OBJS) $(GUEST_PIC_OBJS)
tools/libxc/xencontrol.pc.in +2 -1
@@ -5,5 +5,6 @@ libdir=@@libdir@@ Name: Xencontrol Description: The Xencontrol library for Xen hypervisor Version: @@version@@ -Cflags: -I${includedir} +Cflags: -I${includedir} @@cflagslocal@@ Libs: @@libsflag@@${libdir} -lxenctrl +Requires.private: xenevtchn,xengnttab,xengntshr,xencall,xenforeignmemory,xendevicemodel,xentoollog
tools/libxc/xenguest.pc.in new file +10 -0
@@ -0,0 +1,10 @@ +prefix=@@prefix@@ +includedir=@@incdir@@ +libdir=@@libdir@@ + +Name: Xenguest +Description: The Xenguest library for Xen hypervisor +Version: @@version@@ +Cflags: -I${includedir} +Libs: @@libsflag@@${libdir} -lxenguest +Requires.private: xentoollog,xencall,xenforeignmemory,xenevtchn
Signature · 7 lines
2.10.2 _______________________________________________ Xen-devel mailing list [email protected] https://lists.xen.org/xen-devel
PATCH 13/16 tools: provide pkg-config file for libxenstat
In reply to Juergen GrossIn order to be able to use pkg-config for obtaining linker- and compiler-flags provide a xenstat.pc file.
--- .gitignore | 1 + tools/xenstat/libxenstat/Makefile | 20 +++++++++++++++++++- tools/xenstat/libxenstat/xenstat.pc.in | 10 ++++++++++ 3 files changed, 30 insertions(+), 1 deletion(-) create mode 100644 tools/xenstat/libxenstat/xenstat.pc.in
.gitignore +1 -0
@@ -241,6 +241,7 @@ tools/xenmon/xentrace_setmask tools/xenmon/xenbaked tools/xenpaging/xenpaging tools/xenpmd/xenpmd +tools/xenstat/libxenstat/xenstat.pc tools/xenstat/libxenstat/src/_paths.h tools/xenstat/xentop/xentop tools/xenstore/xenstore
tools/xenstat/libxenstat/Makefile +19 -1
@@ -37,8 +37,24 @@ CFLAGS+=-Isrc $(CFLAGS_libxenctrl) $(CFLAGS_libxenstore) $(CFLAGS_xeninclude) -i LDLIBS-y = $(LDLIBS_libxenstore) $(LDLIBS_libxenctrl) LDLIBS-$(CONFIG_SunOS) += -lkstat +PKG_CONFIG := xenstat.pc +PKG_CONFIG_VERSION := $(MAJOR).$(MINOR) + +ifneq ($(CONFIG_LIBXC_MINIOS),y) +PKG_CONFIG_INST := $(PKG_CONFIG) +$(PKG_CONFIG_INST): PKG_CONFIG_PREFIX = $(prefix) +$(PKG_CONFIG_INST): PKG_CONFIG_INCDIR = $(includedir) +$(PKG_CONFIG_INST): PKG_CONFIG_LIBDIR = $(libdir) +endif + +PKG_CONFIG_LOCAL := $(foreach pc,$(PKG_CONFIG),$(PKG_CONFIG_DIR)/$(pc)) + +$(PKG_CONFIG_LOCAL): PKG_CONFIG_PREFIX = $(XEN_ROOT) +$(PKG_CONFIG_LOCAL): PKG_CONFIG_INCDIR = $(XEN_LIBXENSTAT) +$(PKG_CONFIG_LOCAL): PKG_CONFIG_LIBDIR = $(CURDIR) + .PHONY: all -all: $(LIB) $(SHLIB) $(SHLIB_LINKS) +all: $(LIB) $(SHLIB) $(SHLIB_LINKS) $(PKG_CONFIG_INST) $(PKG_CONFIG_LOCAL) $(OBJECTS-y): src/_paths.h
@@ -63,6 +79,7 @@ install: all $(INSTALL_PROG) src/libxenstat.so.$(MAJOR).$(MINOR) $(DESTDIR)$(libdir) ln -sf libxenstat.so.$(MAJOR).$(MINOR) $(DESTDIR)$(libdir)/libxenstat.so.$(MAJOR) ln -sf libxenstat.so.$(MAJOR) $(DESTDIR)$(libdir)/libxenstat.so + $(INSTALL_DATA) xenstat.pc $(DESTDIR)$(PKG_INSTALLDIR) PYLIB=bindings/swig/python/_xenstat.so PYMOD=bindings/swig/python/xenstat.py
@@ -138,6 +155,7 @@ endif clean: rm -f $(LIB) $(SHLIB) $(SHLIB_LINKS) $(OBJECTS-y) \ $(BINDINGS) $(BINDINGSRC) $(DEPS) src/_paths.h + rm -f xenstat.pc .PHONY: distclean distclean: clean
tools/xenstat/libxenstat/xenstat.pc.in new file +10 -0
@@ -0,0 +1,10 @@ +prefix=@@prefix@@ +includedir=@@incdir@@ +libdir=@@libdir@@ + +Name: Xenstat +Description: The Xenstat library for Xen hypervisor +Version: @@version@@ +Cflags: -I${includedir} +Libs: @@libsflag@@${libdir} -lxenstat +Requires.private: xencontrol,xenstore
Signature · 7 lines
2.10.2 _______________________________________________ Xen-devel mailing list [email protected] https://lists.xen.org/xen-devel
PATCH 3/16 tools, stubdom: set PKG_CONFIG_DIR in main Makefiles
In reply to Juergen GrossInstead of setting the PKG_CONFIG_DIR make variable in each library Makefile do it in tools/Makefile and stubdom/Makefile globally.
--- stubdom/Makefile | 1 + tools/Makefile | 3 +++ tools/libxc/Makefile | 1 - 3 files changed, 4 insertions(+), 1 deletion(-)
stubdom/Makefile +1 -0
@@ -3,6 +3,7 @@ MINI_OS = $(XEN_ROOT)/extras/mini-os export XEN_ROOT export XEN_OS=MiniOS +export PKG_CONFIG_DIR = $(CURDIR)/pkg-config # Remove flags which are meant for tools, e.g. "-m64" export EXTRA_CFLAGS_XEN_TOOLS=
tools/Makefile +3 -0
@@ -1,4 +1,7 @@ XEN_ROOT = $(CURDIR)/.. + +export PKG_CONFIG_DIR = $(CURDIR)/pkg-config + include $(XEN_ROOT)/tools/Rules.mk SUBDIRS-y :=
tools/libxc/Makefile +0 -1
@@ -1,5 +1,4 @@ XEN_ROOT = $(CURDIR)/../.. -PKG_CONFIG_DIR = ../pkg-config include $(XEN_ROOT)/tools/Rules.mk MAJOR = 4.9
Signature · 7 lines
2.10.2 _______________________________________________ Xen-devel mailing list [email protected] https://lists.xen.org/xen-devel
PATCH 12/16 tools: provide pkg-config file for libxenstore
In reply to Juergen GrossIn order to be able to use pkg-config for obtaining linker- and compiler-flags provide a xenstore.pc file.
--- .gitignore | 1 + tools/xenstore/Makefile | 21 +++++++++++++++++++++ tools/xenstore/xenstore.pc.in | 10 ++++++++++ 3 files changed, 32 insertions(+) create mode 100644 tools/xenstore/xenstore.pc.in
.gitignore +1 -0
@@ -254,6 +254,7 @@ tools/xenstore/xenstore-control tools/xenstore/xenstore-ls tools/xenstore/xenstored tools/xenstore/xenstored_test +tools/xenstore/xenstore.pc tools/xenstore/xs_tdb_dump tools/xentrace/xentrace_setsize tools/xentrace/tbctl
tools/xenstore/Makefile +21 -0
@@ -105,12 +105,32 @@ libxenstore.so.$(MAJOR).$(MINOR): xs.opic xs_lib.opic libxenstore.a: xs.o xs_lib.o $(AR) rcs $@ $^ +PKG_CONFIG := xenstore.pc +PKG_CONFIG_VERSION := $(MAJOR).$(MINOR) + +ifneq ($(CONFIG_LIBXC_MINIOS),y) +PKG_CONFIG_INST := $(PKG_CONFIG) +$(PKG_CONFIG_INST): PKG_CONFIG_PREFIX = $(prefix) +$(PKG_CONFIG_INST): PKG_CONFIG_INCDIR = $(includedir) +$(PKG_CONFIG_INST): PKG_CONFIG_LIBDIR = $(libdir) +endif + +PKG_CONFIG_LOCAL := $(foreach pc,$(PKG_CONFIG),$(PKG_CONFIG_DIR)/$(pc)) + +$(PKG_CONFIG_LOCAL): PKG_CONFIG_PREFIX = $(XEN_ROOT) +$(PKG_CONFIG_LOCAL): PKG_CONFIG_INCDIR = $(XEN_XENSTORE)/include +$(PKG_CONFIG_LOCAL): PKG_CONFIG_LIBDIR = $(CURDIR) +$(PKG_CONFIG_LOCAL): PKG_CONFIG_CFLAGS_LOCAL = $(CFLAGS_xeninclude) + +$(LIBXENSTORE): $(PKG_CONFIG_INST) $(PKG_CONFIG_LOCAL) + .PHONY: clean clean: rm -f *.a *.o *.opic *.so* xenstored_probes.h rm -f xenstored xs_random xs_stress xs_crashme rm -f xs_tdb_dump xenstore-control init-xenstore-domain rm -f xenstore $(CLIENTS) + rm -f xenstore.pc $(RM) $(DEPS) .PHONY: distclean
@@ -150,6 +170,7 @@ endif $(INSTALL_DATA) include/compat/xs_lib.h $(DESTDIR)$(includedir)/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 + $(INSTALL_DATA) xenstore.pc $(DESTDIR)$(PKG_INSTALLDIR) .PHONY: clients-install clients-install: clients
tools/xenstore/xenstore.pc.in new file +10 -0
@@ -0,0 +1,10 @@ +prefix=@@prefix@@ +includedir=@@incdir@@ +libdir=@@libdir@@ + +Name: Xenstore +Description: The Xenstore library for Xen hypervisor +Version: @@version@@ +Cflags: -I${includedir} @@cflagslocal@@ +Libs: @@libsflag@@${libdir} -lxenstore +Requires.private: xenevtchn,xencontrol,xengnttab
Signature · 7 lines
2.10.2 _______________________________________________ Xen-devel mailing list [email protected] https://lists.xen.org/xen-devel
PATCH 14/16 tools: provide pkg-config file for libxenvchan
In reply to Juergen GrossIn order to be able to use pkg-config for obtaining linker- and compiler-flags provide a xenvchan.pc file.
--- .gitignore | 1 + tools/libvchan/Makefile | 21 ++++++++++++++++++++- tools/libvchan/xenvchan.pc.in | 10 ++++++++++ 3 files changed, 31 insertions(+), 1 deletion(-) create mode 100644 tools/libvchan/xenvchan.pc.in
.gitignore +1 -0
@@ -187,6 +187,7 @@ tools/include/xen/* tools/include/xen-xsm/* tools/include/xen-foreign/*.(c|h|size) tools/include/xen-foreign/checker +tools/libvchan/xenvchan.pc tools/libxc/*.pc tools/libxl/_libxl.api-for-check tools/libxl/*.api-ok
tools/libvchan/Makefile +20 -1
@@ -21,8 +21,25 @@ CFLAGS += -I../include -I. io.o io.opic: CFLAGS += $(CFLAGS_libxenctrl) # for xen_mb et al +PKG_CONFIG := xenvchan.pc +PKG_CONFIG_VERSION := $(MAJOR).$(MINOR) + +ifneq ($(CONFIG_LIBXC_MINIOS),y) +PKG_CONFIG_INST := $(PKG_CONFIG) +$(PKG_CONFIG_INST): PKG_CONFIG_PREFIX = $(prefix) +$(PKG_CONFIG_INST): PKG_CONFIG_INCDIR = $(includedir) +$(PKG_CONFIG_INST): PKG_CONFIG_LIBDIR = $(libdir) +endif + +PKG_CONFIG_LOCAL := $(foreach pc,$(PKG_CONFIG),$(PKG_CONFIG_DIR)/$(pc)) + +$(PKG_CONFIG_LOCAL): PKG_CONFIG_PREFIX = $(XEN_ROOT) +$(PKG_CONFIG_LOCAL): PKG_CONFIG_INCDIR = $(XEN_LIBVCHAN) +$(PKG_CONFIG_LOCAL): PKG_CONFIG_LIBDIR = $(CURDIR) +$(PKG_CONFIG_LOCAL): PKG_CONFIG_CFLAGS_LOCAL = $(CFLAGS_xeninclude) + .PHONY: all -all: libxenvchan.so vchan-node1 vchan-node2 libxenvchan.a +all: libxenvchan.so vchan-node1 vchan-node2 libxenvchan.a $(PKG_CONFIG_INST) $(PKG_CONFIG_LOCAL) libxenvchan.so: libxenvchan.so.$(MAJOR) ln -sf $< $@
@@ -51,10 +68,12 @@ install: all ln -sf libxenvchan.so.$(MAJOR) $(DESTDIR)$(libdir)/libxenvchan.so $(INSTALL_DATA) libxenvchan.h $(DESTDIR)$(includedir) $(INSTALL_DATA) libxenvchan.a $(DESTDIR)$(libdir) + $(INSTALL_DATA) xenvchan.pc $(DESTDIR)$(PKG_INSTALLDIR) .PHONY: clean clean: $(RM) -f *.o *.opic *.so* *.a vchan-node1 vchan-node2 $(DEPS) + $(RM) -f xenvchan.pc distclean: clean
tools/libvchan/xenvchan.pc.in new file +10 -0
@@ -0,0 +1,10 @@ +prefix=@@prefix@@ +includedir=@@incdir@@ +libdir=@@libdir@@ + +Name: Xenvchan +Description: The Xenvchan library for Xen hypervisor +Version: @@version@@ +Cflags: -I${includedir} @@cflagslocal@@ +Libs: @@libsflag@@${libdir} -lxenvchan +Requires.private: xentoollog,xenstore,xengntshr,xenevtchn,xengnttab
Signature · 7 lines
2.10.2 _______________________________________________ Xen-devel mailing list [email protected] https://lists.xen.org/xen-devel
PATCH 16/16 tools: adapt xenlight.pc and xlutil.pc to new pkg-config scheme
In reply to Juergen GrossInstead of generating the *.pc.in files at configure time use the new pkg-config scheme for those files. Add the dependencies to other Xen libraries as needed.
--- .gitignore | 1 - tools/configure | 4 +--- tools/configure.ac | 2 -- tools/libxl/Makefile | 25 ++++++++++++++++++++----- tools/libxl/xenlight.pc.in | 12 ++++++++++++ tools/libxl/xenlight.pc.in.in | 11 ----------- tools/libxl/xlutil.pc.in | 10 ++++++++++ tools/libxl/xlutil.pc.in.in | 9 --------- 8 files changed, 43 insertions(+), 31 deletions(-) create mode 100644 tools/libxl/xenlight.pc.in delete mode 100644 tools/libxl/xenlight.pc.in.in create mode 100644 tools/libxl/xlutil.pc.in delete mode 100644 tools/libxl/xlutil.pc.in.in
.gitignore +0 -1
@@ -193,7 +193,6 @@ tools/libxc/*.pc tools/libxl/_libxl.api-for-check tools/libxl/*.api-ok tools/libxl/*.pc -tools/libxl/*.pc.in tools/libxl/dsdt* tools/libxl/libxlu_cfg_y.output tools/libxl/mk_dsdt
tools/configure +1 -3
@@ -2411,7 +2411,7 @@ ac_compiler_gnu=$ac_cv_c_compiler_gnu -ac_config_files="$ac_config_files ../config/Tools.mk hotplug/FreeBSD/rc.d/xencommons hotplug/FreeBSD/rc.d/xendriverdomain hotplug/Linux/init.d/sysconfig.xencommons hotplug/Linux/init.d/sysconfig.xendomains hotplug/Linux/init.d/xen-watchdog hotplug/Linux/init.d/xencommons hotplug/Linux/init.d/xendomains hotplug/Linux/init.d/xendriverdomain hotplug/Linux/launch-xenstore hotplug/Linux/vif-setup hotplug/Linux/xen-hotplug-common.sh hotplug/Linux/xendomains hotplug/NetBSD/rc.d/xencommons hotplug/NetBSD/rc.d/xendriverdomain libxl/xenlight.pc.in libxl/xlutil.pc.in ocaml/xenstored/oxenstored.conf" +ac_config_files="$ac_config_files ../config/Tools.mk hotplug/FreeBSD/rc.d/xencommons hotplug/FreeBSD/rc.d/xendriverdomain hotplug/Linux/init.d/sysconfig.xencommons hotplug/Linux/init.d/sysconfig.xendomains hotplug/Linux/init.d/xen-watchdog hotplug/Linux/init.d/xencommons hotplug/Linux/init.d/xendomains hotplug/Linux/init.d/xendriverdomain hotplug/Linux/launch-xenstore hotplug/Linux/vif-setup hotplug/Linux/xen-hotplug-common.sh hotplug/Linux/xendomains hotplug/NetBSD/rc.d/xencommons hotplug/NetBSD/rc.d/xendriverdomain ocaml/xenstored/oxenstored.conf" ac_config_headers="$ac_config_headers config.h"
@@ -10415,8 +10415,6 @@ do "hotplug/Linux/xendomains") CONFIG_FILES="$CONFIG_FILES hotplug/Linux/xendomains" ;; "hotplug/NetBSD/rc.d/xencommons") CONFIG_FILES="$CONFIG_FILES hotplug/NetBSD/rc.d/xencommons" ;; "hotplug/NetBSD/rc.d/xendriverdomain") CONFIG_FILES="$CONFIG_FILES hotplug/NetBSD/rc.d/xendriverdomain" ;; - "libxl/xenlight.pc.in") CONFIG_FILES="$CONFIG_FILES libxl/xenlight.pc.in" ;; - "libxl/xlutil.pc.in") CONFIG_FILES="$CONFIG_FILES libxl/xlutil.pc.in" ;; "ocaml/xenstored/oxenstored.conf") CONFIG_FILES="$CONFIG_FILES ocaml/xenstored/oxenstored.conf" ;; "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;; "hotplug/Linux/systemd/proc-xen.mount") CONFIG_FILES="$CONFIG_FILES hotplug/Linux/systemd/proc-xen.mount" ;;
tools/configure.ac +0 -2
@@ -21,8 +21,6 @@ hotplug/Linux/xen-hotplug-common.sh hotplug/Linux/xendomains hotplug/NetBSD/rc.d/xencommons hotplug/NetBSD/rc.d/xendriverdomain -libxl/xenlight.pc.in -libxl/xlutil.pc.in ocaml/xenstored/oxenstored.conf ]) AC_CONFIG_HEADERS([config.h])
tools/libxl/Makefile +20 -5
@@ -189,6 +189,25 @@ SAVE_HELPER_OBJS = libxl_save_helper.o _libxl_save_msgs_helper.o $(SAVE_HELPER_OBJS): CFLAGS += $(CFLAGS_libxenctrl) $(CFLAGS_libxenevtchn) PKG_CONFIG = xenlight.pc xlutil.pc +PKG_CONFIG_VERSION := $(MAJOR).$(MINOR) + +ifneq ($(CONFIG_LIBXC_MINIOS),y) +PKG_CONFIG_INST := $(PKG_CONFIG) +xenlight.pc: PKG_CONFIG_VERSION = $(MAJOR).$(MINOR) +xlutil.pc: PKG_CONFIG_VERSION = $(XLUMAJOR).$(XLUMINOR) +$(PKG_CONFIG_INST): PKG_CONFIG_PREFIX = $(prefix) +$(PKG_CONFIG_INST): PKG_CONFIG_INCDIR = $(includedir) +$(PKG_CONFIG_INST): PKG_CONFIG_LIBDIR = $(libdir) +endif + +PKG_CONFIG_LOCAL := $(foreach pc,$(PKG_CONFIG),$(PKG_CONFIG_DIR)/$(pc)) + +$(PKG_CONFIG_DIR)/xenlight.pc: PKG_CONFIG_VERSION = $(MAJOR).$(MINOR) +$(PKG_CONFIG_DIR)/xlutil.pc: PKG_CONFIG_VERSION = $(XLUMAJOR).$(XLUMINOR) +$(PKG_CONFIG_LOCAL): PKG_CONFIG_PREFIX = $(XEN_ROOT) +$(PKG_CONFIG_LOCAL): PKG_CONFIG_INCDIR = $(CURDIR) +$(PKG_CONFIG_LOCAL): PKG_CONFIG_LIBDIR = $(CURDIR) +$(PKG_CONFIG_LOCAL): PKG_CONFIG_CFLAGS_LOCAL = $(CFLAGS_xeninclude) testidl.o: CFLAGS += $(CFLAGS_libxenctrl) $(CFLAGS_libxenlight) testidl.c: libxl_types.idl gentest.py libxl.h $(AUTOINCS)
@@ -196,7 +215,7 @@ testidl.c: libxl_types.idl gentest.py libxl.h $(AUTOINCS) mv testidl.c.new testidl.c .PHONY: all -all: $(CLIENTS) $(TEST_PROGS) $(PKG_CONFIG) \ +all: $(CLIENTS) $(TEST_PROGS) $(PKG_CONFIG) $(PKG_CONFIG_LOCAL) \ libxenlight.so libxenlight.a libxlutil.so libxlutil.a \ $(AUTOSRCS) $(AUTOINCS)
@@ -290,10 +309,6 @@ libxl-save-helper: $(SAVE_HELPER_OBJS) libxenlight.so testidl: testidl.o libxlutil.so libxenlight.so $(CC) $(LDFLAGS) -o $@ testidl.o libxlutil.so $(LDLIBS_libxenlight) $(LDLIBS_libxentoollog) $(APPEND_LDFLAGS) -$(PKG_CONFIG): % : %.in Makefile - @sed -e 's/@@version@@/$(MAJOR).$(MINOR)/g' < $< > [email protected] - @mv -f [email protected] $@ - .PHONY: install install: all $(INSTALL_DIR) $(DESTDIR)$(libdir)
tools/libxl/xenlight.pc.in new file +12 -0
@@ -0,0 +1,12 @@ +prefix=@@prefix@@ +includedir=@@incdir@@ +libdir=@@libdir@@ +xenfirmwaredir=@@firmwaredir@@ +libexec_bin=@@libexecbin@@ + +Name: Xenlight +Description: The Xenlight library for Xen hypervisor +Version: @@version@@ +Cflags: -I${includedir} +Libs: @@libsflag@@${libdir} -lxenlight +Requires.private: xentoollog,xenevtchn,xenctrl,xenguest,xenstore,blktapctl
tools/libxl/xenlight.pc.in.in deleted +0 -11
@@ -1,11 +0,0 @@ -prefix=@prefix@ -includedir=@includedir@ -libdir=@libdir@ -xenfirmwaredir=@XENFIRMWAREDIR@ -libexec_bin=@LIBEXEC_BIN@ - -Name: Xenlight -Description: The Xenlight library for Xen hypervisor -Version: @@version@@ -Cflags: -I${includedir} -Libs: -L${libdir} -lxenlight
tools/libxl/xlutil.pc.in new file +10 -0
@@ -0,0 +1,10 @@ +prefix=@@prefix@@ +includedir=@@incdir@@ +libdir=@@libdir@@ + +Name: Xlutil +Description: The xl utility library for Xen hypervisor +Version: @@version@@ +Cflags: -I${includedir} +Libs: @@libsflag@@${libdir} -lxlutil +Requires.private: xenlight
tools/libxl/xlutil.pc.in.in deleted +0 -9
@@ -1,9 +0,0 @@ -prefix=@prefix@ -includedir=@includedir@ -libdir=@libdir@ - -Name: Xlutil -Description: The xl utility library for Xen hypervisor -Version: @@version@@ -Cflags: -I${includedir} -Libs: -L${libdir} -lxlutil
Signature · 7 lines
2.10.2 _______________________________________________ Xen-devel mailing list [email protected] https://lists.xen.org/xen-devel
PATCH 5/16 tools: provide pkg-config file for libxentoollog
In reply to Juergen GrossIn order to be able to use pkg-config for obtaining linker- and compiler-flags provide a xentoollog.pc file.
--- .gitignore | 1 + tools/libs/toollog/Makefile | 20 +++++++++++++++++++- tools/libs/toollog/xentoollog.pc.in | 9 +++++++++ 3 files changed, 29 insertions(+), 1 deletion(-) create mode 100644 tools/libs/toollog/xentoollog.pc.in
.gitignore +1 -0
@@ -96,6 +96,7 @@ config/Tools.mk config/Stubdom.mk config/Docs.mk tools/libs/toollog/headers.chk +tools/libs/toollog/xentoollog.pc tools/libs/evtchn/headers.chk tools/libs/gnttab/headers.chk tools/libs/call/headers.chk
tools/libs/toollog/Makefile +19 -1
@@ -19,6 +19,22 @@ ifneq ($(nosharedlibs),y) LIB += libxentoollog.so endif +PKG_CONFIG := xentoollog.pc +PKG_CONFIG_VERSION := $(MAJOR).$(MINOR) + +ifneq ($(CONFIG_LIBXC_MINIOS),y) +PKG_CONFIG_INST := $(PKG_CONFIG) +$(PKG_CONFIG_INST): PKG_CONFIG_PREFIX = $(prefix) +$(PKG_CONFIG_INST): PKG_CONFIG_INCDIR = $(includedir) +$(PKG_CONFIG_INST): PKG_CONFIG_LIBDIR = $(libdir) +endif + +PKG_CONFIG_LOCAL := $(foreach pc,$(PKG_CONFIG),$(PKG_CONFIG_DIR)/$(pc)) + +$(PKG_CONFIG_LOCAL): PKG_CONFIG_PREFIX = $(XEN_ROOT) +$(PKG_CONFIG_LOCAL): PKG_CONFIG_INCDIR = $(XEN_LIBXENTOOLLOG)/include +$(PKG_CONFIG_LOCAL): PKG_CONFIG_LIBDIR = $(CURDIR) + .PHONY: all all: build
@@ -27,7 +43,7 @@ build: $(MAKE) libs .PHONY: libs -libs: headers.chk $(LIB) +libs: headers.chk $(LIB) $(PKG_CONFIG_INST) $(PKG_CONFIG_LOCAL) headers.chk: $(wildcard include/*.h)
@@ -51,6 +67,7 @@ install: build $(SYMLINK_SHLIB) libxentoollog.so.$(MAJOR).$(MINOR) $(DESTDIR)$(libdir)/libxentoollog.so.$(MAJOR) $(SYMLINK_SHLIB) libxentoollog.so.$(MAJOR) $(DESTDIR)$(libdir)/libxentoollog.so $(INSTALL_DATA) include/xentoollog.h $(DESTDIR)$(includedir) + $(INSTALL_DATA) xentoollog.pc $(DESTDIR)$(PKG_INSTALLDIR) .PHONY: TAGS TAGS:
@@ -61,6 +78,7 @@ clean: rm -rf *.rpm $(LIB) *~ $(DEPS) $(LIB_OBJS) $(PIC_OBJS) rm -f libxentoollog.so.$(MAJOR).$(MINOR) libxentoollog.so.$(MAJOR) rm -f headers.chk + rm -f xentoollog.pc .PHONY: distclean distclean: clean
tools/libs/toollog/xentoollog.pc.in new file +9 -0
@@ -0,0 +1,9 @@ +prefix=@@prefix@@ +includedir=@@incdir@@ +libdir=@@libdir@@ + +Name: Xentoollog +Description: The Xentoollog library for Xen hypervisor +Version: @@version@@ +Cflags: -I${includedir} +Libs: @@libsflag@@${libdir} -lxentoollog
Signature · 7 lines
2.10.2 _______________________________________________ Xen-devel mailing list [email protected] https://lists.xen.org/xen-devel
PATCH 6/16 tools: provide pkg-config file for libxenevtchn
In reply to Juergen GrossIn order to be able to use pkg-config for obtaining linker- and compiler-flags provide a xenevtchn.pc file.
--- .gitignore | 1 + tools/libs/evtchn/Makefile | 21 ++++++++++++++++++++- tools/libs/evtchn/xenevtchn.pc.in | 10 ++++++++++ 3 files changed, 31 insertions(+), 1 deletion(-) create mode 100644 tools/libs/evtchn/xenevtchn.pc.in
.gitignore +1 -0
@@ -98,6 +98,7 @@ config/Docs.mk tools/libs/toollog/headers.chk tools/libs/toollog/xentoollog.pc tools/libs/evtchn/headers.chk +tools/libs/evtchn/xenevtchn.pc tools/libs/gnttab/headers.chk tools/libs/call/headers.chk tools/libs/foreignmemory/headers.chk
tools/libs/evtchn/Makefile +20 -1
@@ -24,6 +24,23 @@ ifneq ($(nosharedlibs),y) LIB += libxenevtchn.so endif +PKG_CONFIG := xenevtchn.pc +PKG_CONFIG_VERSION := $(MAJOR).$(MINOR) + +ifneq ($(CONFIG_LIBXC_MINIOS),y) +PKG_CONFIG_INST := $(PKG_CONFIG) +$(PKG_CONFIG_INST): PKG_CONFIG_PREFIX = $(prefix) +$(PKG_CONFIG_INST): PKG_CONFIG_INCDIR = $(includedir) +$(PKG_CONFIG_INST): PKG_CONFIG_LIBDIR = $(libdir) +endif + +PKG_CONFIG_LOCAL := $(foreach pc,$(PKG_CONFIG),$(PKG_CONFIG_DIR)/$(pc)) + +$(PKG_CONFIG_LOCAL): PKG_CONFIG_PREFIX = $(XEN_ROOT) +$(PKG_CONFIG_LOCAL): PKG_CONFIG_INCDIR = $(XEN_LIBXENEVTCHN)/include +$(PKG_CONFIG_LOCAL): PKG_CONFIG_LIBDIR = $(CURDIR) +$(PKG_CONFIG_LOCAL): PKG_CONFIG_CFLAGS_LOCAL = $(CFLAGS_xeninclude) + .PHONY: all all: build
@@ -32,7 +49,7 @@ build: $(MAKE) libs .PHONY: libs -libs: headers.chk $(LIB) +libs: headers.chk $(LIB) $(PKG_CONFIG_INST) $(PKG_CONFIG_LOCAL) headers.chk: $(wildcard include/*.h)
@@ -56,6 +73,7 @@ install: build $(SYMLINK_SHLIB) libxenevtchn.so.$(MAJOR).$(MINOR) $(DESTDIR)$(libdir)/libxenevtchn.so.$(MAJOR) $(SYMLINK_SHLIB) libxenevtchn.so.$(MAJOR) $(DESTDIR)$(libdir)/libxenevtchn.so $(INSTALL_DATA) include/xenevtchn.h $(DESTDIR)$(includedir) + $(INSTALL_DATA) xenevtchn.pc $(DESTDIR)$(PKG_INSTALLDIR) .PHONY: TAGS TAGS:
@@ -66,6 +84,7 @@ clean: rm -rf *.rpm $(LIB) *~ $(DEPS) $(LIB_OBJS) $(PIC_OBJS) rm -f libxenevtchn.so.$(MAJOR).$(MINOR) libxenevtchn.so.$(MAJOR) rm -f headers.chk + rm -f xenevtchn.pc .PHONY: distclean distclean: clean
tools/libs/evtchn/xenevtchn.pc.in new file +10 -0
@@ -0,0 +1,10 @@ +prefix=@@prefix@@ +includedir=@@incdir@@ +libdir=@@libdir@@ + +Name: Xenevtchn +Description: The Xenevtchn library for Xen hypervisor +Version: @@version@@ +Cflags: -I${includedir} @@cflagslocal@@ +Libs: @@libsflag@@${libdir} -lxenevtchn +Requires.private: xentoollog
Signature · 7 lines
2.10.2 _______________________________________________ Xen-devel mailing list [email protected] https://lists.xen.org/xen-devel
PATCH 7/16 tools: provide pkg-config file for libxengnttab
In reply to Juergen GrossIn order to be able to use pkg-config for obtaining linker- and compiler-flags provide a xengnttab.pc and a xengntshr.pc file.
--- .gitignore | 2 ++ tools/libs/gnttab/Makefile | 22 +++++++++++++++++++++- tools/libs/gnttab/xengntshr.pc.in | 8 ++++++++ tools/libs/gnttab/xengnttab.pc.in | 10 ++++++++++ 4 files changed, 41 insertions(+), 1 deletion(-) create mode 100644 tools/libs/gnttab/xengntshr.pc.in create mode 100644 tools/libs/gnttab/xengnttab.pc.in
.gitignore +2 -0
@@ -100,6 +100,8 @@ tools/libs/toollog/xentoollog.pc tools/libs/evtchn/headers.chk tools/libs/evtchn/xenevtchn.pc tools/libs/gnttab/headers.chk +tools/libs/gnttab/xengntshr.pc +tools/libs/gnttab/xengnttab.pc tools/libs/call/headers.chk tools/libs/foreignmemory/headers.chk tools/libs/devicemodel/headers.chk
tools/libs/gnttab/Makefile +21 -1
@@ -26,6 +26,23 @@ ifneq ($(nosharedlibs),y) LIB += libxengnttab.so endif +PKG_CONFIG := xengnttab.pc xengntshr.pc +PKG_CONFIG_VERSION := $(MAJOR).$(MINOR) + +ifneq ($(CONFIG_LIBXC_MINIOS),y) +PKG_CONFIG_INST := $(PKG_CONFIG) +$(PKG_CONFIG_INST): PKG_CONFIG_PREFIX = $(prefix) +$(PKG_CONFIG_INST): PKG_CONFIG_INCDIR = $(includedir) +$(PKG_CONFIG_INST): PKG_CONFIG_LIBDIR = $(libdir) +endif + +PKG_CONFIG_LOCAL := $(foreach pc,$(PKG_CONFIG),$(PKG_CONFIG_DIR)/$(pc)) + +$(PKG_CONFIG_LOCAL): PKG_CONFIG_PREFIX = $(XEN_ROOT) +$(PKG_CONFIG_LOCAL): PKG_CONFIG_INCDIR = $(XEN_LIBXENGNTTAB)/include +$(PKG_CONFIG_LOCAL): PKG_CONFIG_LIBDIR = $(CURDIR) +$(PKG_CONFIG_LOCAL): PKG_CONFIG_CFLAGS_LOCAL = $(CFLAGS_xeninclude) + .PHONY: all all: build
@@ -34,7 +51,7 @@ build: $(MAKE) libs .PHONY: libs -libs: headers.chk $(LIB) +libs: headers.chk $(LIB) $(PKG_CONFIG_INST) $(PKG_CONFIG_LOCAL) headers.chk: $(wildcard include/*.h)
@@ -58,6 +75,8 @@ install: build $(SYMLINK_SHLIB) libxengnttab.so.$(MAJOR).$(MINOR) $(DESTDIR)$(libdir)/libxengnttab.so.$(MAJOR) $(SYMLINK_SHLIB) libxengnttab.so.$(MAJOR) $(DESTDIR)$(libdir)/libxengnttab.so $(INSTALL_DATA) include/xengnttab.h $(DESTDIR)$(includedir) + $(INSTALL_DATA) xengnttab.pc $(DESTDIR)$(PKG_INSTALLDIR) + $(INSTALL_DATA) xengntshr.pc $(DESTDIR)$(PKG_INSTALLDIR) .PHONY: TAGS TAGS:
@@ -68,6 +87,7 @@ clean: rm -rf *.rpm $(LIB) *~ $(DEPS) $(LIB_OBJS) $(PIC_OBJS) rm -f libxengnttab.so.$(MAJOR).$(MINOR) libxengnttab.so.$(MAJOR) rm -f headers.chk + rm -f xengnttab.pc xengntshr.pc .PHONY: distclean distclean: clean
tools/libs/gnttab/xengntshr.pc.in new file +8 -0
@@ -0,0 +1,8 @@ +prefix=@@prefix@@ +includedir=@@incdir@@ +libdir=@@libdir@@ + +Name: Xengntshr +Description: The Xengntshr library for Xen hypervisor +Version: @@version@@ +Requires: xengnttab
tools/libs/gnttab/xengnttab.pc.in new file +10 -0
@@ -0,0 +1,10 @@ +prefix=@@prefix@@ +includedir=@@incdir@@ +libdir=@@libdir@@ + +Name: Xengnttab +Description: The Xengnttab library for Xen hypervisor +Version: @@version@@ +Cflags: -I${includedir} @@cflagslocal@@ +Libs: @@libsflag@@${libdir} -lxengnttab +Requires.private: xentoollog
Signature · 7 lines
2.10.2 _______________________________________________ Xen-devel mailing list [email protected] https://lists.xen.org/xen-devel
PATCH 9/16 tools: provide pkg-config file for libxenforeignmemory
In reply to Juergen GrossIn order to be able to use pkg-config for obtaining linker- and compiler-flags provide a xenforeignmemory.pc file.
--- .gitignore | 1 + tools/libs/foreignmemory/Makefile | 21 ++++++++++++++++++++- tools/libs/foreignmemory/xenforeignmemory.pc.in | 10 ++++++++++ 3 files changed, 31 insertions(+), 1 deletion(-) create mode 100644 tools/libs/foreignmemory/xenforeignmemory.pc.in
.gitignore +1 -0
@@ -105,6 +105,7 @@ tools/libs/gnttab/xengnttab.pc tools/libs/call/headers.chk tools/libs/call/xencall.pc tools/libs/foreignmemory/headers.chk +tools/libs/foreignmemory/xenforeignmemory.pc tools/libs/devicemodel/headers.chk tools/blktap2/daemon/blktapctrl tools/blktap2/drivers/img2qcow
tools/libs/foreignmemory/Makefile +20 -1
@@ -24,6 +24,23 @@ ifneq ($(nosharedlibs),y) LIB += libxenforeignmemory.so endif +PKG_CONFIG := xenforeignmemory.pc +PKG_CONFIG_VERSION := $(MAJOR).$(MINOR) + +ifneq ($(CONFIG_LIBXC_MINIOS),y) +PKG_CONFIG_INST := $(PKG_CONFIG) +$(PKG_CONFIG_INST): PKG_CONFIG_PREFIX = $(prefix) +$(PKG_CONFIG_INST): PKG_CONFIG_INCDIR = $(includedir) +$(PKG_CONFIG_INST): PKG_CONFIG_LIBDIR = $(libdir) +endif + +PKG_CONFIG_LOCAL := $(foreach pc,$(PKG_CONFIG),$(PKG_CONFIG_DIR)/$(pc)) + +$(PKG_CONFIG_LOCAL): PKG_CONFIG_PREFIX = $(XEN_ROOT) +$(PKG_CONFIG_LOCAL): PKG_CONFIG_INCDIR = $(XEN_LIBXENFOREIGNMEMORY)/include +$(PKG_CONFIG_LOCAL): PKG_CONFIG_LIBDIR = $(CURDIR) +$(PKG_CONFIG_LOCAL): PKG_CONFIG_CFLAGS_LOCAL = $(CFLAGS_xeninclude) + .PHONY: all all: build
@@ -32,7 +49,7 @@ build: $(MAKE) libs .PHONY: libs -libs: headers.chk $(LIB) +libs: headers.chk $(LIB) $(PKG_CONFIG_INST) $(PKG_CONFIG_LOCAL) headers.chk: $(wildcard include/*.h)
@@ -56,6 +73,7 @@ install: build $(SYMLINK_SHLIB) libxenforeignmemory.so.$(MAJOR).$(MINOR) $(DESTDIR)$(libdir)/libxenforeignmemory.so.$(MAJOR) $(SYMLINK_SHLIB) libxenforeignmemory.so.$(MAJOR) $(DESTDIR)$(libdir)/libxenforeignmemory.so $(INSTALL_DATA) include/xenforeignmemory.h $(DESTDIR)$(includedir) + $(INSTALL_DATA) xenforeignmemory.pc $(DESTDIR)$(PKG_INSTALLDIR) .PHONY: TAGS TAGS:
@@ -66,6 +84,7 @@ clean: rm -rf *.rpm $(LIB) *~ $(DEPS) $(LIB_OBJS) $(PIC_OBJS) rm -f libxenforeignmemory.so.$(MAJOR).$(MINOR) libxenforeignmemory.so.$(MAJOR) rm -f headers.chk + rm -f xenforeignmemory.pc .PHONY: distclean distclean: clean
tools/libs/foreignmemory/xenforeignmemory.pc.in new file +10 -0
@@ -0,0 +1,10 @@ +prefix=@@prefix@@ +includedir=@@incdir@@ +libdir=@@libdir@@ + +Name: Xenforeignmemory +Description: The Xenforeignmemory library for Xen hypervisor +Version: @@version@@ +Cflags: -I${includedir} @@cflagslocal@@ +Libs: @@libsflag@@${libdir} -lxenforeignmemory +Requires.private: xentoollog
Signature · 7 lines
2.10.2 _______________________________________________ Xen-devel mailing list [email protected] https://lists.xen.org/xen-devel
PATCH 15/16 tools: provide pkg-config file for libxenblktapctl
In reply to Juergen GrossIn order to be able to use pkg-config for obtaining linker- and compiler-flags provide a xenblktapctl.pc file.
--- .gitignore | 1 + tools/blktap2/control/Makefile | 23 +++++++++++++++++++++-- tools/blktap2/control/xenblktapctl.pc.in | 9 +++++++++ 3 files changed, 31 insertions(+), 2 deletions(-) create mode 100644 tools/blktap2/control/xenblktapctl.pc.in
.gitignore +1 -0
@@ -108,6 +108,7 @@ tools/libs/foreignmemory/headers.chk tools/libs/foreignmemory/xenforeignmemory.pc tools/libs/devicemodel/headers.chk tools/libs/devicemodel/xendevicemodel.pc +tools/blktap2/control/xenblktapctl.pc tools/blktap2/daemon/blktapctrl tools/blktap2/drivers/img2qcow tools/blktap2/drivers/lock-util
tools/blktap2/control/Makefile +21 -2
@@ -41,9 +41,26 @@ LIB_STATIC = $(LIBNAME).a LIB_SHARED = $(LIBSONAME).$(MINOR) IBIN = tap-ctl +PKG_CONFIG := xenblktapctl.pc +PKG_CONFIG_VERSION := $(MAJOR).$(MINOR) + +ifneq ($(CONFIG_LIBXC_MINIOS),y) +PKG_CONFIG_INST := $(PKG_CONFIG) +$(PKG_CONFIG_INST): PKG_CONFIG_PREFIX = $(prefix) +$(PKG_CONFIG_INST): PKG_CONFIG_INCDIR = $(includedir) +$(PKG_CONFIG_INST): PKG_CONFIG_LIBDIR = $(libdir) +endif + +PKG_CONFIG_LOCAL := $(foreach pc,$(PKG_CONFIG),$(PKG_CONFIG_DIR)/$(pc)) + +$(PKG_CONFIG_LOCAL): PKG_CONFIG_PREFIX = $(XEN_ROOT) +$(PKG_CONFIG_LOCAL): PKG_CONFIG_INCDIR = $(XEN_BLKTAP2)/include +$(PKG_CONFIG_LOCAL): PKG_CONFIG_LIBDIR = $(CURDIR) +$(PKG_CONFIG_LOCAL): PKG_CONFIG_CFLAGS_LOCAL = $(CFLAGS_xeninclude) $(CFLAGS_libxenctrl) + all: build -build: $(IBIN) $(LIB_STATIC) $(LIB_SHARED) +build: $(IBIN) $(LIB_STATIC) $(LIB_SHARED) $(PKG_CONFIG_INST) $(PKG_CONFIG_LOCAL) $(LIBNAME).so: $(LIBSONAME) ln -sf $< $@
@@ -60,18 +77,20 @@ $(LIB_STATIC): $(CTL_OBJS) $(LIB_SHARED): $(CTL_PICS) $(CC) $(LDFLAGS) -fPIC -Wl,$(SONAME_LDFLAG) -Wl,$(LIBSONAME) $(SHLIB_LDFLAGS) -rdynamic $^ -o $@ $(APPEND_LDFLAGS) -install: $(IBIN) $(LIB_STATIC) $(LIB_SHARED) +install: build $(INSTALL_DIR) -p $(DESTDIR)$(sbindir) $(INSTALL_PROG) $(IBIN) $(DESTDIR)$(sbindir) $(INSTALL_DATA) $(LIB_STATIC) $(DESTDIR)$(libdir) $(INSTALL_PROG) $(LIB_SHARED) $(DESTDIR)$(libdir) ln -sf $(LIBSONAME) $(DESTDIR)$(libdir)/$(LIBNAME).so ln -sf $(LIB_SHARED) $(DESTDIR)$(libdir)/$(LIBSONAME) + $(INSTALL_DATA) xenblktapctl.pc $(DESTDIR)$(PKG_INSTALLDIR) clean: rm -f $(OBJS) $(PICS) $(DEPS) $(IBIN) $(LIB_STATIC) $(LIB_SHARED) rm -f $(LIBNAME).so $(LIBSONAME) rm -f *~ + rm -f xenblktapctl.pc distclean: clean
tools/blktap2/control/xenblktapctl.pc.in new file +9 -0
@@ -0,0 +1,9 @@ +prefix=@@prefix@@ +includedir=@@incdir@@ +libdir=@@libdir@@ + +Name: Xenblktapctl +Description: The Xenblktapctl library for Xen hypervisor +Version: @@version@@ +Cflags: -I${includedir} @@cflagslocal@@ +Libs: @@libsflag@@${libdir} -lxenblktapctl
Signature · 7 lines
2.10.2 _______________________________________________ Xen-devel mailing list [email protected] https://lists.xen.org/xen-devel
Re: [PATCH 01/16] tools: fix typo in tools/Rules.mk
In reply to Juergen GrossQuoted 11 lines · Juergen Gross
Commit
78fb69ad9("tools/Rules.mk: Properly handle libraries with recursive dependencies.") introduced a copy and paste error intools/Rules.mk:
LDLIBS_libxenstoreandSHLIB_libxenstoredon't useSHDEPS_libxenstorebutSHDEPS_libxenguest. This will add a superfluous dependency of libxenstore on libxenevtchn.Correct this bug.
Signed-off-by Juergen Gross <[email protected]>
_______________________________________________
Xen-devel mailing list
[email protected]
https://lists.xen.org/xen-devel
Re: [PATCH 13/16] tools: provide pkg-config file for libxenstat
In reply to Juergen GrossQuoted 16 lines · Juergen Gross
In order to be able to use pkg-config for obtaining linker- and compiler-flags provide a xenstat.pc file.
Signed-off-by Juergen Gross <[email protected]>--- .gitignore | 1 + tools/xenstat/libxenstat/Makefile | 20 +++++++++++++++++++- tools/xenstat/libxenstat/xenstat.pc.in | 10 ++++++++++ 3 files changed, 30 insertions(+), 1 deletion(-) create mode 100644 tools/xenstat/libxenstat/xenstat.pc.in.gitignore +0
-0
.gitignore tools/xenmon/xentrace_setmask · line 245
Quoted 5 lines
.gitignore +1
-0@@ -241,6 +241,7 @@ tools/xenmon/xentrace_setmask tools/xenmon/xenbaked tools/xenpaging/xenpaging tools/xenpmd/xenpmd +tools/xenstat/libxenstat/xenstat.pc tools/xenstat/libxenstat/src/_paths.h
Minor nit: the ordering is wrong. Will try to rectify this while committing.
_______________________________________________
Xen-devel mailing list
[email protected]
https://lists.xen.org/xen-devel
Quoted 31 lines · Juergen Gross
To help consumers of the Xen libraries (e.g. qemu) to use correct flags when building provide pkg-config files for all libraries of Xen.
The first 2 patches correct some flags used by the Xen internal build system. The build process wasn't producing wrong results, but this was just pure luck as no flags were missing when building some libraries, but they came partially from other variables then they were meant to.
Patches 3 and 4 set the stage for generating the pkg-config files.
The rest of the patches are one for each directory where at least one library is being built. Especially patch 16 is modifying the way the already existing pkg-config files for libxenlight and libxlutil are being built to fit into the new scheme.
Even if not necessary right now I have added stubdom support for all libraries, not only the ones which are really used in stubdom environment.
Juergen Gross (16):
tools: fix typo intools/Rules.mk
tools: add missing library flag definitions
tools,stubdom: setPKG_CONFIG_DIRin main Makefiles
tools: add support for additional items in .pc files for local builds
tools: provide pkg-config file for libxentoollog
tools: provide pkg-config file for libxenevtchn
tools: provide pkg-config file for libxengnttab
tools: provide pkg-config file for libxencall
tools: provide pkg-config file for libxenforeignmemory
Quoted 8 lines
tools: provide pkg-config file for libxendevicemodel
tools: provide pkg-config file for libxenguest, update the one for
libxenctrl
tools: provide pkg-config file for libxenstore
tools: provide pkg-config file for libxenstat
tools: provide pkg-config file for libxenvchan
tools: provide pkg-config file for libxenblktapctl
tools: adapt xenlight.pc and xlutil.pc to new pkg-config scheme
Series:
_______________________________________________
Xen-devel mailing list
[email protected]
https://lists.xen.org/xen-devel