All of lore.kernel.org
 help / color / mirror / Atom feed
From: Liu Gang <Gang.Liu@freescale.com>
To: u-boot@lists.denx.de
Subject: [U-Boot] [PATCH 2/8 v2] powerpc/corenet_ds: Correct the compilation errors about ENV
Date: Tue, 17 Jan 2012 17:09:03 +0800	[thread overview]
Message-ID: <1326791349-20458-2-git-send-email-Gang.Liu@freescale.com> (raw)
In-Reply-To: <1326791349-20458-1-git-send-email-Gang.Liu@freescale.com>

When defined CONFIG_ENV_IS_NOWHERE, there will be some
compilation errors:

./common/env_nowhere.o: In function `env_relocate_spec':
./common/env_nowhere.c:38: multiple definition of `env_relocate_spec'
./common/env_flash.o: ./common/env_flash.c:326: first defined here
./common/env_nowhere.o: In function `env_get_char_spec':
./common/env_nowhere.c:42: multiple definition of `env_get_char_spec'
./common/env_flash.o:./common/env_flash.c:78: first defined here
./common/env_nowhere.o: In function `env_init':
./common/env_nowhere.c:51: multiple definition of `env_init'
./common/env_flash.o:./common/env_flash.c:237: first defined here
make[1]: *** [./common/libcommon.o] Error 1
make[1]: Leaving directory `./common'
make: *** [./common/libcommon.o] Error 2

Remove the CONFIG_ENV_IS_IN_FLASH if defined CONFIG_ENV_IS_NOWHERE.

Signed-off-by: Liu Gang <Gang.Liu@freescale.com>
---
Changes in v2:
 - Subject changed to "powerpc/corenet_ds".
 - Change the commit message more clearly.

 include/configs/corenet_ds.h |    2 ++
 1 files changed, 2 insertions(+), 0 deletions(-)

diff --git a/include/configs/corenet_ds.h b/include/configs/corenet_ds.h
index 7925b95..e38f69d 100644
--- a/include/configs/corenet_ds.h
+++ b/include/configs/corenet_ds.h
@@ -96,6 +96,8 @@
 #define CONFIG_ENV_IS_IN_NAND
 #define CONFIG_ENV_SIZE			CONFIG_SYS_NAND_BLOCK_SIZE
 #define CONFIG_ENV_OFFSET		(5 * CONFIG_SYS_NAND_BLOCK_SIZE)
+#elif defined(CONFIG_ENV_IS_NOWHERE)
+#define CONFIG_ENV_SIZE		0x2000
 #else
 #define CONFIG_ENV_IS_IN_FLASH
 #define CONFIG_ENV_ADDR		(CONFIG_SYS_MONITOR_BASE - CONFIG_ENV_SECT_SIZE)
-- 
1.7.3.1

  reply	other threads:[~2012-01-17  9:09 UTC|newest]

Thread overview: 8+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2012-01-17  9:09 [U-Boot] [PATCH 1/8 v2] powerpc/srio: Rewrite the struct ccsr_rio Liu Gang
2012-01-17  9:09 ` Liu Gang [this message]
2012-01-17  9:09 ` [U-Boot] [PATCH 3/8 v2] powerpc/corenet_ds: Document for the boot from SRIO Liu Gang
2012-01-17  9:09 ` [U-Boot] [PATCH 4/8 v2] powerpc/corenet_ds: Master module for " Liu Gang
2012-01-17  9:09 ` [U-Boot] [PATCH 5/8 v2] powerpc/corenet_ds: Slave " Liu Gang
2012-01-17  9:09 ` [U-Boot] [PATCH 6/8 v2] powerpc/corenet_ds: Slave uploads ucode when " Liu Gang
2012-01-17  9:09 ` [U-Boot] [PATCH 7/8 v2] powerpc/corenet_ds: Slave reads ENV from master " Liu Gang
2012-01-17  9:09 ` [U-Boot] [PATCH 8/8 v2] powerpc/corenet_ds: Slave core in holdoff " Liu Gang

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=1326791349-20458-2-git-send-email-Gang.Liu@freescale.com \
    --to=gang.liu@freescale.com \
    --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 an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.