public inbox for linux-kernel@vger.kernel.org
 help / color / mirror / Atom feed
From: Rob Landley <rob@landley.net>
To: Randy Dunlap <randy.dunlap@oracle.com>
Cc: lkml <linux-kernel@vger.kernel.org>,
	zippel@linux-m68k.org, sam@ravnborg.org
Subject: Re: [PATCH] kbuild: make*config usage doc.
Date: Wed, 18 Oct 2006 11:55:29 -0400	[thread overview]
Message-ID: <200610181155.30587.rob@landley.net> (raw)
In-Reply-To: <20061017223257.c646f616.randy.dunlap@oracle.com>

On Wednesday 18 October 2006 1:32 am, Randy Dunlap wrote:
> Is this useful for anyone?

It's quite nice.

> Is anything happening with mini.config or a replacement for it?

Sorry, didn't know anybody else was interested.

I'm working on a patch to make the actual C code (probably 
scripts/kconfig/confdata.c:conf_write()) to spit out a miniconfig without the 
nasty shell script that takes forever to run.  That's the big missing piece, 
the rest I already submitted two different patches to the list for.  (Well, I 
should also tweak the makefile dependencies a bit to automatically regenerate 
a missing or older .config from a mini.config if it exists, but that's a 
later patch.)

I also owe Andrew Morton a better explanation of miniconfig.  When I bumped 
into him at OLS he asked for a better explanation, but ever since I got back 
real life has pushed this off the back burner and into the refrigerator...

I'll try to scrape up some time this week to work on this.

(Oh, as long as Sam's cc'd: my todo item for this says "start from the klibc 
code", but klibc hasn't got the menuconfig infrastructure.  I assume that 
discussion was just about Kbuild and not menuconfig?  I'm still interested in 
using Kbuild for toybox, did you do any more work on this or is kbuild 1.4 
still the best starting point?)

> +KCONFIG_ALLCONFIG
> +--------------------------------------------------
> +(partially based on lkml email from/by Rob Landley, re: miniconfig)
> +--------------------------------------------------
> +The allyesconfig/allmodconfig/allnoconfig/randconfig variants can
> +also use the environment variable KCONFIG_ALLCONFIG as a flag or a
> +filename that contains config symbols that the user requires to be
> +set to a specific value.  If KCONFIG_ALLCONFIG is used without a
> +filename, "make *config" checks for a file named
> +"all{yes/mod/no/random}.config" (corresponding to the *config command
> +that was used) for symbol values that are to be forced.  If this file
> +is not found, it checks for a file named "all.config" to contain forced
> +values.
> +
> +This enables you to create "miniature" config (miniconfig) or custom
> +config files containing just the config symbols that you are interested
> +in.  Then the kernel config system generates the full .config file,
> +including dependencies of your miniconfig file, based on the miniconfig
> +file.

I'd keep just that bit, and then refer to the miniconfig documentation when it 
goes in.  Right now it doesn't tell you how to make a miniconfig, and the 
miniconfig patch adds an easier UI for using them anyway.

Lemme go poke at that now...

Rob
-- 
"Perfection is reached, not when there is no longer anything to add, but
when there is no longer anything to take away." - Antoine de Saint-Exupery

      reply	other threads:[~2006-10-18 15:55 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2006-10-18  5:32 [PATCH] kbuild: make*config usage doc Randy Dunlap
2006-10-18 15:55 ` Rob Landley [this message]

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=200610181155.30587.rob@landley.net \
    --to=rob@landley.net \
    --cc=linux-kernel@vger.kernel.org \
    --cc=randy.dunlap@oracle.com \
    --cc=sam@ravnborg.org \
    --cc=zippel@linux-m68k.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox