git: sys/conf: Share compiler flags and rules between kernel and modules
Aaron LI
aly at crater.dragonflybsd.org
Fri Nov 20 06:09:37 PST 2026
commit 264f8eb4467d39fa8cb4610ca5fc653b1ae9a267
Author: Aaron LI <aly at aaronly.me>
Date: Fri Nov 20 12:58:56 2026 +0800
sys/conf: Share compiler flags and rules between kernel and modules
* Move the common CFLAGS to bsd.kern.mk, and include it earlier in
kern.pre.mk and kmod.sh, so the flags ordering in CFLAGS is mostly
preserved.
* Clear the suffix rules and CFLAGS from <sys.mk> and explicitly define
them in bsd.kern.mk, for use in the kernel and modules building.
Summary of changes:
sys/conf/bsd.kern.mk | 40 +++++++++++++++++++++++++++++++++++++++-
sys/conf/kern.post.mk | 2 --
sys/conf/kern.pre.mk | 22 ++++++----------------
sys/conf/kmod.mk | 18 ++----------------
4 files changed, 47 insertions(+), 35 deletions(-)
http://gitweb.dragonflybsd.org/dragonfly.git/commitdiff/264f8eb4467d39fa8cb4610ca5fc653b1ae9a267
--
DragonFly BSD source repository
More information about the Commits
mailing list