public inbox for u-boot@lists.denx.de
 help / color / mirror / Atom feed
* [U-Boot] [PATCH 1/6] mkconfig: Create board directory (CONFIG_BOARDDIR) in include/config.h
@ 2009-10-27 15:42 Stefan Roese
  2009-10-30  9:08 ` Stefan Roese
  0 siblings, 1 reply; 2+ messages in thread
From: Stefan Roese @ 2009-10-27 15:42 UTC (permalink / raw)
  To: u-boot

This patch extends the mkconfig script to automatically create a define
for the board directory in include/config.h:

#define CONFIG_BOARDDIR board/amcc/canyonlands

This is needed for the upcoming PPC4xx linker script consolidation,
where the PPC440 platforms need to include a board specific file in
the common linker script.

Signed-off-by: Stefan Roese <sr@denx.de>
---
 mkconfig |    9 +++++++++
 1 files changed, 9 insertions(+), 0 deletions(-)

diff --git a/mkconfig b/mkconfig
index 4c5675b..bdc9d91 100755
--- a/mkconfig
+++ b/mkconfig
@@ -74,6 +74,13 @@ echo "BOARD  = $4" >> config.mk
 
 [ "$6" ] && [ "$6" != "NULL" ] && echo "SOC    = $6" >> config.mk
 
+# Assign board directory to BOARDIR variable
+if [ -z "$5" -o "$5" = "NULL" ] ; then
+    BOARDDIR=$4
+else
+    BOARDDIR=$5/$4
+fi
+
 #
 # Create board specific header file
 #
@@ -89,6 +96,8 @@ for i in ${TARGETS} ; do
 	echo "#define CONFIG_MK_${i} 1" >>config.h ;
 done
 
+echo "#define CONFIG_BOARDDIR board/$BOARDDIR" >>config.h
+
 echo "#include <configs/$1.h>" >>config.h
 echo "#include <asm/config.h>" >>config.h
 
-- 
1.6.5.1

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

* [U-Boot] [PATCH 1/6] mkconfig: Create board directory (CONFIG_BOARDDIR) in include/config.h
  2009-10-27 15:42 [U-Boot] [PATCH 1/6] mkconfig: Create board directory (CONFIG_BOARDDIR) in include/config.h Stefan Roese
@ 2009-10-30  9:08 ` Stefan Roese
  0 siblings, 0 replies; 2+ messages in thread
From: Stefan Roese @ 2009-10-30  9:08 UTC (permalink / raw)
  To: u-boot

Hi Wolfgang,

On Tuesday 27 October 2009 16:42:03 Stefan Roese wrote:
> This patch extends the mkconfig script to automatically create a define
> for the board directory in include/config.h:
> 
> #define CONFIG_BOARDDIR board/amcc/canyonlands
> 
> This is needed for the upcoming PPC4xx linker script consolidation,
> where the PPC440 platforms need to include a board specific file in
> the common linker script.

I would like to apply this patch series to the u-boot-ppc4xx/next branch soon. 
Is it ok for you, if I also apply this patch (1/6) which not ppc4xx related to 
this branch too?
 
Cheers,
Stefan

--
DENX Software Engineering GmbH,      MD: Wolfgang Denk & Detlev Zundel
HRB 165235 Munich,  Office: Kirchenstr.5, D-82194 Groebenzell, Germany
Phone: (+49)-8142-66989-0 Fax: (+49)-8142-66989-80 Email: office at denx.de

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

end of thread, other threads:[~2009-10-30  9:08 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2009-10-27 15:42 [U-Boot] [PATCH 1/6] mkconfig: Create board directory (CONFIG_BOARDDIR) in include/config.h Stefan Roese
2009-10-30  9:08 ` Stefan Roese

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox