All of lore.kernel.org
 help / color / mirror / Atom feed
* [U-Boot] [PATCH 1/4] tegra2: Avoid warnings if CONFIG_SYS_TEXT_BASE is redefined.
@ 2011-11-14 13:21 Thierry Reding
  2011-11-14 13:21 ` [U-Boot] [PATCH 2/4] tegra2: Add common Avionic Design Tamonten support Thierry Reding
                   ` (3 more replies)
  0 siblings, 4 replies; 10+ messages in thread
From: Thierry Reding @ 2011-11-14 13:21 UTC (permalink / raw)
  To: u-boot

If a board configuration file redefines CONFIG_SYS_TEXT_BASE, the U-Boot
build system will usually define it explicitly on the compiler command-
line, which will cause the define in tegra2-common.h to emit a
redefinition warning.

To allow boards to redefine CONFIG_SYS_TEXT_BASE, tegra2-common.h now
only defines CONFIG_SYS_TEXT_BASE when it isn't already defined by the
board configuration or the command-line respectively.

Signed-off-by: Thierry Reding <thierry.reding@avionic-design.de>
---
 include/configs/tegra2-common.h |    2 ++
 1 files changed, 2 insertions(+), 0 deletions(-)

diff --git a/include/configs/tegra2-common.h b/include/configs/tegra2-common.h
index 9c3b9fa..76ffd2e 100644
--- a/include/configs/tegra2-common.h
+++ b/include/configs/tegra2-common.h
@@ -153,7 +153,9 @@
 #define PHYS_SDRAM_1		TEGRA2_SDRC_CS0
 #define PHYS_SDRAM_1_SIZE	0x20000000	/* 512M */
 
+#ifndef CONFIG_SYS_TEXT_BASE
 #define CONFIG_SYS_TEXT_BASE	0x00E08000
+#endif
 #define CONFIG_SYS_SDRAM_BASE	PHYS_SDRAM_1
 
 #define CONFIG_SYS_INIT_RAM_ADDR	CONFIG_STACKBASE
-- 
1.7.7.3

^ permalink raw reply related	[flat|nested] 10+ messages in thread

end of thread, other threads:[~2011-11-14 19:40 UTC | newest]

Thread overview: 10+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2011-11-14 13:21 [U-Boot] [PATCH 1/4] tegra2: Avoid warnings if CONFIG_SYS_TEXT_BASE is redefined Thierry Reding
2011-11-14 13:21 ` [U-Boot] [PATCH 2/4] tegra2: Add common Avionic Design Tamonten support Thierry Reding
2011-11-14 13:21 ` [U-Boot] [PATCH 3/4] tegra2: Add Avionic Design Plutux support Thierry Reding
2011-11-14 13:21 ` [U-Boot] [PATCH 4/4] tegra2: Add Avionic Design Medcom support Thierry Reding
2011-11-14 17:09 ` [U-Boot] [PATCH 1/4] tegra2: Avoid warnings if CONFIG_SYS_TEXT_BASE is redefined Stephen Warren
2011-11-14 17:16   ` Simon Glass
2011-11-14 17:23     ` Thierry Reding
2011-11-14 17:31       ` Simon Glass
2011-11-14 19:31       ` Tom Warren
2011-11-14 19:40         ` Simon Glass

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.