linux-kernel.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
From: Sam Ravnborg <sam@ravnborg.org>
To: Roman Zippel <zippel@linux-m68k.org>,
	Russell King <rmk@arm.linux.org.uk>
Cc: linux-kernel@vger.kernel.org
Subject: Multiple configuration support
Date: Tue, 9 Sep 2003 21:29:18 +0200	[thread overview]
Message-ID: <20030909192918.GA2933@mars.ravnborg.org> (raw)

Hi Roman.

Russell pointed out to me in private mail that the current way
to select individual configurations are broken with my latest
changes, where I moved *config targets to scripts/kconfig/Makefile.
The problem is that they use the target filename_config to
select the individual configuration (see arch/arm/Makefile).

This brought up an old idea I have had for some time.
With the current kconfig it should be doable to have something like
the following scheme:
arch/$(ARCH)/defconfig	<= As we know it
arch/$(ARCH)/configs/boardconfig

boardconfig should be very simple, only including delta to the
default configuration.
So boardconfig would only enable those drivers specific for that
board and other relevant config information. For example defconfig
selected the Opetron CPU, then boardconfig could change this to an 486 CPU.

Example boardconfig file:
CONFIG_M486=y

I cannot see how this would work with choice etc., would that be a problem?

This scheme would make it less cumbersome to maintain the dozen of
different configuration files as included by arm, ppc, ppc64 today.

Comments to that approach?

I tried to look into this, but was stuck in conf_read().
When the file has been opened conf_read() set all symbols back to
default values, so I could not call it twice.
And I didn't want to fiddle to much with the public interface of
kconfig for now.

	Sam

             reply	other threads:[~2003-09-09 19:30 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2003-09-09 19:29 Sam Ravnborg [this message]
2003-09-10 19:21 ` Multiple configuration support Russell King
2003-09-10 19:51   ` Sam Ravnborg

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=20030909192918.GA2933@mars.ravnborg.org \
    --to=sam@ravnborg.org \
    --cc=linux-kernel@vger.kernel.org \
    --cc=rmk@arm.linux.org.uk \
    --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;
as well as URLs for NNTP newsgroup(s).