sys/conf/DEFAULT[S]

From: John Baldwin (jhb_at_FreeBSD.org)
Date: 09/24/03

  • Next message: Bruce Evans: "Re: sys/conf/DEFAULT[S]"
    Date: Wed, 24 Sep 2003 17:03:42 -0400 (EDT)
    To: arch@FreeBSD.org
    
    

    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.

    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.

    This would also make it easier to turn things on by default w/o requiring
    that a kernel option get renamed to NO_FOO. So, for example, with DEVFS,
    turning it on by default could have been done by just adding
    'options DEVFS' to sys/conf/DEFAULT rather than having to rename it to
    'NO_DEVFS'.

    Another thing this might help with is allowing for smaller kernels w/o
    bloating normal config files. For example, in 5.x we turned USER_LDT on
    by default by just removing the option altogether. We could have simply
    moved USER_LDT to sys/i386/conf/DEFAULT and folks that wanted to build a
    smaller kernel and didn't need USER_LDT could use 'nooptions USER_LDT'.

    Just an idea.

    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.

    -- 
    John Baldwin <jhb@FreeBSD.org>  <><  http://www.FreeBSD.org/~jhb/
    "Power Users Use the Power to Serve!"  -  http://www.FreeBSD.org/
    _______________________________________________
    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: Bruce Evans: "Re: sys/conf/DEFAULT[S]"

    Relevant Pages

    • Re: Serious performance regression in Wine applications and Linux 2.6.24.*
      ... config files of each kernel. ... related to scheduler changes. ... delayed input, this time I had to actually kill the process, because it ...
      (Linux-Kernel)
    • Re: printing boot probe messages
      ... booting yoiur machine (you know, ... When I made my first kernel, I had begun ... but you don't show us those config files nor even tell us *which* ...
      (freebsd-hackers)
    • Re: Release Notes - kernel
      ... On 4/17/05, Birt, Jeffrey wrote: ... > Alexander was kind enough to show how to add new configuration setting to the config files. ... Thanks for pointing out "Patching FC3 Kernel" thread. ... I am so motivated to get the ATI Remote Wonder adjusted ...
      (Fedora)
    • Fw: cdrom not working after kernel update
      ... I compared the two config files and figure out that following part is missing from the config file for 2.6.23.8. ... I downloaded the kernel from following place. ... kernels running) but the cdrom can not mounted for some reason. ... and compare to the config for 2.6.18. ...
      (Debian-User)
    • RE: ZFS Crash
      ... panics on this machine, and the stack trace looked different quite often. ... I had a custom kernel with some options added and some taken off. ... nooptions INVARIANT_SUPPORT # Extra sanity checks of internal structures, ...
      (freebsd-current)