Skip site navigation (1)Skip section navigation (2)
Date:      Sat, 15 Mar 2014 02:27:53 -0400
From:      Walt Ford <walt.ford@yahoo.com>
To:        =?utf-8?B?5pyx5rGf?= <mail.jiang.cn@gmail.com>
Cc:        freebsd-hackers <freebsd-hackers@freebsd.org>
Subject:   Re: Overhaul the config system with Lua
Message-ID:  <20140315062753.GE6674@nbu>
In-Reply-To: <CAA_8tFrE2FA2=w-b77a_5jcoVv_yWGr=Vg5xzCnsMX30MpDMkw@mail.gmail.com>
References:  <CAA_8tFojhn66ZkaR_Bxzv3fMzbuc6o2J9fYe4-pW6X0skgA8=Q@mail.gmail.com> <20140315001820.GB5765@nbu> <CAA_8tFrE2FA2=w-b77a_5jcoVv_yWGr=Vg5xzCnsMX30MpDMkw@mail.gmail.com>

next in thread | previous in thread | raw e-mail | index | archive | help
On Sat, Mar 15, 2014 at 01:27:37PM +0800, 朱江 wrote:
> 
> Your experience is very helpful to me. Can you provide more detail about
> your work? And I can learn something from your work.

Sure, but my work was mainly to give a unified appearance to those base
utilties that either provide statistics, control subsystems, or configure
devices.  Unfortunately, config(8) doesn't really implement any of that.
The user interface code could be reuseable, but config only has a
command-line interface right now.

If you work on this, even though FreeBSD doesn't have Lua in the base
system, then in addition to moving the knowledge of options into config(8),
the logic used to determine proper option defaults based on architecture
and other options selected should go too.  It's currently in a Makefile.
Ideally, that would be part of config as well so the same utility could
be used to configure a kernel to build using make(1) or to configure a
custom binary kernel to install using pkg(8).  It's currently not
possible to do that, but we're getting closer.  Options and the logic
controlling them should be accessible without a source tree installed.

Let me know what you're planning to implement and I'll see what can be
reused.

-- 
Walt



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