From: Wolfgang Denk <wd@denx.de>
To: "Robert P. J. Day" <rpjday@mindspring.com>
Cc: Embedded Linux PPC list <linuxppc-embedded@lists.linuxppc.org>
Subject: Re: random ramblings on 8xx patches (long and tedious :-)
Date: Fri, 23 Jul 2004 16:56:19 +0200 [thread overview]
Message-ID: <20040723145625.08BAAC109F@atlas.denx.de> (raw)
In-Reply-To: Your message of "Fri, 23 Jul 2004 10:09:59 EDT." <Pine.LNX.4.60.0407230947570.5108@localhost.localdomain>
In message <Pine.LNX.4.60.0407230947570.5108@localhost.localdomain> you wrote:
>
> > There is at least 40 differnt models of 8xx processors. Go and add
> > 82xx and 85xx and 52xx and than start working down the 4xx, 7xx,
> > 74xx, ... lines? I think this gives a LONG list...
>
> possibly, but there's no need for it to be infinitely detailed. if
> you look at arch/ppc/config.in, there's obviously a coarse
> categorization with things like CONFIG_6xx, CONFIG_8xx and so on.
> at the other extreme, there's specific models like CONFIG_ARCTIC2,
> etc.
But if I understood you right you intend to use this selection to
prevent the kconfig system to present options to the user which don't
apply for this processor. So you need to know if this is for example
a MPC860, MPC860T or MPC860P because the latter two have a FEC so you
must enable the FEC options in kconfig, while the first one does not.
Or you need to know if it's MPC850 which has only one SCC, or a
MPC850DE, MPC850SR, or MPC850DSL which have two.
If you want to be consequent, and only present such config options to
the user that really apply to his hardware, then you must bite the
bullet.
> if [ "$CONFIG_TQM823M" = "y" -o \
> "$CONFIG_TQM850M" = "y" -o \
> "$CONFIG_TQM855M" = "y" -o \
> "$CONFIG_TQM860M" = "y" -o \
> "$CONFIG_TQM862M" = "y" -o \
> "$CONFIG_NSCU" = "y" ]; then
> define_bool CONFIG_TQM8xxM y
>
> so *someone* must have thought this approach was a good idea at some
> point. :-)
This is (1) something different (because all these use the very same
board), and (2) insignificant, as it it not part of the official
kernel tree.
> so the obvious question is, is there any value for more of this
> mid-level categorization? if not, then we can just forget the idea
> and move on.
It was you who started this, with the intention to prevent the user
from selecting bogus config options. [My opinion is that this is not
a high priority issue; if we can provide a working default
configuration for a board this is fine; if the user changes this for
his requirements we have to assume that he knows what he is doing.
"UNIX was not designed to stop you from doing stupid things, because
that would also stop you from doing clever things." - Doug Gwyn
> but if there is, no one says it has to be patched in all at once.
Arghh... Please don't. If we had different approaches in the kernel
depoending on which processor family you're working with it would be
just worse.
> so, to start things off, here's a proposal. if this kind of
> refinement would have made/will make your life easier, email me
> directly with the patch you'd like to see added. i'll collect them
Please don't expect a patch from me.
Best regards,
Wolfgang Denk
--
Software Engineering: Embedded and Realtime Systems, Embedded Linux
Phone: (+49)-8142-4596-87 Fax: (+49)-8142-4596-88 Email: wd@denx.de
The thing is, as you progress in the Craft, you'll learn there is
another rule... When you break rules, break 'em good and hard.
- Terry Pratchett, _Wyrd Sisters_
** Sent via the linuxppc-embedded mail list. See http://lists.linuxppc.org/
next prev parent reply other threads:[~2004-07-23 14:56 UTC|newest]
Thread overview: 25+ messages / expand[flat|nested] mbox.gz Atom feed top
2004-07-22 12:00 random ramblings on 8xx patches (long and tedious :-) Robert P. J. Day
2004-07-22 17:46 ` Matt Porter
2004-07-23 12:34 ` Robert P. J. Day
2004-07-23 13:36 ` Wolfgang Denk
2004-07-23 14:09 ` Robert P. J. Day
2004-07-23 14:56 ` Wolfgang Denk [this message]
[not found] ` <410123EE.4000602@intracom.gr>
2004-07-23 15:56 ` Mark Chambers
2004-07-23 17:22 ` Wolfgang Denk
2004-07-23 21:06 ` Linux is not reliable enough? Kevin P. Dankwardt
2004-07-24 3:02 ` Linh Dang
2004-07-24 6:29 ` Der Herr Hofrat
2004-07-25 16:23 ` Wolfgang Denk
2004-07-24 11:35 ` Mark Chambers
2004-07-24 22:14 ` MPC8245 Error No. 26 DeLaGarza, Robert
2004-07-26 7:49 ` Linux is not reliable enough? Marius Groeger
2004-07-26 13:46 ` Mark Chambers
2004-07-26 14:31 ` Der Herr Hofrat
2004-07-26 15:42 ` Marius Groeger
2004-07-27 11:20 ` Robert Kaiser
2004-07-27 13:29 ` Mark Chambers
2004-07-24 21:44 ` Sylvain Munaut
2004-07-25 3:00 ` Could 2_4_devel support RPXlite DW LCD panel? Song Sam
-- strict thread matches above, loose matches on Subject: below --
2004-07-22 17:10 random ramblings on 8xx patches (long and tedious :-) Wells, Charles
2004-07-22 17:35 ` Dan Malek
2004-07-23 8:48 ` Jaap-Jan Boor
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=20040723145625.08BAAC109F@atlas.denx.de \
--to=wd@denx.de \
--cc=linuxppc-embedded@lists.linuxppc.org \
--cc=rpjday@mindspring.com \
/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).