Skip site navigation (1)Skip section navigation (2)
Date:      Sat, 21 Feb 2009 02:35:09 +0800
From:      Buganini <buganini@gmail.com>
To:        freebsd-current@freebsd.org
Cc:        army.of.root@googlemail.com
Subject:   Re: modular kernconf
Message-ID:  <e5b1e8d40902201035i5d55a196u30a844148710ca4@mail.gmail.com>
In-Reply-To: <200902120818.34567.jhb@freebsd.org>
References:  <e5b1e8d40902111231y23611fc4w5db3fe3c40fbb15a@mail.gmail.com> <FF758FB0-DA6E-4AE4-A575-A4CDC4B65FD6@mac.com> <49935993.50303@stillbilde.net> <200902120818.34567.jhb@freebsd.org>

next in thread | previous in thread | raw e-mail | index | archive | help
I've made a patch to allow using section/nosection in kernconf.
http://140.112.64.5/buganini/config.patch

My uname -a:
FreeBSD Zeta.twbbs.org 8.0-CURRENT FreeBSD 8.0-CURRENT #9: Fri Feb 20
01:18:21 CST 2009     root@Zeta.twbbs.org:/usr/obj/usr/src/sys/ZETA
i386

Currently this patch can deal with cpu/options/device/makeoptions,
probably enough (actually I think options/device is usually enough).

I havent tested it fully, just modify GENERIC as follow:
...
section         USB2
# USB core support
...
section         FireWire
# FireWire support
...

and the customized kernconf:
include         GENERIC
ident            ZETA
nosection     USB2
nosection     FireWire

then `config ZETA`,
I can see corresponding in
/usr/src/sys/i386/compile/ZETA/config.c

The default section is "main", everythins before the first section
direction will be in section "main".
I've not really make kernel by this yet.



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?e5b1e8d40902201035i5d55a196u30a844148710ca4>