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: Sun, 18 Oct 2009 20:55:01 -0400 [thread overview]
Message-ID: <200910182055.01744.vapier@gentoo.org> (raw)
In-Reply-To: <20091018213215.193873F6CE@gemini.denx.de>
On Sunday 18 October 2009 17:32:15 Wolfgang Denk wrote:
> Mike Frysinger wrote:
> > > Mike Frysinger wrote:
> > > > The env code is protected by the ENV_IS_EMBEDDED define, so
> > > > attempting to compile the code when this isn't defined is pointless.
> > > > Now that the env headers have unified around CONFIG_ENV_IS_EMBEDDED,
> > > > convert the build system to only build the env objects when this is
> > > > enabled. And now that the env code is conditionally compiled, we can
> > > > drop the source code checks.
> > > >
> > > > For people who want to extract the environment manually, add a new
> > > > option CONFIG_BUILD_ENVCRC that only enables the envcrc utility.
> > > >
> > > > Signed-off-by: Mike Frysinger <vapier@gentoo.org>
> > > > ---
> > > > v4
> > > > - rename config option to CONFIG_BUILD_ENVCRC
> > > >
> > > > README | 5 +++++
> > > > common/Makefile | 3 ---
> > > > common/env_embedded.c | 7 -------
> > > > include/common.h | 5 +++++
> > > > tools/Makefile | 9 ++-------
> > > > tools/envcrc.c | 11 +----------
> > > > 6 files changed, 13 insertions(+), 27 deletions(-)
> > >
> > > Applied, thanks.
>
> Arghhh...
>
> This patch seems to break a *lot* of boards:
i'm attaching two patches here. since we're past the merge window but before
rc1, i dont know how invasive you want to get.
the first one restores env_embedded.o building for certain config options
(even though it'll only produce a 0 byte file). if you want to be cautious
for this release, then i guess we can merge just this patch.
the second one attempts to clean up env_embedded.o in all linker scripts where
the board would only end up with a 0 byte file. obviously i cant test any of
these since i dont have the hardware, but the logic seems straight forward.
if you want to stay cautious, this would go into the next branch for start of
next merge window.
or just merge the 2nd patch only and assume that people who dont test the rc1+
are dead boards anyways. i got some build errors even after these fixes, but
they seem unrelated to my env_embedded changes as they have to do with
sections filling up & overflowing with my gcc-4.1.1 compiler.
-mike
-------------- next part --------------
A non-text attachment was scrubbed...
Name: 0001-env-restore-limited-env_embedded-building.patch
Type: text/x-patch
Size: 1897 bytes
Desc: not available
Url : http://lists.denx.de/pipermail/u-boot/attachments/20091018/c09d17e6/attachment.bin
-------------- next part --------------
A non-text attachment was scrubbed...
Name: 0002-env_embedded-remove-unused-code-from-linker-scripts.patch
Type: text/x-patch
Size: 34007 bytes
Desc: not available
Url : http://lists.denx.de/pipermail/u-boot/attachments/20091018/c09d17e6/attachment-0001.bin
next prev parent reply other threads:[~2009-10-19 0:55 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 [this message]
2009-10-19 9:31 ` Wolfgang Denk
2009-10-19 19:36 ` Mike Frysinger
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=200910182055.01744.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