linuxppc-dev.lists.ozlabs.org archive mirror
 help / color / mirror / Atom feed
From: Heiko Schocher <hs@denx.de>
To: Wolfram Sang <w.sang@pengutronix.de>
Cc: linuxppc-dev@lists.ozlabs.org
Subject: Re: [PATCH 2/2] powerpc, 5200: add defconfig for charon board
Date: Mon, 06 Dec 2010 08:30:37 +0100	[thread overview]
Message-ID: <4CFC911D.4070306@denx.de> (raw)
In-Reply-To: <20101204211734.GD671@pengutronix.de>

Hello Wolfram,

Wolfram Sang wrote:
> On Sat, Dec 04, 2010 at 09:21:54AM +0100, Heiko Schocher wrote:
> 
> There shall be only one mpc5200-defconfig. Does the genric one work with your
> board?

Just tried, mpc5200_defconfig works for me, but...

... I miss there the LM81 and RTC DS1374 support ... and in another
patchset from me, I add SM501 support for this board ... also
for example, I don;t need CONFIG_FB_RADEON*, CONFIG_SPI* defines

Hmm.. I understand that maintaining the board_defconfigs is a nightmare.
Just a fast thought (I am not a kconfig expert):

As there is a mpc5200_defconfig, couldn;t we get rid of the board
defconfig(s), and add instead a possibility to store only the changes
against the mpc5200_defconfig in a file? That would save a lot of unneeded
lines, and maintaining would be easier as common 5200 config options
are stored in mpc5200_defconfig ... and a "make board_settings" would do:

- call "make mpc5200_defconfig"
- process differences stored in "board_settings"
  (something like menuconfig, just not interactive)

(we could generalize that approach, because I think, all defconfigs
 are not easy to maintain, if we say first line is always the defconfig
 we call, following lines are options different to that ...)

Example for the charon board "charon_settings" file:

call mpc5200_defconfig	// call "make mpc5200_defconfig"
enable SENSORS_LM80	// call something like "make menuconfig -e SENSORS_LM80"
disable FB_RADEON	// call something like "make menuconfig -d FB_RADEON"
disable SPI
disable RTC_DRV_DS1307
enable RTC_DRV_DS1374
...

bye,
Heiko
-- 
DENX Software Engineering GmbH,     MD: Wolfgang Denk & Detlev Zundel
HRB 165235 Munich, Office: Kirchenstr.5, D-82194 Groebenzell, Germany

  reply	other threads:[~2010-12-06  7:30 UTC|newest]

Thread overview: 9+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2010-12-04  8:21 [PATCH 2/2] powerpc, 5200: add defconfig for charon board Heiko Schocher
2010-12-04 21:17 ` Wolfram Sang
2010-12-06  7:30   ` Heiko Schocher [this message]
2010-12-06  8:49     ` Anatolij Gustschin
2010-12-06  9:13       ` Heiko Schocher
2010-12-06  9:31         ` Wolfram Sang
2010-12-06  9:49           ` Heiko Schocher
2010-12-06 10:01             ` Wolfram Sang
2010-12-06 10:25               ` Heiko Schocher

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=4CFC911D.4070306@denx.de \
    --to=hs@denx.de \
    --cc=linuxppc-dev@lists.ozlabs.org \
    --cc=w.sang@pengutronix.de \
    /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).