From: Andreas Bießmann <biessmann@corscience.de>
Date: Mon, 18 Apr 2011 04:12:33 +0000 (+0000)
Subject: avr32/config.mk: simplify PLATFORM_RELFLAGS
X-Git-Tag: v2025.01-rc5-pxa1908~19428^2~17
X-Git-Url: http://git.dujemihanovic.xyz/img/static/git-logo.png?a=commitdiff_plain;h=758472cc7b6cb8d8626f245f1607bad8b0ebda22;p=u-boot.git

avr32/config.mk: simplify PLATFORM_RELFLAGS

This patch removes PLATFORM_RELFLAGS from board specific config.mk files and
define them in arch specific config.mk file.

Signed-off-by: Andreas Bießmann <biessmann@corscience.de>
---

diff --git a/arch/avr32/config.mk b/arch/avr32/config.mk
index ef147105b7..a751a3d787 100644
--- a/arch/avr32/config.mk
+++ b/arch/avr32/config.mk
@@ -26,4 +26,6 @@ CROSS_COMPILE ?= avr32-linux-
 CONFIG_STANDALONE_LOAD_ADDR ?= 0x00000000
 
 PLATFORM_RELFLAGS	+= -ffixed-r5 -fPIC -mno-init-got -mrelax
+PLATFORM_RELFLAGS	+= -ffunction-sections -fdata-sections
+
 LDFLAGS_u-boot		= --gc-sections --relax
diff --git a/board/atmel/atngw100/config.mk b/board/atmel/atngw100/config.mk
index c3c7433214..34b709a79b 100644
--- a/board/atmel/atngw100/config.mk
+++ b/board/atmel/atngw100/config.mk
@@ -1,2 +1 @@
 CONFIG_SYS_TEXT_BASE		= 0x00000000
-PLATFORM_RELFLAGS	+= -ffunction-sections -fdata-sections
diff --git a/board/atmel/atstk1000/config.mk b/board/atmel/atstk1000/config.mk
index 455b0d5e8b..34b709a79b 100644
--- a/board/atmel/atstk1000/config.mk
+++ b/board/atmel/atstk1000/config.mk
@@ -1,2 +1 @@
-PLATFORM_RELFLAGS	+= -ffunction-sections -fdata-sections
 CONFIG_SYS_TEXT_BASE		= 0x00000000
diff --git a/board/earthlcd/favr-32-ezkit/config.mk b/board/earthlcd/favr-32-ezkit/config.mk
index 455b0d5e8b..34b709a79b 100644
--- a/board/earthlcd/favr-32-ezkit/config.mk
+++ b/board/earthlcd/favr-32-ezkit/config.mk
@@ -1,2 +1 @@
-PLATFORM_RELFLAGS	+= -ffunction-sections -fdata-sections
 CONFIG_SYS_TEXT_BASE		= 0x00000000
diff --git a/board/mimc/mimc200/config.mk b/board/mimc/mimc200/config.mk
index c3c7433214..34b709a79b 100644
--- a/board/mimc/mimc200/config.mk
+++ b/board/mimc/mimc200/config.mk
@@ -1,2 +1 @@
 CONFIG_SYS_TEXT_BASE		= 0x00000000
-PLATFORM_RELFLAGS	+= -ffunction-sections -fdata-sections
diff --git a/board/miromico/hammerhead/config.mk b/board/miromico/hammerhead/config.mk
index c3c7433214..34b709a79b 100644
--- a/board/miromico/hammerhead/config.mk
+++ b/board/miromico/hammerhead/config.mk
@@ -1,2 +1 @@
 CONFIG_SYS_TEXT_BASE		= 0x00000000
-PLATFORM_RELFLAGS	+= -ffunction-sections -fdata-sections