[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [XEN PATCH for-4.17 v5 00/17] Toolstack build system improvement, toward non-recursive makefiles
Patch series available in this git branch: https://xenbits.xen.org/git-http/people/aperard/xen-unstable.git br.toolstack-build-system-v5 Changes in v5: - rebased on staging - added "tools: Rework linking options for ocaml binding libraries" Changes in v4: - several new patches - some changes to other patches listed in their changelogs Changes in v3: - rebased - several new patches, starting with 13/25 "tools/libs/util: cleanup Makefile" - introducing macros to deal with linking with in-tree xen libraries - Add -Werror to CFLAGS for all builds in tools/ Changes in v2: - one new patch - other changes described in patch notes Hi everyone, I've been looking at reworking the build system we have for the "tools/", and transforming it to something that suit it better. There are a lot of dependencies between different sub-directories so it would be nice if GNU make could actually handle them. This is possible with "non-recursive makefiles". With non-recursive makefiles, make will have to load/include all the makefiles and thus will have complete overview of all the dependencies. This will allow make to build the necessary targets in other directory, and we won't need to build sub-directories one by one. To help with this transformation, I've chosen to go with a recent project called "subdirmk". It help to deal with the fact that all makefiles will share the same namespace, it is hooked into autoconf, we can easily run `make` from any subdirectory. Together "autoconf" and "subdirmk" will also help to get closer to be able to do out-of-tree build of the tools, but I'm mainly looking to have non-recursive makefile. Link to the project: https://www.chiark.greenend.org.uk/ucgi/~ian/git/subdirmk.git/ But before getting to the main course, I've got quite a few cleanup and some changes to the makefiles. I start the patch series with patches that remove old left over stuff, then start reworking makefiles. They are some common changes like removing the "build" targets in many places as "all" would be the more common way to spell it and "all" is the default target anyway. They are other changes related to the conversion to "subdirmk", I start to use the variable $(TARGETS) in several makefiles, this variable will have a special meaning in subdirmk which will build those target by default. As for the conversion to non-recursive makefile, with subdirmk, I have this WIP branch, it contains some changes that I'm trying out, some notes, and the conversion, one Makefile per commit. Cleanup are still needed, some makefile not converted yet, but it's otherwise mostly done. https://xenbits.xen.org/git-http/people/aperard/xen-unstable.git br.toolstack-build-system-v1-wip-extra With that branch, you could tried something like: ./configure; cd tools/xl; make and `xl` should be built as well as all the xen library needed. Also, things like `make clean` or rebuild should be faster in the all tools/ directory. Cheers, Anthony PERARD (17): tools/debugger/gdbsx: Fix and cleanup makefiles tools/xentrace: rework Makefile tools: Introduce $(xenlibs-ldflags, ) macro tools: Add -Werror by default to all tools/ tools: Remove -Werror everywhere else tools/hotplug: Generate "hotplugpath.sh" with configure libs/light/gentypes.py: allow to generate headers in subdirectory git-checkout.sh: handle running git-checkout from a different directory libs: Avoid exposing -Wl,--version-script to other built library libs: Fix auto-generation of version-script for unstable libs tools/include: Rework Makefile libs/light: Rework acpi table build targets libs/light: Rework generation of include/_libxl_*.h libs/light: Rework targets prerequisites libs/light: Makefile cleanup tools/golang/xenlight: Rework gengotypes.py and generation of *.gen.go tools: Rework linking options for ocaml binding libraries tools/configure.ac | 2 + tools/console/client/Makefile | 1 - tools/console/daemon/Makefile | 1 - tools/debugger/gdbsx/Makefile | 20 +++---- tools/debugger/gdbsx/gx/Makefile | 15 +++--- tools/debugger/gdbsx/xg/Makefile | 25 +++------ tools/debugger/kdd/Makefile | 1 - tools/flask/utils/Makefile | 1 - tools/fuzz/cpu-policy/Makefile | 2 +- tools/golang/xenlight/Makefile | 8 +-- tools/hotplug/common/Makefile | 10 +--- tools/include/Makefile | 28 +++++----- tools/libs/call/Makefile | 1 + tools/libs/ctrl/Makefile | 3 -- tools/libs/devicemodel/Makefile | 1 + tools/libs/evtchn/Makefile | 1 + tools/libs/foreignmemory/Makefile | 1 + tools/libs/gnttab/Makefile | 1 + tools/libs/guest/Makefile | 3 -- tools/libs/hypfs/Makefile | 1 + tools/libs/light/Makefile | 72 +++++++++++++++----------- tools/libs/stat/Makefile | 2 +- tools/libs/store/Makefile | 1 + tools/libs/toolcore/Makefile | 1 + tools/libs/toollog/Makefile | 1 + tools/libs/util/Makefile | 3 -- tools/libs/vchan/Makefile | 3 -- tools/misc/Makefile | 1 - tools/ocaml/libs/eventchn/Makefile | 2 +- tools/ocaml/libs/xc/Makefile | 2 +- tools/ocaml/libs/xentoollog/Makefile | 2 +- tools/ocaml/libs/xl/Makefile | 2 +- tools/tests/cpu-policy/Makefile | 2 +- tools/tests/depriv/Makefile | 2 +- tools/tests/resource/Makefile | 1 - tools/tests/tsx/Makefile | 1 - tools/tests/xenstore/Makefile | 1 - tools/xcutils/Makefile | 2 - tools/xenmon/Makefile | 1 - tools/xenpaging/Makefile | 1 - tools/xenpmd/Makefile | 1 - tools/xentop/Makefile | 2 +- tools/xentrace/Makefile | 29 ++++------- tools/xl/Makefile | 2 +- tools/Rules.mk | 20 +++++++ tools/debugger/gdbsx/Rules.mk | 2 +- tools/firmware/Rules.mk | 2 - tools/libfsimage/common.mk | 2 +- tools/libs/libs.mk | 21 +++++--- tools/libs/light/libxl_x86_acpi.c | 2 +- tools/ocaml/common.make | 2 +- .gitignore | 6 --- config/Tools.mk.in | 1 + scripts/git-checkout.sh | 4 +- tools/configure | 29 ++++++++++- tools/golang/xenlight/gengotypes.py | 10 +++- tools/hotplug/common/hotplugpath.sh.in | 16 ++++++ tools/libs/light/gentypes.py | 9 ++-- tools/xenstore/Makefile.common | 1 - 59 files changed, 218 insertions(+), 172 deletions(-) create mode 100644 tools/hotplug/common/hotplugpath.sh.in -- Anthony PERARD
|
Lists.xenproject.org is hosted with RackSpace, monitoring our |