Re: [fbsd] Re: [fbsd] [HEADS UP] New world/kernel build options are imminent

From: Jeremie Le Hen <jeremie_at_le-hen.org>
Date: Fri, 21 Apr 2006 11:43:33 +0200
Hi,

On Thu, Apr 20, 2006 at 05:54:38PM +0200, Jeremie Le Hen wrote:
> During the early buildworld process, I need to disable a feature that
> may have been enabled in src.conf(5) with the WITH_FOO knob.
> IOW, I want to be sure that the feature FOO is disabled for
> legacy, bootstrap-tools, build-tools and cross-tools targets.
> 
> However if the WITH_FOO knob is enabled in src.conf(5), using
> "WITHOUT_FOO=" inside BMAKE, TMAKE and XMAKE macros would lead to an
> error triggered by bsd.own.mk :
> % 373  .if defined(WITH_${var}) && defined(WITHOUT_${var})
> % 374  .error WITH_${var} and WITHOUT_${var} can't both be set.
> % 375  .endif
> 
> How should I handle that ?  I could override SRCCONF and set it to
> /dev/null, but I don't think it is acceptable because according to
> Makefile.inc1, bootstrap-tools, build-tools and cross-tools targets
> might be influenced by src.conf(5) knobs.

Is the attached patch something acceptable ?  This permits to override
WITH(OUT)_* knobs in src.conf(5) in early targets of buildworld.

I can write the documentation if needed.

Regards,
-- 
Jeremie Le Hen
< jeremie at le-hen dot org >< ttz at chchile dot org >

Received on Fri Apr 21 2006 - 07:43:36 UTC

This archive was generated by hypermail 2.4.0 : Wed May 19 2021 - 11:38:55 UTC