* Add support for IceCube board (with MGT5100 and MPC5200 CPUs)
[oweals/u-boot.git] / Makefile
index b368d01ad85c205fed453a6e62ad1c5408257ed8..37eca7d9bf61bf1f3057e51f34eba43f252fd09b 100644 (file)
--- a/Makefile
+++ b/Makefile
@@ -134,7 +134,8 @@ u-boot.dis: u-boot
                $(OBJDUMP) -d $< > $@
 
 u-boot:                depend subdirs $(OBJS) $(LIBS) $(LDSCRIPT)
-               $(LD) $(LDFLAGS) $(OBJS) \
+               UNDEF_SYM=`$(OBJDUMP) -x $(LIBS) |sed  -n -e 's/.*\(__u_boot_cmd_.*\)/-u\1/p'|sort|uniq`;\
+               $(LD) $(LDFLAGS) $$UNDEF_SYM $(OBJS) \
                        --start-group $(LIBS) --end-group \
                        -Map u-boot.map -o u-boot
 
@@ -180,6 +181,22 @@ unconfig:
 cmi_mpc5xx_config:     unconfig
        @./mkconfig $(@:_config=) ppc mpc5xx cmi
 
+#########################################################################
+## MPC5xxx Systems
+#########################################################################
+IceCube_5200_config    \
+IceCube_5100_config:           unconfig
+       @ >include/config.h
+       @[ -z "$(findstring _5200,$@)" ] || \
+               { echo "#define CONFIG_MPC5200"         >>include/config.h ; \
+                 echo "... with MPC5200 processor" ; \
+               }
+       @[ -z "$(findstring _5100,$@)" ] || \
+               { echo "#define CONFIG_MGT5100"         >>include/config.h ; \
+                 echo "... with MGT5100 processor" ; \
+               }
+       @./mkconfig -a IceCube ppc mpc5xxx icecube
+
 #########################################################################
 ## MPC8xx Systems
 #########################################################################
@@ -302,8 +319,20 @@ MHPC_config:               unconfig
 MVS1_config :          unconfig
        @./mkconfig $(@:_config=) ppc mpc8xx mvs1
 
+xtract_NETVIA = $(subst _V2,,$(subst _config,,$1))
+
+NETVIA_V2_config \
 NETVIA_config:         unconfig
-       @./mkconfig $(@:_config=) ppc mpc8xx netvia
+       @ >include/config.h
+       @[ -z "$(findstring NETVIA_config,$@)" ] || \
+                { echo "#define CONFIG_NETVIA_VERSION 1" >>include/config.h ; \
+                 echo "... Version 1" ; \
+                }
+       @[ -z "$(findstring NETVIA_V2_config,$@)" ] || \
+                { echo "#define CONFIG_NETVIA_VERSION 2" >>include/config.h ; \
+                 echo "... Version 2" ; \
+                }
+       @./mkconfig -a $(call xtract_NETVIA,$@) ppc mpc8xx netvia
 
 NX823_config:          unconfig
        @./mkconfig $(@:_config=) ppc mpc8xx nx823
@@ -359,6 +388,7 @@ xtract_8xx = $(subst _66MHz,,$(subst _80MHz,,$(subst _100MHz,,$(subst _LCD,,$(su
 
 FPS850L_config         \
 FPS860L_config         \
+NSCU_config            \
 TQM823L_config         \
 TQM823L_66MHz_config   \
 TQM823L_80MHz_config   \
@@ -377,6 +407,15 @@ TQM860L_80MHz_config       \
 TQM862L_config         \
 TQM862L_66MHz_config   \
 TQM862L_80MHz_config   \
+TQM855M_config         \
+TQM855M_66MHz_config   \
+TQM855M_80MHz_config   \
+TQM860M_config         \
+TQM860M_66MHz_config   \
+TQM860M_80MHz_config   \
+TQM862M_config         \
+TQM862M_66MHz_config   \
+TQM862M_80MHz_config   \
 TQM862M_100MHz_config: unconfig
        @ >include/config.h
        @[ -z "$(findstring _66MHz,$@)" ] || \
@@ -454,6 +493,9 @@ EBONY_config:unconfig
 ERIC_config:unconfig
        @./mkconfig $(@:_config=) ppc ppc4xx eric
 
+EXBITGEN_config:unconfig
+       @./mkconfig $(@:_config=) ppc ppc4xx exbitgen
+
 MIP405_config:unconfig
        @./mkconfig $(@:_config=) ppc ppc4xx mip405 mpl
 
@@ -490,6 +532,9 @@ WALNUT405_config:unconfig
 #########################################################################
 xtract_82xx = $(subst _ROMBOOT,,$(subst _L2,,$(subst _266MHz,,$(subst _300MHz,,$(subst _config,,$1)))))
 
+A3000_config: unconfig
+       @./mkconfig $(@:_config=) ppc mpc824x a3000
+
 BMW_config: unconfig
        @./mkconfig $(@:_config=) ppc mpc824x bmw
 
@@ -527,6 +572,9 @@ Sandpoint8240_config: unconfig
 Sandpoint8245_config: unconfig
        @./mkconfig $(@:_config=) ppc mpc824x sandpoint
 
+SL8245_config: unconfig
+       @./mkconfig $(@:_config=) ppc mpc824x sl8245
+
 utx8245_config: unconfig
        @./mkconfig $(@:_config=) ppc mpc824x utx8245
 
@@ -688,11 +736,14 @@ shannon_config    :       unconfig
        @./mkconfig $(@:_config=) arm sa1100 shannon
 
 #########################################################################
-## ARM920T Systems
+## ARM92xT Systems
 #########################################################################
 
 xtract_trab = $(subst _big_flash,,$(subst _config,,$1))
 
+omap1510inn_config :   unconfig
+       @./mkconfig $(@:_config=) arm arm925t omap1510inn
+
 smdk2400_config        :       unconfig
        @./mkconfig $(@:_config=) arm arm920t smdk2400
 
@@ -726,7 +777,7 @@ ep7312_config       :       unconfig
 #########################################################################
 
 cradle_config  :       unconfig
-       @./mkconfig $(@:_config=) arm pxa cradle 
+       @./mkconfig $(@:_config=) arm pxa cradle
 
 csb226_config  :       unconfig
        @./mkconfig $(@:_config=) arm pxa csb226
@@ -799,7 +850,7 @@ clobber:    clean
        rm -f u-boot u-boot.bin u-boot.srec u-boot.map System.map
        rm -f tools/crc32.c tools/environment.c tools/env/crc32.c
        rm -f tools/inca-swap-bytes cpu/mpc824x/bedbug_603e.c
-       rm -f include/asm/arch include/asm
+       rm -f include/asm/proc include/asm/arch include/asm
 
 mrproper \
 distclean:     clobber unconfig