Design session notes: Build system gripe session
Below are the raw notes. General agreements seem to be:
* Removing external builds from xen build system is an advantage for the main users (developers, distros / packagers)
* Out-of-tree build is useful for lots of circumstances; symlink trick used to work around its lack causes lots of problems
There didn't seem to be anyone volunteering to hack at the build system, but with enough interest in seeing it change, and a general agreement on the direction we want to go, perhaps someone will step up when they get a chance.
-George
https://hackmd.io/mAGT5bU9T6-aXJVj88deYw
# Build system gripe session
***Link available from the design-sessions session description page***
Topics include:
* Moving "external" builds to a separate part of the tree, not built by
default
* Adding more "external" builds; pvgrub for instance
* Making it easy to build with no internet access
* Using git submodules
Issues:
1. out of tree build not supported -- shim build still half broken
2. Xen build re-evaluates compiler support for every translation unit. (Switch to newer Kconfig.)
3. meta virtualization build system (yocto) needs to pull simlink tricks, xen's build system stomp on that
4. containerize.sh is broken by symlink tricks in the build system
5. External projects get pulled in. Some think they should be removed, some think more should be added. Solved by raisin but nobody used it
For out-of-tree build, for xen, use Kbuild.
Would be nice to be able to do (without having to clean or fix or patch):
``` make CONFIG=release.config O=output/release make CONFIG=shim.config O=output/shim ```
Different users have differnt requirements: developers, users, distro packagers.
For everyday users we should point people to their distros.
Raisin tried to be devstack, which is not developers want or trust.
People in favour of removing more stuff from xen.git. Should start with a document describing how to build a xen system -- pull this tree, use this rune etc etc. Or use Android's build system?
Git runes in tree should disappear.
Need transitional plan for osstest.
_______________________________________________
Xen-devel mailing list
[email protected]
https://lists.xenproject.org/mailman/listinfo/xen-devel
Quoted 1 line · George Dunlap
Or use Android's build system?
I never worked with AOSP's sources, but after reading
https://elinux.org/Android_Build_System
the build system seems quite helpful.
If we can do the following to build libxl, I think we could live with a similar build system:
make libxl
or
. build/envsetup.sh
cd tools/libxl
mma
Right now, building just libxl is complicated, one needs to figure out all the dependencies or build all tools/.
But I don't know how ./configure would work with that, or if it is needed.
Signature · 6 lines
Anthony PERARD _______________________________________________ Xen-devel mailing list [email protected] https://lists.xenproject.org/mailman/listinfo/xen-devel
Quoted 7 lines · George Dunlap
...
https://hackmd.io/mAGT5bU9T6-aXJVj88deYw
...3. meta virtualization build system (yocto) needs to pull simlink tricks, xen's build system stomp on that
Are more details available on this item?
This script can be used to cross-compile Xen for x86 or Arm, using OE/Yocto meta-virtualization: https://github.com/dozylynx/oe-build-xen
Rich
_______________________________________________
Xen-devel mailing list
[email protected]
https://lists.xenproject.org/mailman/listinfo/xen-devel