[DTrace-devel] [PATCH 0/5] improve build configurability
Nick Alcock
nick.alcock at oracle.com
Wed Nov 29 16:08:24 UTC 2023
This series improves the build system, letting you override the results
of all Makeconfig tests, making it a tiny bit more likely that cross-
compilation will succeed (though since it is still untested, only a
*bit* more likely), and implementing a configure script so that you
can avoid having to specify Make variable assignments over and
over again.
A couple of possible configurable values are missing, mostly because they're
not in the top-level makefile and thus cannot be overridden by this
mechanism (notably KERNELDIRPREFIX and KERNELDIRSUFFIX): these are revamped
in another series of mine anyway, and can be added to this machinery once
that goes in.
This series is also pushed to
https://github.com/oracle/dtrace-utils nix/review/configury
The dtrace userspace this series applies atop is found at
https://github.com/oracle/dtrace-utils devel
DTrace should work against unmodified upstream kernels now, but some
features work better with a couple of patches and with natively-built CTF. A
kernel tree that does that is here (do a make ctf after building, and a
make ctf_install after make modules_install):
https://github.com/oracle/dtrace-linux-kernel devel/v2/6.6/dtrace
Nick Alcock (5):
build: overridable configuration variables
build: get the architecture from gcc -dumpmachine, not uname -m
build: avoid building config.mk unnecessarily
build: support make help-overrides and make help-options
build: add configure script
GNUmakefile | 90 ++++++++++++++++++-------------
Makeconfig | 103 +++++++++++++++++++++++++++---------
Makeoptions | 19 ++++---
README.md | 15 ++++--
configure | 149 ++++++++++++++++++++++++++++++++++++++++++++++++++++
5 files changed, 302 insertions(+), 74 deletions(-)
create mode 100755 configure
base-commit: 347ad8afa3a13135641ea2e6c73692d1743254be
--
2.42.0.271.g85384428f1
More information about the DTrace-devel
mailing list