]> git.kernelconcepts.de Git - karo-tx-uboot.git/commitdiff
ppc/85xx: Simplify the top makefile for P1_P2_RDB boards
authorKumar Gala <galak@kernel.crashing.org>
Thu, 10 Sep 2009 21:31:53 +0000 (16:31 -0500)
committerKumar Gala <galak@kernel.crashing.org>
Thu, 24 Sep 2009 17:04:58 +0000 (12:04 -0500)
Signed-off-by: Kumar Gala <galak@kernel.crashing.org>
Makefile
include/configs/P1_P2_RDB.h

index 1e256698f05fd4b4a92b7e6cc08aa6998e95147f..d8daa89502e14d24f2ee187d5284891018511cfb 100644 (file)
--- a/Makefile
+++ b/Makefile
@@ -2520,25 +2520,11 @@ P2020DS_36BIT_config \
 P2020DS_config:                unconfig
        @$(MKCONFIG) -t $(@:_config=) P2020DS ppc mpc85xx p2020ds freescale
 
-P1011RDB_config:       unconfig
-       @mkdir -p $(obj)include
-       @echo "#define CONFIG_P1011" >>$(obj)include/config.h ;
-       @$(MKCONFIG) -a P1_P2_RDB  ppc mpc85xx p1_p2_rdb freescale
-
-P1020RDB_config:       unconfig
-       @mkdir -p $(obj)include
-       @echo "#define CONFIG_P1020" >>$(obj)include/config.h ;
-       @$(MKCONFIG) -a P1_P2_RDB  ppc mpc85xx p1_p2_rdb freescale
-
-P2010RDB_config:       unconfig
-       @mkdir -p $(obj)include
-       @echo "#define CONFIG_P2010" >>$(obj)include/config.h ;
-       @$(MKCONFIG) -a P1_P2_RDB  ppc mpc85xx p1_p2_rdb freescale
-
+P1011RDB_config        \
+P1020RDB_config        \
+P2010RDB_config \
 P2020RDB_config:       unconfig
-       @mkdir -p $(obj)include
-       @echo "#define CONFIG_P2020" >>$(obj)include/config.h ;
-       @$(MKCONFIG) -a P1_P2_RDB  ppc mpc85xx p1_p2_rdb freescale
+       @$(MKCONFIG) -t $(@:_config=) P1_P2_RDB ppc mpc85xx p1_p2_rdb freescale
 
 PM854_config:  unconfig
        @$(MKCONFIG) $(@:_config=) ppc mpc85xx pm854
index 6d44d6c8ddbd9ea243077ced21ab0fc9e128ec52..8e97ad068195eda4c5e4ccc49a3764a19fa3659b 100644 (file)
 #ifndef __CONFIG_H
 #define __CONFIG_H
 
+#ifdef CONFIG_MK_P1011RDB
+#define CONFIG_P1011
+#endif
+#ifdef CONFIG_MK_P1020RDB
+#define CONFIG_P1020
+#endif
+#ifdef CONFIG_MK_P2010RDB
+#define CONFIG_P2010
+#endif
+#ifdef CONFIG_MK_P2020RDB
+#define CONFIG_P2020
+#endif
+
 /* High Level Configuration Options */
 #define CONFIG_BOOKE           1       /* BOOKE */
 #define CONFIG_E500            1       /* BOOKE e500 family */