linux-kernel.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* Multiple configuration support
@ 2003-09-09 19:29 Sam Ravnborg
  2003-09-10 19:21 ` Russell King
  0 siblings, 1 reply; 3+ messages in thread
From: Sam Ravnborg @ 2003-09-09 19:29 UTC (permalink / raw)
  To: Roman Zippel, Russell King; +Cc: linux-kernel

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

^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: Multiple configuration support
  2003-09-09 19:29 Multiple configuration support Sam Ravnborg
@ 2003-09-10 19:21 ` Russell King
  2003-09-10 19:51   ` Sam Ravnborg
  0 siblings, 1 reply; 3+ messages in thread
From: Russell King @ 2003-09-10 19:21 UTC (permalink / raw)
  To: Roman Zippel, linux-kernel

On Tue, Sep 09, 2003 at 09:29:18PM +0200, Sam Ravnborg wrote:
> boardconfig should be very simple, only including delta to the
> default configuration.

The delta is going to be fairly large for ARM - it doesn't make sense
to have a default core configuration and per-board deltas.

-- 
Russell King (rmk@arm.linux.org.uk)	http://www.arm.linux.org.uk/personal/
Linux kernel maintainer of:
  2.6 ARM Linux   - http://www.arm.linux.org.uk/
  2.6 PCMCIA      - http://pcmcia.arm.linux.org.uk/
  2.6 Serial core

^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: Multiple configuration support
  2003-09-10 19:21 ` Russell King
@ 2003-09-10 19:51   ` Sam Ravnborg
  0 siblings, 0 replies; 3+ messages in thread
From: Sam Ravnborg @ 2003-09-10 19:51 UTC (permalink / raw)
  To: Roman Zippel, linux-kernel

On Wed, Sep 10, 2003 at 08:21:32PM +0100, Russell King wrote:
> On Tue, Sep 09, 2003 at 09:29:18PM +0200, Sam Ravnborg wrote:
> > boardconfig should be very simple, only including delta to the
> > default configuration.
> 
> The delta is going to be fairly large for ARM - it doesn't make sense
> to have a default core configuration and per-board deltas.

OK.
I already dropped my current implementation (got it working by patching
a bit in kconfig, but realised the same can be achived by preprocessing
the config files).
So to make it clear - the above functionality is NOT implemented in the
patchset I just sent to Linus.

	Sam

^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2003-09-10 19:51 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2003-09-09 19:29 Multiple configuration support Sam Ravnborg
2003-09-10 19:21 ` Russell King
2003-09-10 19:51   ` Sam Ravnborg

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).