Skip to content

xen: Build system improvements, now with out-of-tree build!

Anthony PERARD xen-devel 4 versions – In review

Get series with b4
b4 am [email protected]

Versions newest first · linked by author and title

  1. v10 Latest7 patches 6 repliesIn review
  2. v930 patches 40 repliesSuperseded
  3. v847 patches 62 repliesSuperseded
Earlier versions · 1
VersionPostedPatchesRepliesStatus
v751 patches109 repliesSuperseded

Changes in v10 from the cover letter

Mainly a rebase (changes needed in patches 1 and 3). One comment change in patch 1.

Patches in v10 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/7build: grab common EFI source files in arch specific dirxen/Makefile xen/arch/arm/efi/Makefile xen/arch/x86/efi/Makefile +1 more+18 -112 replies
2/7build: replace $(BASEDIR) by $(objtree)xen/Rules.mk xen/arch/arm/Makefile xen/arch/x86/Makefile +2 more+27 -272 replies
3/7build: replace $(BASEDIR) and use $(srctree)xen/Kconfig xen/Makefile xen/Rules.mk +9 more+35 -300 replies
4/7build: rework "headers*.chk" prerequisite in include/xen/include/Makefile+18 -50 replies
5/7build: specify source tree in include/ for prerequisitexen/include/Makefile+9 -90 replies
6/7build: shuffle main Makefilexen/Makefile+23 -230 replies
7/7build: adding out-of-tree support to the xen build.gitignore xen/Makefile xen/Rules.mk +7 more+164 -222 replies

Reviews trailers per patch

All 7 patches have a Reviewed-by or Acked-by.

PatchJan BeulichDaniel P. SmithJulien GrallRoss Lagerwall
1/7A-b A-b
2/7A-b A-b A-b
3/7A-b R-b
4/7A-b
5/7A-b
6/7A-b
7/7A-b R-b A-b T-b A-b

Trailers given in replies are filled; those carried in the patches from earlier versions are outlined with dashes. Scroll the table sideways for all 4 reviewers.

Read the v10 thread

Cover letter [XEN PATCH v10 0/7] xen: Build system improvements, now with out-of-tree build!

Patch series available in this git branch:
https://xenbits.xen.org/git-http/people/aperard/xen-unstable.git br.build-system-xen-v10

v10:
Mainly a rebase (changes needed in patches 1 and 3). One comment change in patch 1.

v9:
One new patch (patch 3).
Otherwise, detailed change logs in patches.

Removed the rfc part about doing out-of-tree build without setting VPATH (which would have allowed mixed in-tree / out-of-tree builds).

v8:
Mostly rework of v7. With many patch already applied.
Some detail changes that are spread through many patches:
- make cloc recipe should now work throughout the series, update of it is done in 3 patches.
- new patch "build: fix enforce unique symbols for recent clang version" to fix an issue with clang.
- introducing $(srctree) and $(objtree) earlier
- introducing $(srcdir) as shortcut for $(srctree)/$(src)
- introduce usage of -iquote instead of -I in some cases
More detail change log can be found in patches notes.

Also this v8 present a work-in-progress of the ability to do out-of-tree build without setting VPATH. This is presented as an alternative to force use of out-of-tree build. As the last patch show, it allows to build the xen-shim without the linkfarm and we don't need to make any other changes to any thing that build xen (osstest, distribution packages, xen.git, ..., and developers finger macros). The patches are only there as WIP / RFC as they were some concern about the usefulness and extra changes needed. We can decide whether those changes are good or if this is too much and we should force out-of-tree build for the hypervisor.

v7:
Out-of-tree build!

This mean many more patches. Everything after patch 27 is new.

There's a few new patch before that, but otherwise are rework of v6.

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.

Cheers,

Anthony PERARD (7):
build: grab common EFI source files in arch specific dir
build: replace $(BASEDIR) by $(objtree)
build: replace $(BASEDIR) and use $(srctree)
build: rework "headers*.chk" prerequisite in include/
build: specify source tree in include/ for prerequisite
build: shuffle main Makefile
build: adding out-of-tree support to the xen build

 .gitignore                   |   1 +
 xen/Kconfig                  |   4 +-
 xen/Makefile                 | 187 +++++++++++++++++++++++++++--------
 xen/Rules.mk                 |  22 ++++-
 xen/arch/arm/Makefile        |  10 +-
 xen/arch/arm/efi/Makefile    |   4 +-
 xen/arch/x86/Makefile        |  32 +++---
 xen/arch/x86/arch.mk         |   7 +-
 xen/arch/x86/boot/Makefile   |   6 ++
 xen/arch/x86/efi/Makefile    |   5 +-
 xen/build.mk                 |   4 +-
 xen/common/Makefile          |   4 +-
 xen/common/efi/efi-common.mk |  16 +++
 xen/common/libfdt/Makefile   |   2 +-
 xen/include/Makefile         |  60 ++++++-----
 xen/scripts/Kconfig.include  |   2 +-
 xen/scripts/Makefile.clean   |   5 +-
 xen/test/livepatch/Makefile  |  14 +--
 xen/xsm/flask/Makefile       |  13 +--
 xen/xsm/flask/ss/Makefile    |   1 +
 20 files changed, 283 insertions(+), 116 deletions(-)
 create mode 100644 xen/common/efi/efi-common.mk
Signature · 1 line
Anthony PERARD