tools: Refactor "xentoollog" into its own library
authorIan Campbell <ian.campbell@citrix.com>
Wed, 16 Dec 2015 12:31:09 +0000 (12:31 +0000)
committerIan Campbell <ian.campbell@citrix.com>
Tue, 5 Jan 2016 11:45:26 +0000 (11:45 +0000)
commit5d3dc8671521ea4a4f753e77d3e7fb3a3a6f5f80
tree8e9ff83461cb751a73f8e8ce33d0dbbd140c83db
parentb48aae50a872b9db3c595f2b0e2277087c7819d9
tools: Refactor "xentoollog" into its own library

In attempting to disaggregate libxenctrl I found that many of the
pieces were going to want access to this library, so split it out (as
it probably should always have been).

Various build adjustments are needed. In particular things which use
xtl_* themselves now need to explicity link against the library.

This has a nice side effect which is that users of libxl no longer
need to link against libxenctrl just to create a logger, which was
counter to the principal that applications using libxl shouldn't be
required to look behind the curtain. This means that xl no longer
links against libxenctrl.

The new library uses a version script to ensure that only expected
symbols are exported and to version them such that ABI guarantees can
be kept in the future.

Signed-off-by: Ian Campbell <ian.campbell@citrix.com>
Acked-by: Ian Jackson <ian.jackson@eu.citrix.com>
Acked-by: Wei Liu <wei.liu2@citrix.com>
[ ijc -- dropped QEMU_TRADITIONAL_REVISION update, this had since
         progressed to 569eac99e8dd which is after 9fad9ed28583, the
         commit needed here. ]
21 files changed:
.gitignore
Config.mk
stubdom/Makefile
stubdom/grub/Makefile
tools/Makefile
tools/Rules.mk
tools/libs/Makefile [new file with mode: 0644]
tools/libs/toollog/Makefile [new file with mode: 0644]
tools/libs/toollog/include/xentoollog.h [new file with mode: 0644]
tools/libs/toollog/libxentoollog.map [new file with mode: 0644]
tools/libs/toollog/xtl_core.c [new file with mode: 0644]
tools/libs/toollog/xtl_logger_stdio.c [new file with mode: 0644]
tools/libxc/Makefile
tools/libxc/include/xentoollog.h [deleted file]
tools/libxc/xtl_core.c [deleted file]
tools/libxc/xtl_logger_stdio.c [deleted file]
tools/libxl/Makefile
tools/ocaml/libs/xentoollog/Makefile
tools/ocaml/libs/xentoollog/genlevels.py
tools/python/setup.py
tools/xenpaging/Makefile