Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 26 Oct 2015 04:38:43 -0700
From:      Adrian Chadd <adrian.chadd@gmail.com>
To:        Hans Petter Selasky <hps@selasky.org>
Cc:        FreeBSD Current <freebsd-current@freebsd.org>
Subject:   Re: Quick test building a module cross all targets and architectures
Message-ID:  <CAJ-Vmom=hgE5oP=-a=kVB61UXXDeN5FOWB%2B_Ep3CUvCaHuGW9A@mail.gmail.com>
In-Reply-To: <562DEE4F.5010203@selasky.org>
References:  <562DEE4F.5010203@selasky.org>

next in thread | previous in thread | raw e-mail | index | archive | help
+1 to this thankyou!




-adrian


On 26 October 2015 at 02:11, Hans Petter Selasky <hps@selasky.org> wrote:
> Hi,
>
> We have NO_MODULES for building kernel without modules, but no NO_KERNEL to
> only build the modules.
>
> What do you think about the following patch:
>
>> diff --git a/sys/conf/kern.post.mk b/sys/conf/kern.post.mk
>> index ddf828e..f0920df 100644
>> --- a/sys/conf/kern.post.mk
>> +++ b/sys/conf/kern.post.mk
>> @@ -32,7 +32,11 @@ KERN_DEBUGDIR?=      ${DEBUGDIR}
>>
>>  .for target in all clean cleandepend cleandir clobber depend install \
>>      obj reinstall tags
>> +.if !defined(NO_KERNEL)
>>  ${target}: kernel-${target}
>> +.else
>> +${target}:
>> +.endif
>>  .if !defined(MODULES_WITH_WORLD) && !defined(NO_MODULES) &&
>> exists($S/modules)
>>  ${target}: modules-${target}
>>  modules-${target}:
>
>
> It allows only a single module with MODULES_OVERRIDE= and NO_KERNEL=YES to
> be built with universe in very little time. This can save a lot of build
> time when changes are limited to a set of kernel modules.
>
> --HPS
> _______________________________________________
> freebsd-current@freebsd.org mailing list
> https://lists.freebsd.org/mailman/listinfo/freebsd-current
> To unsubscribe, send any mail to "freebsd-current-unsubscribe@freebsd.org"



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?CAJ-Vmom=hgE5oP=-a=kVB61UXXDeN5FOWB%2B_Ep3CUvCaHuGW9A>