[PATCH I v2 0/6] tools: streamline tools/libs/ building

Juergen Gross posted 6 patches 3 years, 8 months ago
Patches applied successfully (tree, apply log)
git fetch https://github.com/patchew-project/xen tags/patchew/20200815130341.27147-1-jgross@suse.com
Maintainers: Ian Jackson <ian.jackson@eu.citrix.com>, Wei Liu <wl@xen.org>, Andrew Cooper <andrew.cooper3@citrix.com>, Samuel Thibault <samuel.thibault@ens-lyon.org>, Jan Beulich <jbeulich@suse.com>, Stefano Stabellini <sstabellini@kernel.org>, Julien Grall <julien@xen.org>, Nick Rosbrook <rosbrookn@ainfosec.com>, Anthony PERARD <anthony.perard@citrix.com>, George Dunlap <george.dunlap@citrix.com>
.gitignore                        |   1 +
stubdom/mini-os.mk                |  17 ++++
tools/Rules.mk                    | 134 ++++++++++++------------------
tools/console/daemon/io.c         |   6 +-
tools/golang/xenlight/Makefile    |   4 +-
tools/include/xen-tools/libs.h    |   4 +
tools/libs/call/Makefile          |   4 +-
tools/libs/call/buffer.c          |   3 +-
tools/libs/devicemodel/Makefile   |   4 +-
tools/libs/evtchn/Makefile        |   4 +-
tools/libs/foreignmemory/Makefile |   4 +-
tools/libs/foreignmemory/linux.c  |   3 +-
tools/libs/gnttab/Makefile        |   4 +-
tools/libs/gnttab/private.h       |   3 -
tools/libs/hypfs/Makefile         |   4 +-
tools/libs/libs.mk                |  37 +++++++--
tools/libs/toolcore/Makefile      |   3 +-
tools/libs/toollog/Makefile       |   3 +-
tools/libvchan/Makefile           |   2 +-
tools/libxc/Makefile              |   2 +-
tools/libxc/xg_private.h          |   1 -
tools/libxl/libxl_internal.h      |   3 -
tools/xenstat/libxenstat/Makefile |   2 +-
tools/xenstore/Makefile           |   2 +-
tools/xenstore/xenstored_core.c   |   2 -
25 files changed, 119 insertions(+), 137 deletions(-)
create mode 100644 stubdom/mini-os.mk
[PATCH I v2 0/6] tools: streamline tools/libs/ building
Posted by Juergen Gross 3 years, 8 months ago
Generate many make variables automatically instead of having to
reiterate common patterns multiple times.

This is part I of a larger series. The previous version included the
move of multiple other libraries below tools/libs. In V2 I have
decided to split the series up, as this makes it easier to commit
some parts early.

Part I just contains some cleanup work and the automatic generation
of the make variables, without moving any other libraries under
tools/libs.

Patches 1-5 can go in independently from each other, just patch 6
depends on some of the first 5 patches.

The other parts will be sent out later, moving more libraries.

Changes in V2:
- split series up in multiple parts, part I containing only patches
  1-5 and 12 of the series V1
- eliminate the LIBNAME variable from tools/libs/*/Makefile (patch 6)

Juergen Gross (6):
  stubdom: add stubdom/mini-os.mk for Xen paths used by Mini-OS
  tools: switch XEN_LIBXEN* make variables to lower case (XEN_libxen*)
  tools: add a copy of library headers in tools/include
  tools: don't call make recursively from libs.mk
  tools: define ROUNDUP() in tools/include/xen-tools/libs.h
  tools: generate most contents of library make variables

 .gitignore                        |   1 +
 stubdom/mini-os.mk                |  17 ++++
 tools/Rules.mk                    | 134 ++++++++++++------------------
 tools/console/daemon/io.c         |   6 +-
 tools/golang/xenlight/Makefile    |   4 +-
 tools/include/xen-tools/libs.h    |   4 +
 tools/libs/call/Makefile          |   4 +-
 tools/libs/call/buffer.c          |   3 +-
 tools/libs/devicemodel/Makefile   |   4 +-
 tools/libs/evtchn/Makefile        |   4 +-
 tools/libs/foreignmemory/Makefile |   4 +-
 tools/libs/foreignmemory/linux.c  |   3 +-
 tools/libs/gnttab/Makefile        |   4 +-
 tools/libs/gnttab/private.h       |   3 -
 tools/libs/hypfs/Makefile         |   4 +-
 tools/libs/libs.mk                |  37 +++++++--
 tools/libs/toolcore/Makefile      |   3 +-
 tools/libs/toollog/Makefile       |   3 +-
 tools/libvchan/Makefile           |   2 +-
 tools/libxc/Makefile              |   2 +-
 tools/libxc/xg_private.h          |   1 -
 tools/libxl/libxl_internal.h      |   3 -
 tools/xenstat/libxenstat/Makefile |   2 +-
 tools/xenstore/Makefile           |   2 +-
 tools/xenstore/xenstored_core.c   |   2 -
 25 files changed, 119 insertions(+), 137 deletions(-)
 create mode 100644 stubdom/mini-os.mk

-- 
2.26.2