public inbox for u-boot@lists.denx.de
 help / color / mirror / Atom feed
From: Gerhard Sittig <gsi@denx.de>
To: u-boot@lists.denx.de
Subject: [U-Boot] [PATCH] lcd: Add support for CONFIG_LCD_NOSTDOUT
Date: Mon, 10 Mar 2014 20:44:51 +0100	[thread overview]
Message-ID: <20140310194451.GD3327@book.gsilab.sittig.org> (raw)
In-Reply-To: <531B737E.1050300@petermaier.org>

On Sat, Mar 08, 2014 at 20:46 +0100, Hannes Petermaier wrote:
> 
> Hi Gerhard,
> 
> On 2014-03-06 20:49, Gerhard Sittig wrote:
> >In general U-Boot tries to get away from the multitude of ifdefs
> >where possible.  I'm afraid adding a new one needs a very good
> >reason to get perceived as welcome.
> By the way i've found a passage within README, which tells to do so
> as id id:
> 
> '* If you modify existing code, make sure that your new code does not
>   add to the memory footprint of the code ;-) Small is beautiful!
> 
>   When adding new features, these should compile conditionally only
>   (using #ifdef), and the resulting code with the new feature
>   disabled must not need more memory than the old code without your
>   modification.
> '
> whats your opinion about this ?

This policy may not apply here.  It's applicable to "larger"
chunks of new code, like complete drivers or complex features.
Not everyone wants support for unused features in their
executables that need to fit in constrained resources.  That's
well understood.

Your case is different.  There is a feature, it's already present
and small and unconditional.  And your change even shortcuts this
small portion.  I guess that adding another compiler switch for
this may not be appropriate.

But let's see what others have to say.  I'm not an expert in
policy.


virtually yours
Gerhard Sittig
-- 
DENX Software Engineering GmbH,     MD: Wolfgang Denk & Detlev Zundel
HRB 165235 Munich, Office: Kirchenstr. 5, D-82194 Groebenzell, Germany
Phone: +49-8142-66989-0 Fax: +49-8142-66989-80  Email: office at denx.de

  reply	other threads:[~2014-03-10 19:44 UTC|newest]

Thread overview: 9+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2014-03-06 14:26 [U-Boot] [PATCH] lcd: Add support for CONFIG_LCD_NOSTDOUT Hannes Petermaier
2014-03-06 19:49 ` Gerhard Sittig
2014-03-06 20:28   ` Hannes Petermaier
2014-03-08 19:46   ` Hannes Petermaier
2014-03-10 19:44     ` Gerhard Sittig [this message]
2014-05-03 18:34 ` Jeroen Hofstee
2014-05-05  6:21   ` Hannes Petermaier
2014-08-11 13:52 ` Anatolij Gustschin
2015-02-04  9:05   ` Hannes Petermaier

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=20140310194451.GD3327@book.gsilab.sittig.org \
    --to=gsi@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