mkconfig: pass the board name to board config file
PATCH 1/2 mkconfig: pass the board name to board config file
then we can handle the different config target in the board file, which simplify the top makefile for board that have multiple config targets.
--- mkconfig | 1 + 1 files changed, 1 insertions(+), 0 deletions(-)
mkconfig +1 -0
@@ -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
Signature · 1 line
1.6.4
PATCH v2 2/2 mpc8536: simplify the top makefile for 36-bit config
--- Makefile | 4 +--- include/configs/MPC8536DS.h | 2 +- 2 files changed, 2 insertions(+), 4 deletions(-)
Makefile +1 -3
@@ -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
include/configs/MPC8536DS.h +1 -1
@@ -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
Signature · 1 line
1.6.4
Kumar Gala
AppliedPATCH v2 2/2 mpc8536: simplify the top makefile for 36-bit config
Quoted 5 lines · Mingkai Hu
Signed-off-by Mingkai Hu <[email protected]>---
Makefile | 4 +--- include/configs/MPC8536DS.h | 2 +- 2 files changed, 2 insertions(+), 4 deletions(-)
applied to 85xx.
- k
PATCH 1/2 mkconfig: pass the board name to board config file
In reply to Mingkai HuQuoted 8 lines · Mingkai Hu
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 <[email protected]>---
mkconfig | 1 +1 files changed, 1 insertions(+), 0 deletions(-)
Wolfgang,
I'll pick up the second patch once you apply this one.
- k
Quoted 20 lines
mkconfig +0
-0@@ -82,6 +82,7 @@ else > config.h # Create new config filefi
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.hSignature · 6 lines
1.6.4 _______________________________________________ U-Boot mailing list U-Boot at lists.denx.de http://lists.denx.de/mailman/listinfo/u-boot
Wolfgang Denk
AppliedPATCH 1/2 mkconfig: pass the board name to board config file
In reply to Mingkai HuDear Mingkai Hu,
Quoted 8 lines · In message <[email protected]> you…
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 <[email protected]>--- mkconfig | 1 + 1 files changed, 1 insertions(+), 0 deletions(-)
Applied, thanks.
Best regards,
Wolfgang Denk
Signature · 6 lines
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