public inbox for u-boot@lists.denx.de
 help / color / mirror / Atom feed
From: Wolfgang Denk <wd@denx.de>
To: u-boot@lists.denx.de
Subject: [U-Boot-Users] Re: Patch: Support for PQ27e (8247/48/71/72) chips and MPC8272ADS board
Date: Wed, 17 Mar 2004 22:18:40 +0100	[thread overview]
Message-ID: <20040317211845.70264C0655@atlas.denx.de> (raw)
In-Reply-To: Your message of "Wed, 17 Mar 2004 17:12:31 +0200." <16472.27359.566539.641092@gargle.gargle.HOWL>

In message <16472.27359.566539.641092@gargle.gargle.HOWL> Yuli Barcohen wrote:
> 
>     Dan> I agree.  We've been doing it this way in Linux for years, the
>     Dan> compiler makes it pretty clear when you don't have something
>     Dan> #defined.
> 
> And these #defines were one of the reasons that we developed completely
> new Linux support for PQs. Now we've got one kernel image running on
> MPC8260ADS, MPC8266ADS, PQ2FADS, and MPC8272ADS. You would have four
> different images. Probably that images would be smaller by 2K, maybe 5K,
> but if the price is maintaining four images instead of one, I vote for
> one. The same is true for other board families (FADS, etc.) I agree that
> this can be less important for boot loaders which in many cases contain
> too much board-specific code to build one-for-all image.


Let's stop this discussion here. We don't need another religious war.

As Dan said, Linux has been using the #define style for a long  time,
and  for good reasons, and U-Boot always followed this style - and if
it was only because of the smaller code size.

There are many more  situations  where  run-time  code  may  be  very
convenient from the software ddeveloper's point of view, but where it
is not practical for the intended purpose. Think of memory footprint,
boot time, time of error detection etc.

> Maybe such a thing can happen but in many years of development for
> Motorola controllers I personally never had a problem with run-time
> detection of chip features.

Than you have been just lucky, or not the end user of the solution.



Best regards,

Wolfgang Denk

-- 
Software Engineering:  Embedded and Realtime Systems,  Embedded Linux
Phone: (+49)-8142-4596-87  Fax: (+49)-8142-4596-88  Email: wd at denx.de
The universe does not have laws - it has habits, and  habits  can  be
broken.

  reply	other threads:[~2004-03-17 21:18 UTC|newest]

Thread overview: 19+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2004-02-29 19:04 [U-Boot-Users] Patch: Support for PQ27e (8247/48/71/72) chips and MPC8272ADS board Yuli Barcohen
2004-03-13 23:54 ` Wolfgang Denk
2004-03-15  9:45   ` [U-Boot-Users] " Yuli Barcohen
2004-03-15 10:07     ` Wolfgang Denk
2004-03-15 13:25       ` Yuli Barcohen
2004-03-15 13:37         ` Wolfgang Denk
2004-03-17 11:46           ` Yuli Barcohen
2004-03-17 14:15             ` Dan Malek
2004-03-17 15:12               ` Yuli Barcohen
2004-03-17 21:18                 ` Wolfgang Denk [this message]
2004-03-18  8:54                   ` Yuli Barcohen
2004-03-17 17:21             ` Kumar Gala
2004-03-17 17:39               ` Yuli Barcohen
2004-03-16  6:51 ` [U-Boot-Users] " Kumar Gala
2004-03-16  7:23   ` Yuli Barcohen
2004-03-16 14:37     ` Kumar Gala
2004-03-17 10:54       ` Yuli Barcohen
2004-03-17 15:03         ` Kumar Gala
2004-03-23 21:38       ` Wolfgang Denk

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=20040317211845.70264C0655@atlas.denx.de \
    --to=wd@denx.de \
    --cc=u-boot@lists.denx.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