[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [XEN PATCH v8 00/47] xen: Build system improvements, now with out-of-tree build!
- To: Jan Beulich <jbeulich@xxxxxxxx>
- From: Anthony PERARD <anthony.perard@xxxxxxxxxx>
- Date: Tue, 18 Jan 2022 10:33:51 +0000
- Authentication-results: esa6.hc3370-68.iphmx.com; dkim=none (message not signed) header.i=none
- Cc: Alexandru Isaila <aisaila@xxxxxxxxxxxxxxx>, Wei Liu <wl@xxxxxxx>, "Jun Nakajima" <jun.nakajima@xxxxxxxxx>, Roger Pau Monné <roger.pau@xxxxxxxxxx>, Alistair Francis <alistair.francis@xxxxxxx>, "Daniel De Graaf" <dgdegra@xxxxxxxxxxxxx>, Konrad Rzeszutek Wilk <konrad.wilk@xxxxxxxxxx>, Kevin Tian <kevin.tian@xxxxxxxxx>, Connor Davis <connojdavis@xxxxxxxxx>, Doug Goldstein <cardoe@xxxxxxxxxx>, Bertrand Marquis <bertrand.marquis@xxxxxxx>, Ross Lagerwall <ross.lagerwall@xxxxxxxxxx>, "Bob Eshleman" <bobbyeshleman@xxxxxxxxx>, Andrew Cooper <andrew.cooper3@xxxxxxxxxx>, Tamas K Lengyel <tamas@xxxxxxxxxxxxx>, "Paul Durrant" <paul@xxxxxxx>, "Daniel P. Smith" <dpsmith@xxxxxxxxxxxxxxxxxxxx>, Volodymyr Babchuk <Volodymyr_Babchuk@xxxxxxxx>, Petre Pircalabu <ppircalabu@xxxxxxxxxxxxxxx>, Stefano Stabellini <sstabellini@xxxxxxxxxx>, Julien Grall <julien@xxxxxxx>, George Dunlap <george.dunlap@xxxxxxxxxx>, <xen-devel@xxxxxxxxxxxxxxxxxxxx>
- Delivery-date: Tue, 18 Jan 2022 10:34:13 +0000
- Ironport-data: A9a23:Xz5aHKxDc98WpB6hLmJ6t+dSwyrEfRIJ4+MujC+fZmUNrF6WrkUAz WUbXG2Dbq3cZmukco9xYYjk8kxT6JDWmoQ3HQNq+CAxQypGp/SeCIXC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4KSclD4bPLYmRHsQ==
- Ironport-sdr: ravQVB5qqZzQnM2bqsDL55nxSRm9POqT47PKZxPhGcBolCR7LcBM8yOWCeDd0clF1+QaDXr30U tMhLz03WPnBGjuKhsYXtQwYkWU7cLFOc0IlfF9trx3kIVNKSDBxudQYBR2NGnAPgmzDBW+ZrTX pHEWEreoP8LGYF+VaY1VdWUIyBIiO7EQZkzh9GF9LTcUqUTHc8iZuU2usPeApT3X+2FB2rGpQb pFpp5lA0TyJ1TuKNR2Ej8dPXCY4VmAR0ke7vqmlz8LPBqy4O0kGx36Qhk0zM63HjLsQwHssAST n6jXZLSgbVWog4I1QGjq6I4t
- List-id: Xen developer discussion <xen-devel.lists.xenproject.org>
On Tue, Dec 21, 2021 at 04:26:48PM +0100, Jan Beulich wrote:
> On 25.11.2021 14:39, Anthony PERARD wrote:
> > 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.
>
> I'm afraid I'm of two minds here. I don't think we want to force people to
> do out-of-tree builds, but I also dislike the idea of mixing in-tree and
> out-of-tree builds. Yet reading the above I understand that the shim build
> would conflict with an in-tree build because certain files would be picked
> (the shim build being an out-of-tree one) from the (dirtied) source tree,
> rather than the shim's build tree. Perhaps the extra path prefixes that I
> commented upon in an individual patch are then indeed the least bad route
> to take.
To me, the problem is with a few build artefact and configuration: the
".config" file that osstest write and edit, and the final location of
the "xen*" artefacts. Having something or someone wanting to edit
".config" breaks out-of-tree build. Otherwise, we could have forced
out-of-tree build like libvirt or qemu are doing.
> There's one compromise which comes to mind, but which may also not be
> liked: We could simply fail out-of-tree builds when the source tree is
> dirty. Then people wanting the shim built would need to use out-of-tree
This isn't a compromise, it is already implemented in "build: adding
out-of-tree support to the xen build". I revert this in patch "RFC,
no-VPATH: remove check for clean source tree for out-of-tree".
> builds also for the "main" hypervisor, but people suppressing the shim
> build anyway (or doing it separately, e.g. using a non-default .config)
> could continue to do in-tree builds. The one puzzle piece I'm lacking so
> far (perhaps simply because of having overlooked where it is) is how, for
> a full-build-of-everything, one would control where the xen/ part of the
> build would go _outside_ of the source (sub-)tree.
I guess that's not really an issue. It would be easy to run `make -C
xen-build -f ../xen/Makefile` (or `make -C xen O=../xen-build`, or even
`make -C xen O=build` would be fine too). With maybe a make variable to
let someone specify a different output tree.
For a full-build-of-everything, we can easily do out-of-tree build. The
full-install-of-everything can pick the build artefact from the new
place. The issue is when someone want that and edit ".config" of the
hypervisor, as adding the file will stop out-of-tree build, so pv shim
will not be able to use out-of-tree build.
But maybe going with mixing in-tree and out-of-tree build is going to be
too complicated. The hard part is for the build system to differentiate
between source file and generated source file, so that might break from
time to time. So maybe avoiding mixing and thus breaking build of some
users might be better and more reliable in the long term.
Cheers,
--
Anthony PERARD
|