Re: git: 2f1acc54054c - main - kern: Have .m rules depend sys/tools/makeobjops.awk
- In reply to: Ed Maste : "git: 2f1acc54054c - main - kern: Have .m rules depend sys/tools/makeobjops.awk"
- Go to: [ bottom of page ] [ top of archives ] [ this month ]
Date: Fri, 20 Nov 2026 18:26:34 UTC
> On Nov 21, 2026, at 12:59 AM, Ed Maste <emaste@freebsd.org> wrote:
>
> The branch main has been updated by emaste:
>
> URL: https://cgit.FreeBSD.org/src/commit/?id=2f1acc54054c8ceebce22035601aca1118c85071
>
> commit 2f1acc54054c8ceebce22035601aca1118c85071
> Author: Ed Maste <emaste@FreeBSD.org>
> AuthorDate: 2026-11-20 16:31:34 +0000
> Commit: Ed Maste <emaste@FreeBSD.org>
> CommitDate: 2026-11-20 16:57:15 +0000
>
> kern: Have .m rules depend sys/tools/makeobjops.awk
>
> Generated _if.[ch] files have to be rebuilt after commit bf362c1b41c8
> ("kobj: convert KOBJOPLOOKUP() to returning pointer to function"). Add
> a dependency on the build tool, similar to kmod.mk.
>
> Build rules using NORMAL_M (defined in kern.pre.mk) presumably need a
> similar treatment, but this restores (most of) the incremental build
> now.
>
> Reviewed by: jrtc27
> Sponsored by: The FreeBSD Foundation
> Differential Revision: https://reviews.freebsd.org/D61821
> ---
> sys/conf/kern.post.mk | 4 ++--
> 1 file changed, 2 insertions(+), 2 deletions(-)
>
> diff --git a/sys/conf/kern.post.mk b/sys/conf/kern.post.mk
> index 2abf1889d33b..170268f01e4e 100644
> --- a/sys/conf/kern.post.mk
> +++ b/sys/conf/kern.post.mk
> @@ -219,9 +219,9 @@ OBJS_DEPEND_GUESS+= offset.inc assym.inc vnode_if.h ${BEFORE_DEPEND:M*.h} \
> .for mfile in ${MFILES}
> # XXX the low quality .m.o rules gnerated by config are normally used
> # instead of the .m.c rules here.
> -${mfile:T:S/.m$/.c/}: ${mfile}
> +${mfile:T:S/.m$/.c/}: ${mfile} $S/tools/makeobjops.awk
> ${AWK} -f $S/tools/makeobjops.awk ${mfile} -c
> -${mfile:T:S/.m$/.h/}: ${mfile}
> +${mfile:T:S/.m$/.h/}: ${mfile} $S/tools/makeobjops.awk
> ${AWK} -f $S/tools/makeobjops.awk ${mfile} -h
> .endfor
>
>
Thanks for the quick fix !
Best regards,
Zhenlei