Re: sys/conf/DEFAULT[S]

From: Bruce Evans (bde_at_zeta.org.au)
Date: 09/25/03

  • Next message: Adam C. Migus: "Re: sys/conf/DEFAULT[S]"
    Date: Thu, 25 Sep 2003 09:35:31 +1000 (EST)
    To: John Baldwin <jhb@freebsd.org>
    
    

    On Wed, 24 Sep 2003, John Baldwin wrote:

    > Now that we have 'nooptions' and 'nodevice' in kernel config files as well
    > as the ability to include other config files, I'd like to tweak config(8)
    > so that it automatically includes sys/conf/DEFAULT (or DEFAULTS) and
    > sys/${MACHINE}/conf/DEFAULT (S) when generating a kernel config and then
    > get rid of all the 'NO_*' options.

    OK with me.

    Do we actually gave the abiltity to include other config files? It was
    quite broken last time I tried to use it for anything more complicated
    than the example in "SMP".

    When breaking POLA by renaming options, please use a consistent namespace
    for the new names...

    > For example, NO_F00F_HACK could be renamed to a positive FOOF_HACK option.
    > sys/i386/conf/DEFAULT would contain 'options F00F_HACK' and if people
    > wanted to disable it they could use 'nooptions F00F_HACK' in their custom
    > config.

    In a consistent namespace, it would be CPU_F00F_HACK or maybe
    CPU_PENTIUM1_F00F_HACK.

    > Another nice thing, btw, might be to add a sys/conf/GENERIC that the
    > MD GENERIC's could include that would include common things like
    > 'ident', 'FFS', 'INET', etc.

    Too much of this would make it harder to see where things are, especially
    if there are things toggled back and forth. Something like "make LINT"
    would be needed to see the final set of directives. Similarly for
    Makefiles generated by config. It has become hard to temporarily change
    options by editing the Makefile, since many things are set in .mk files
    in the source tree.

    Bruce
    _______________________________________________
    freebsd-arch@freebsd.org mailing list
    http://lists.freebsd.org/mailman/listinfo/freebsd-arch
    To unsubscribe, send any mail to "freebsd-arch-unsubscribe@freebsd.org"


  • Next message: Adam C. Migus: "Re: sys/conf/DEFAULT[S]"

    Relevant Pages

    • Re: sys/conf/DEFAULT[S]
      ... Bruce Evans said: ... >> as the abconsistentnclude other config files, ... > would be needed to see the final set of directives. ... > Makefiles generated by config. ...
      (freebsd-arch)
    • Re: [PATCH 11/13] cell: split out board specific files
      ... makefiles don't have as rich a set of logical ops as the ... config files. ... hypervisors will see the hardware virtualised to varying degrees. ...
      (Linux-Kernel)