public inbox for u-boot@lists.denx.de
 help / color / mirror / Atom feed
From: Mike Frysinger <vapier@gentoo.org>
To: u-boot@lists.denx.de
Subject: [U-Boot] [PATCH 1/2 v4] env: only build env_embedded and envcrc when needed
Date: Mon, 19 Oct 2009 15:36:57 -0400	[thread overview]
Message-ID: <200910191537.04195.vapier@gentoo.org> (raw)
In-Reply-To: <20091019093136.5DAE5182D944E@nyx.denx.de>

On Monday 19 October 2009 05:31:36 Wolfgang Denk wrote:
> Mike Frysinger wrote:
> > diff --git a/board/tqc/tqm8xx/u-boot.lds b/board/tqc/tqm8xx/u-boot.lds
> > index 2df8d84..8207b2c 100644
> > --- a/board/tqc/tqm8xx/u-boot.lds
> > +++ b/board/tqc/tqm8xx/u-boot.lds
> > @@ -21,6 +21,8 @@
> >   * MA 02111-1307 USA
> >   */
> >
> > +#include <config.h>
> > +
> >  OUTPUT_ARCH(powerpc)
> >  /* Do we need any of these for elf?
> >     __DYNAMIC = 0;    */
> > @@ -64,8 +66,10 @@ SECTIONS
> >      lib_generic/zlib.o		(.text)
> >      lib_ppc/cache.o		(.text)
> >
> > +#ifdef CONFIG_ENV_IS_EMBEDDED
> >      . = DEFINED(env_offset) ? env_offset : .;
> >      common/env_embedded.o	(.ppcenv)
> > +#endif
> 
> All TQM8xx boards use a hand-optimized linker script that places  the
> envrionment  (both  the  primary  and  the redundant copies) into the
> small boot sectors of the bottom boot block type NOR  flash  used  on
> these  boards  (and the same is true for other boards as well; I know
> this for sure at least for  IVM*,  km8xx,  purple,  spc1920,  stxxtc,
> trab).
> 
> However, none of these #defines CONFIG_ENV_IS_EMBEDDED in their board
> config files.

if none of them have defined CONFIG_ENV_IS_EMBEDDED, then this code never 
would have expanded to anything.  if you look at the actual env_embedded.c 
code, it is completely wrapped in
#ifdef CONFIG_ENV_IS_EMBEDDED
...
#endif

thus env_offset would not be defined nor would env_embedded.o contain anything 
thus nothing would be injected thus nothing should be changed thus my proposed 
change should be fine
-mike
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 836 bytes
Desc: This is a digitally signed message part.
Url : http://lists.denx.de/pipermail/u-boot/attachments/20091019/be076157/attachment.pgp 

  reply	other threads:[~2009-10-19 19:36 UTC|newest]

Thread overview: 41+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2009-07-27  8:31 [U-Boot] [PATCH/RFC] env: always build env_embedded and envcrc Mike Frysinger
2009-07-27 20:52 ` Wolfgang Denk
2009-09-09 12:14 ` [U-Boot] [PATCH v2] env: only build env_embedded and envcrc when needed Mike Frysinger
2009-09-09 13:33   ` Wolfgang Denk
2009-09-09 14:02     ` Mike Frysinger
2009-09-09 14:26       ` Wolfgang Denk
2009-09-09 14:32         ` Mike Frysinger
2009-09-15 20:44           ` Wolfgang Denk
2009-09-15 21:39             ` Mike Frysinger
2009-09-22 20:43               ` Wolfgang Denk
2009-09-23 15:40                 ` Mike Frysinger
2009-09-09 15:50   ` [U-Boot] [PATCH 1/2 v3] " Mike Frysinger
2009-09-15 20:45     ` Wolfgang Denk
2009-09-09 15:50   ` [U-Boot] [PATCH 2/2] Blackfin: tweak embedded env config option Mike Frysinger
2009-09-11  9:39     ` [U-Boot] [PATCH 2/2 v2] " Mike Frysinger
2009-09-15 20:49       ` Wolfgang Denk
2009-09-15 21:36         ` Mike Frysinger
2009-09-22 20:41           ` Wolfgang Denk
2009-09-23 15:41             ` Mike Frysinger
2009-10-01  7:12         ` Mike Frysinger
2009-09-30 19:29   ` [U-Boot] [PATCH 1/2 v4] env: only build env_embedded and envcrc when needed Mike Frysinger
2009-10-18 20:53     ` Wolfgang Denk
2009-10-18 21:01       ` Mike Frysinger
2009-10-18 21:19         ` Wolfgang Denk
2009-10-18 21:32         ` Wolfgang Denk
2009-10-18 21:51           ` Mike Frysinger
2009-10-18 21:58             ` Wolfgang Denk
2009-10-19  0:55           ` Mike Frysinger
2009-10-19  9:31             ` Wolfgang Denk
2009-10-19 19:36               ` Mike Frysinger [this message]
2009-10-25 20:14             ` Wolfgang Denk
2009-10-25 21:55             ` Wolfgang Denk
2009-10-26  8:36               ` Mike Frysinger
2009-10-26 12:13                 ` Stefan Roese
2009-10-26 12:26                   ` Mike Frysinger
2009-10-26 12:34                     ` Stefan Roese
2009-10-26 20:45                       ` Mike Frysinger
2009-10-26 19:17                 ` Wolfgang Denk
2009-10-26 20:43                   ` Mike Frysinger
2009-10-26 23:24             ` Wolfgang Denk
2009-09-30 19:29   ` [U-Boot] [PATCH 2/2 v3] Blackfin: tweak embedded LDR env config option Mike Frysinger

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=200910191537.04195.vapier@gentoo.org \
    --to=vapier@gentoo.org \
    --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