* [U-Boot-Users] [PATCH] Fix where the #ifdef CFG_BOOTMAPSZ is placed.
@ 2007-08-15 15:13 Jerry Van Baren
2007-08-15 15:52 ` Wolfgang Denk
0 siblings, 1 reply; 3+ messages in thread
From: Jerry Van Baren @ 2007-08-15 15:13 UTC (permalink / raw)
To: u-boot
Commit 073e1b509980cefe6f53c2d7fbbcd135df1e3924 "Fix initrd/dtb
interaction" put the new code outside of the #if defined(CONFIG_OF_LIBFDT)
when it should have gone inside of the conditional. As a result, it
broke non-LIBFDT board builds.
Also added a missing "not." to the comment.
Signed-off-by: Gerald Van Baren <vanbaren@cideas.com>
---
Fix the bug noted by Stefan Roese (introduced by the patch from Andy).
common/cmd_bootm.c | 5 +++--
1 files changed, 3 insertions(+), 2 deletions(-)
diff --git a/common/cmd_bootm.c b/common/cmd_bootm.c
index 8249dce..df1d038 100644
--- a/common/cmd_bootm.c
+++ b/common/cmd_bootm.c
@@ -924,16 +924,17 @@ do_bootm_linux (cmd_tbl_t *cmdtp, int flag,
initrd_end = 0;
}
+#if defined(CONFIG_OF_LIBFDT)
+
#ifdef CFG_BOOTMAPSZ
/*
* The blob must be within CFG_BOOTMAPSZ,
- * so we flag it to be copied if it is
+ * so we flag it to be copied if it is not.
*/
if (of_flat_tree >= (char *)CFG_BOOTMAPSZ)
of_data = of_flat_tree;
#endif
-#if defined(CONFIG_OF_LIBFDT)
/* move of_flat_tree if needed */
if (of_data) {
int err;
--
1.4.4.4
^ permalink raw reply related [flat|nested] 3+ messages in thread
* [U-Boot-Users] [PATCH] Fix where the #ifdef CFG_BOOTMAPSZ is placed.
@ 2007-08-15 15:16 Jerry Van Baren
0 siblings, 0 replies; 3+ messages in thread
From: Jerry Van Baren @ 2007-08-15 15:16 UTC (permalink / raw)
To: u-boot
Commit 073e1b509980cefe6f53c2d7fbbcd135df1e3924 "Fix initrd/dtb
interaction" put the new code outside of the #if defined(CONFIG_OF_LIBFDT)
when it should have gone inside of the conditional. As a result, it
broke non-LIBFDT board builds.
Also added a missing "not." to the comment.
Signed-off-by: Gerald Van Baren <vanbaren@cideas.com>
---
Fix the bug noted by Stefan Roese (introduced by the patch from Andy).
common/cmd_bootm.c | 5 +++--
1 files changed, 3 insertions(+), 2 deletions(-)
diff --git a/common/cmd_bootm.c b/common/cmd_bootm.c
index 8249dce..df1d038 100644
--- a/common/cmd_bootm.c
+++ b/common/cmd_bootm.c
@@ -924,16 +924,17 @@ do_bootm_linux (cmd_tbl_t *cmdtp, int flag,
initrd_end = 0;
}
+#if defined(CONFIG_OF_LIBFDT)
+
#ifdef CFG_BOOTMAPSZ
/*
* The blob must be within CFG_BOOTMAPSZ,
- * so we flag it to be copied if it is
+ * so we flag it to be copied if it is not.
*/
if (of_flat_tree >= (char *)CFG_BOOTMAPSZ)
of_data = of_flat_tree;
#endif
-#if defined(CONFIG_OF_LIBFDT)
/* move of_flat_tree if needed */
if (of_data) {
int err;
--
1.4.4.4
^ permalink raw reply related [flat|nested] 3+ messages in thread
* [U-Boot-Users] [PATCH] Fix where the #ifdef CFG_BOOTMAPSZ is placed.
2007-08-15 15:13 Jerry Van Baren
@ 2007-08-15 15:52 ` Wolfgang Denk
0 siblings, 0 replies; 3+ messages in thread
From: Wolfgang Denk @ 2007-08-15 15:52 UTC (permalink / raw)
To: u-boot
In message <20070815151315.GA1191@cideas.com> you wrote:
> Commit 073e1b509980cefe6f53c2d7fbbcd135df1e3924 "Fix initrd/dtb
> interaction" put the new code outside of the #if defined(CONFIG_OF_LIBFDT)
> when it should have gone inside of the conditional. As a result, it
> broke non-LIBFDT board builds.
>
> Also added a missing "not." to the comment.
>
> Signed-off-by: Gerald Van Baren <vanbaren@cideas.com>
Applied. Sync to the public server is running.
Thanks!
Best regards,
Wolfgang Denk
--
DENX Software Engineering GmbH, MD: Wolfgang Denk & Detlev Zundel
HRB 165235 Munich, Office: Kirchenstr.5, D-82194 Groebenzell, Germany
Phone: (+49)-8142-66989-10 Fax: (+49)-8142-66989-80 Email: wd at denx.de
The only time the world beats a path to your door is when you are in
the bathroom.
^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~2007-08-15 15:52 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2007-08-15 15:16 [U-Boot-Users] [PATCH] Fix where the #ifdef CFG_BOOTMAPSZ is placed Jerry Van Baren
-- strict thread matches above, loose matches on Subject: below --
2007-08-15 15:13 Jerry Van Baren
2007-08-15 15:52 ` Wolfgang Denk
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox