All of lore.kernel.org
 help / color / mirror / Atom feed
* [U-Boot] [PATCH v1 1/2] mkconfig: pass the board name to board config file
@ 2009-09-08  7:07 Mingkai Hu
  2009-09-08  7:07 ` [U-Boot] [PATCH v2 2/2] mpc8536: simplify the top makefile for 36-bit config Mingkai Hu
                   ` (2 more replies)
  0 siblings, 3 replies; 5+ messages in thread
From: Mingkai Hu @ 2009-09-08  7:07 UTC (permalink / raw)
  To: u-boot

then we can handle the different config target in the board file,
which simplify the top makefile for board that have multiple config
targets.

Signed-off-by: Mingkai Hu <Mingkai.hu@freescale.com>
---
 mkconfig |    1 +
 1 files changed, 1 insertions(+), 0 deletions(-)

diff --git a/mkconfig b/mkconfig
index b0bbbd1..9efd2fa 100755
--- a/mkconfig
+++ b/mkconfig
@@ -82,6 +82,7 @@ else
 	> config.h		# Create new config file
 fi
 echo "/* Automatically generated - do not edit */" >>config.h
+echo "#define CONFIG_MK_${BOARD_NAME} 1" >>config.h
 echo "#include <configs/$1.h>" >>config.h
 echo "#include <asm/config.h>" >>config.h
 
-- 
1.6.4

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

* [U-Boot] [PATCH v2 2/2] mpc8536: simplify the top makefile for 36-bit config
  2009-09-08  7:07 [U-Boot] [PATCH v1 1/2] mkconfig: pass the board name to board config file Mingkai Hu
@ 2009-09-08  7:07 ` Mingkai Hu
  2009-09-10 21:22   ` Kumar Gala
  2009-09-08 14:12 ` [U-Boot] [PATCH v1 1/2] mkconfig: pass the board name to board config file Kumar Gala
  2009-09-10 20:57 ` Wolfgang Denk
  2 siblings, 1 reply; 5+ messages in thread
From: Mingkai Hu @ 2009-09-08  7:07 UTC (permalink / raw)
  To: u-boot

Signed-off-by: Mingkai Hu <Mingkai.hu@freescale.com>
---
 Makefile                    |    4 +---
 include/configs/MPC8536DS.h |    2 +-
 2 files changed, 2 insertions(+), 4 deletions(-)

diff --git a/Makefile b/Makefile
index 0449a5b..901a336 100644
--- a/Makefile
+++ b/Makefile
@@ -2444,9 +2444,7 @@ ATUM8548_config:	unconfig
 
 MPC8536DS_36BIT_config \
 MPC8536DS_config:       unconfig
-	@mkdir -p $(obj)include
-	@echo "#define CONFIG_$(@:_config=) 1"	>$(obj)include/config.h
-	@$(MKCONFIG) -a MPC8536DS ppc mpc85xx mpc8536ds freescale
+	@$(MKCONFIG) -n $(@:_config=) MPC8536DS ppc mpc85xx mpc8536ds freescale
 
 MPC8540ADS_config:	unconfig
 	@$(MKCONFIG) $(@:_config=) ppc mpc85xx mpc8540ads freescale
diff --git a/include/configs/MPC8536DS.h b/include/configs/MPC8536DS.h
index 4746e2e..6018858 100644
--- a/include/configs/MPC8536DS.h
+++ b/include/configs/MPC8536DS.h
@@ -27,7 +27,7 @@
 #ifndef __CONFIG_H
 #define __CONFIG_H
 
-#ifdef CONFIG_MPC8536DS_36BIT
+#ifdef CONFIG_MK_MPC8536DS_36BIT
 #define CONFIG_PHYS_64BIT	1
 #endif
 
-- 
1.6.4

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

* [U-Boot] [PATCH v1 1/2] mkconfig: pass the board name to board config file
  2009-09-08  7:07 [U-Boot] [PATCH v1 1/2] mkconfig: pass the board name to board config file Mingkai Hu
  2009-09-08  7:07 ` [U-Boot] [PATCH v2 2/2] mpc8536: simplify the top makefile for 36-bit config Mingkai Hu
@ 2009-09-08 14:12 ` Kumar Gala
  2009-09-10 20:57 ` Wolfgang Denk
  2 siblings, 0 replies; 5+ messages in thread
From: Kumar Gala @ 2009-09-08 14:12 UTC (permalink / raw)
  To: u-boot


On Sep 8, 2009, at 2:07 AM, Mingkai Hu wrote:

> then we can handle the different config target in the board file,
> which simplify the top makefile for board that have multiple config
> targets.
>
> Signed-off-by: Mingkai Hu <Mingkai.hu@freescale.com>
> ---
> mkconfig |    1 +
> 1 files changed, 1 insertions(+), 0 deletions(-)

Wolfgang,

I'll pick up the second patch once you apply this one.

- k

>
> diff --git a/mkconfig b/mkconfig
> index b0bbbd1..9efd2fa 100755
> --- a/mkconfig
> +++ b/mkconfig
> @@ -82,6 +82,7 @@ else
> 	> config.h		# Create new config file
> fi
> echo "/* Automatically generated - do not edit */" >>config.h
> +echo "#define CONFIG_MK_${BOARD_NAME} 1" >>config.h
> echo "#include <configs/$1.h>" >>config.h
> echo "#include <asm/config.h>" >>config.h
>
> -- 
> 1.6.4
>
> _______________________________________________
> U-Boot mailing list
> U-Boot at lists.denx.de
> http://lists.denx.de/mailman/listinfo/u-boot

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

* [U-Boot] [PATCH v1 1/2] mkconfig: pass the board name to board config file
  2009-09-08  7:07 [U-Boot] [PATCH v1 1/2] mkconfig: pass the board name to board config file Mingkai Hu
  2009-09-08  7:07 ` [U-Boot] [PATCH v2 2/2] mpc8536: simplify the top makefile for 36-bit config Mingkai Hu
  2009-09-08 14:12 ` [U-Boot] [PATCH v1 1/2] mkconfig: pass the board name to board config file Kumar Gala
@ 2009-09-10 20:57 ` Wolfgang Denk
  2 siblings, 0 replies; 5+ messages in thread
From: Wolfgang Denk @ 2009-09-10 20:57 UTC (permalink / raw)
  To: u-boot

Dear Mingkai Hu,

In message <1252393633-14949-1-git-send-email-Mingkai.hu@freescale.com> you wrote:
> then we can handle the different config target in the board file,
> which simplify the top makefile for board that have multiple config
> targets.
> 
> Signed-off-by: Mingkai Hu <Mingkai.hu@freescale.com>
> ---
>  mkconfig |    1 +
>  1 files changed, 1 insertions(+), 0 deletions(-)

Applied, 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
Women are more easily and more deeply terrified ...  generating  more
sheer horror than the male of the species.
	-- Spock, "Wolf in the Fold", stardate 3615.4

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

* [U-Boot] [PATCH v2 2/2] mpc8536: simplify the top makefile for 36-bit config
  2009-09-08  7:07 ` [U-Boot] [PATCH v2 2/2] mpc8536: simplify the top makefile for 36-bit config Mingkai Hu
@ 2009-09-10 21:22   ` Kumar Gala
  0 siblings, 0 replies; 5+ messages in thread
From: Kumar Gala @ 2009-09-10 21:22 UTC (permalink / raw)
  To: u-boot


On Sep 8, 2009, at 2:07 AM, Mingkai Hu wrote:

> Signed-off-by: Mingkai Hu <Mingkai.hu@freescale.com>
> ---
> Makefile                    |    4 +---
> include/configs/MPC8536DS.h |    2 +-
> 2 files changed, 2 insertions(+), 4 deletions(-)

applied to 85xx.

- k

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

end of thread, other threads:[~2009-09-10 21:22 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2009-09-08  7:07 [U-Boot] [PATCH v1 1/2] mkconfig: pass the board name to board config file Mingkai Hu
2009-09-08  7:07 ` [U-Boot] [PATCH v2 2/2] mpc8536: simplify the top makefile for 36-bit config Mingkai Hu
2009-09-10 21:22   ` Kumar Gala
2009-09-08 14:12 ` [U-Boot] [PATCH v1 1/2] mkconfig: pass the board name to board config file Kumar Gala
2009-09-10 20:57 ` Wolfgang Denk

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.