xen: Build system improvements
Get series with b4
b4 am [email protected]Versions newest first · linked by author and title
- v3 Latest23 patches 52 repliesIn review
- v212 patches 37 repliesSuperseded
Changes in v3 from the cover letter
- new patches that do some cleanup or fix issues
- have rework most patches, to have better commit message or change the coding style, or fix issues that I've seen. There were some cases where CFLAGS were missing.
See patch notes for details
- introduce if_changed*. That plenty of new patches on top of what we had in v2. (those changes ignore CONFIG_LTO=y, I'll see about fixing that later)
Patches in v3 No applies recorded yet
| # | Subject and files | Size | Replies | Applied |
|---|---|---|---|---|
| 1/23 | xen/include: remove include of Config.mkxen/ | +0 | 0 replies | |
| 2/23 | Makefile: Fix install-testsMakefile xen/ | +5 | 0 replies | |
| 3/23 | xen/build: Remove confusing comment on the %.s:%.S rulexen/ | +0 | 1 reply | |
| 4/23 | xen/build: remove use of AFLAGS-yxen/ | +2 | 1 reply | |
| 5/23 | xen/build: Allow to test clang .include without asm symlinkxen/ | +1 | 2 replies | |
| 6/23 | xen/build: Fix section-renaming of libfdt and libelfxen/ | +6 | 1 reply | |
| 7/23 | xen/build: Use obj-y += subdir/ instead of subdir-yxen/ xen/ xen/ +16 more | +60 | 9 replies | |
| 8/23 | xen/build: use $(clean) shorthand for clean targetsxen/ xen/ xen/ | +14 | 0 replies | |
| 9/23 | xen/build: extract clean target from Rules.mkxen/ xen/ xen/ | +36 | 1 reply | |
| 10/23 | xen/build: run targets csopes, tags, .. without Rules.mkxen/ xen/ | +15 | 1 reply | |
| 11/23 | xen/build: make tests in test/ directlyxen/ | +4 | 0 replies | |
| 12/23 | xen/build: Move as-option-add to xen/Config.mk xen/ | +17 | 1 reply | |
| 13/23 | xen/build: include include/config/auto.conf in main Makefilexen/ | +73 | 3 replies | |
| 14/23 | xen/build: use new $(c_flags) and $(a_flags) instead of $(CFLAGS)xen/ xen/ xen/ +5 more | +27 | 4 replies | |
| 15/23 | xen/build: have the root Makefile generates the CFLAGSxen/ xen/ xen/ +12 more | +283 | 8 replies | |
| 16/23 | xen/build: introduce if_changed and if_changed_rule.gitignore xen/ xen/ +1 more | +192 | 3 replies | |
| 17/23 | xen/build: Start using if_changedxen/ xen/ xen/ +4 more | +84 | 3 replies | |
| 18/23 | xen/build: use if_changed on built_in.oxen/ | +10 | 2 replies | |
| 19/23 | xen/build: Use if_changed_rules with %.o:%.c targetsxen/ | +17 | 2 replies | |
| 20/23 | xen/build: factorise generation of the linker scriptsxen/ xen/ xen/ | +13 | 4 replies | |
| 21/23 | xen/build: Use if_changed for prelink*.oxen/ | +4 | 2 replies | |
| 22/23 | xen, symbols: rework file symbols selectionxen/ | +17 | 1 reply | |
| 23/23 | xen/build: use if_changed to build guest_%.oxen/ xen/ xen/ +1 more | +31 | 1 reply |
Reviews trailers per patch
16 of 23 patches have a Reviewed-by or Acked-by.
| Patch | Jan Beulich | Wei Liu | Roger Pau Monné | Julien Grall | Kevin Tian |
|---|---|---|---|---|---|
| 1/23 | R-b | ||||
| 2/23 | R-b | ||||
| 3/23 | A-b | ||||
| 4/23 | A-b | ||||
| 5/23 | A-b | R-b | |||
| 6/23 | R-b | ||||
| 7/23 | A-b | R-b | A-b | R-b | |
| 8/23 | R-b | ||||
| 9/23 | R-b | ||||
| 10/23 | A-b | ||||
| 11/23 | R-b | ||||
| 12/23 | A-b | ||||
| 13/23 | |||||
| 14/23 | R-b | ||||
| 15/23 | |||||
| 16/23 | |||||
| 17/23 | A-b | R-b | |||
| 18/23 | |||||
| 19/23 | R-b | ||||
| 20/23 | |||||
| 21/23 | A-b | R-b | |||
| 22/23 | |||||
| 23/23 |
Trailers given in replies are filled; those carried in the patches from earlier versions are outlined with dashes. Scroll the table sideways for all 5 reviewers.
Cover letter [Xen-devel] [XEN PATCH v3 00/23] xen: Build system improvements
Patch series available in this git branch:
https://xenbits.xen.org/git-http/people/aperard/xen-unstable.git br.build-system-xen-v3
v3:
- new patches that do some cleanup or fix issues
- have rework most patches, to have better commit message or change the coding style, or fix issues that I've seen. There were some cases where CFLAGS were missing.
See patch notes for details
- introduce if_changed*. That plenty of new patches on top of what we had in v2. (those changes ignore CONFIG_LTO=y, I'll see about fixing that later)
(There is more to come in order to use fixdep from Linux, but that's not ready)
v2.1:
- some fixes
v2:
Rather than taking Kbuild and making it work with Xen, the v2 takes the opposite approach of slowly transforming our current build system into Kbuild. That have the advantage of keeping all the feature we have and making the patches much easier to review. Kconfig update is done in an other patch series.
Hi,
I have work toward building Xen (the hypervisor) with Linux's build system, Kbuild.
The main reason for that is to be able to have out-of-tree build. It's annoying when a build fail because of the pvshim. Other benefit is a much faster rebuild, and make clean doesn't take ages, and better dependencies to figure out what needs to be rebuild.
So, we are not there yet, but the series already contain quite a few improvement and cleanup. More patches are going to be added to the series.
Cheers,
Anthony PERARD (23):
xen/include: remove include of Config.mk
Makefile: Fix install-tests
xen/build: Remove confusing comment on the %.s:%.S rule xen/build: remove use of AFLAGS-y
xen/build: Allow to test clang .include without asm symlink xen/build: Fix section-renaming of libfdt and libelf xen/build: Use obj-y += subdir/ instead of subdir-y xen/build: use $(clean) shorthand for clean targets xen/build: extract clean target from Rules.mk xen/build: run targets csopes,tags,.. without Rules.mk xen/build: make tests in test/ directly
xen/build: Move as-option-add to xen/
xen/build: include include/config/auto.conf in main Makefile xen/build: use new $(c_flags) and $(a_flags) instead of $(CFLAGS) xen/build: have the root Makefile generates the CFLAGS xen/build: introduce if_changed and if_changed_rule xen/build: Start using if_changed
xen/build: use if_changed on built_in.o
xen/build: Use if_changed_rules with %.o:%.c targets xen/build: factorise generation of the linker scripts xen/build: Use if_changed for prelink*.o
xen,symbols: rework file symbols selection
xen/build: use if_changed to build guest_%.o
.gitignore | 1 + Config.mk | 17 -- Makefile | 6 +- xen/Makefile | 257 ++++++++++++++++++++----- xen/Rules.mk | 269 +++++++++++++++------------ xen/arch/arm/Makefile | 33 ++-- xen/arch/arm/Rules.mk | 93 --------- xen/arch/arm/arch.mk | 88 +++++++++ xen/arch/arm/arm32/Makefile | 2 +- xen/arch/arm/arm64/Makefile | 2 +- xen/arch/arm/efi/Makefile | 2 +- xen/arch/x86/Makefile | 55 +++--- xen/arch/x86/Rules.mk | 91 +-------- xen/arch/x86/acpi/Makefile | 2 +- xen/arch/x86/arch.mk | 84 +++++++++ xen/arch/x86/cpu/Makefile | 4 +- xen/arch/x86/efi/Makefile | 9 +- xen/arch/x86/guest/Makefile | 4 +- xen/arch/x86/hvm/Makefile | 6 +- xen/arch/x86/mm/Makefile | 19 +- xen/arch/x86/mm/hap/Makefile | 15 +- xen/arch/x86/mm/shadow/Makefile | 15 +- xen/arch/x86/x86_64/Makefile | 2 +- xen/common/Makefile | 10 +- xen/common/libelf/Makefile | 14 +- xen/common/libfdt/Makefile | 11 +- xen/drivers/Makefile | 14 +- xen/drivers/acpi/Makefile | 6 +- xen/drivers/passthrough/Makefile | 8 +- xen/drivers/passthrough/vtd/Makefile | 2 +- xen/include/Makefile | 4 +- xen/lib/Makefile | 2 +- xen/scripts/Kbuild.include | 134 +++++++++++++ xen/scripts/Makefile.clean | 30 +++ xen/tools/symbols.c | 22 ++- xen/xsm/Makefile | 2 +- xen/xsm/flask/Makefile | 21 ++- xen/xsm/flask/ss/Makefile | 2 +- 38 files changed, 870 insertions(+), 488 deletions(-) create mode 100644 xen/arch/arm/arch.mk create mode 100644 xen/arch/x86/arch.mk create mode 100644 xen/scripts/Makefile.clean
Signature · 7 lines
Anthony PERARD _______________________________________________ Xen-devel mailing list [email protected] https://lists.xenproject.org/mailman/listinfo/xen-devel