* Patch by Fred Klatt, 25 Jun 2004:
[oweals/u-boot.git] / Makefile
index d17f215be248d213848dc72be89318cdfe2f73f5..516ae69a7ce94187f4a1e9d0f40541ac92a3ef3f 100644 (file)
--- a/Makefile
+++ b/Makefile
@@ -255,15 +255,32 @@ TOP5200_config:   unconfig
        @ echo "#define CONFIG_$(@:_config=) 1" >include/config.h
        @./mkconfig -a TOP5200 ppc mpc5xxx top5200 emk
 
-PM520_config:  unconfig
-       @./mkconfig $(@:_config=) ppc mpc5xxx pm520
+PM520_config \
+PM520_DDR_config \
+PM520_ROMBOOT_config \
+PM520_ROMBOOT_DDR_config:      unconfig
+       @ >include/config.h
+       @[ -z "$(findstring DDR,$@)" ] || \
+               { echo "#define CONFIG_MPC5200_DDR"     >>include/config.h ; \
+                 echo "... DDR memory revision" ; \
+               }
+       @[ -z "$(findstring ROMBOOT,$@)" ] || \
+               { echo "#define CONFIG_BOOT_ROM" >>include/config.h ; \
+                 echo "... booting from 8-bit flash" ; \
+               }
+       @./mkconfig -a PM520 ppc mpc5xxx pm520
 
 #########################################################################
 ## MPC8xx Systems
 #########################################################################
 
-AdderII_config:        unconfig
-       @./mkconfig $(@:_config=) ppc mpc8xx adderII
+Adder_config    \
+Adder87x_config \
+AdderII_config  \
+       :               unconfig
+       $(if $(findstring AdderII,$@), \
+       @echo "#define CONFIG_MPC852T" > include/config.h)
+       @./mkconfig -a Adder ppc mpc8xx adder
 
 ADS860_config     \
 FADS823_config    \
@@ -488,6 +505,30 @@ RPXClassic_config: unconfig
 RPXlite_config:                unconfig
        @./mkconfig $(@:_config=) ppc mpc8xx RPXlite
 
+RPXlite_DW_64_config           \
+RPXlite_DW_LCD_config          \
+RPXlite_DW_64_LCD_config       \
+RPXlite_DW_NVRAM_config                \
+RPXlite_DW_NVRAM_64_config      \
+RPXlite_DW_NVRAM_LCD_config    \
+RPXlite_DW_NVRAM_64_LCD_config  \
+RPXlite_DW_config:         unconfig
+       @ >include/config.h
+       @[ -z "$(findstring _64,$@)" ] || \
+               { echo "#define RPXlite_64MHz"          >>include/config.h ; \
+                 echo "... with 64MHz system clock ..."; \
+               }
+       @[ -z "$(findstring _LCD,$@)" ] || \
+               { echo "#define CONFIG_LCD"             >>include/config.h ; \
+                 echo "#define CONFIG_NEC_NL6448BC20"  >>include/config.h ; \
+                 echo "... with LCD display ..."; \
+               }
+       @[ -z "$(findstring _NVRAM,$@)" ] || \
+               { echo "#define  CFG_ENV_IS_IN_NVRAM"   >>include/config.h ; \
+                 echo "... with ENV in NVRAM ..."; \
+               }
+       @./mkconfig -a RPXlite_DW ppc mpc8xx RPXlite_dw
+
 rmu_config:    unconfig
        @./mkconfig $(@:_config=) ppc mpc8xx rmu
 
@@ -562,7 +603,7 @@ wtk_config: unconfig
 #########################################################################
 ## PPC4xx Systems
 #########################################################################
-xtract_4xx = $(subst _MODEL_BA,,$(subst _MODEL_ME,,$(subst _MODEL_HI,,$(subst _config,,$1))))
+xtract_4xx = $(subst _25,,$(subst _33,,$(subst _BA,,$(subst _ME,,$(subst _HI,,$(subst _config,,$1))))))
 
 ADCIOP_config: unconfig
        @./mkconfig $(@:_config=) ppc ppc4xx adciop esd
@@ -602,6 +643,9 @@ CRAYL1_config:      unconfig
 csb272_config: unconfig
        @./mkconfig $(@:_config=) ppc ppc4xx csb272
 
+csb472_config: unconfig
+       @./mkconfig $(@:_config=) ppc ppc4xx csb472
+
 DASA_SIM_config: unconfig
        @./mkconfig $(@:_config=) ppc ppc4xx dasa_sim esd
 
@@ -659,10 +703,12 @@ PLU405_config:    unconfig
 PMC405_config: unconfig
        @./mkconfig $(@:_config=) ppc ppc4xx pmc405 esd
 
-PPChameleonEVB_MODEL_BA_config \
-PPChameleonEVB_MODEL_ME_config \
-PPChameleonEVB_MODEL_HI_config \
-PPChameleonEVB_config: unconfig
+PPChameleonEVB_BA_25_config    \
+PPChameleonEVB_ME_25_config    \
+PPChameleonEVB_HI_25_config    \
+PPChameleonEVB_BA_33_config    \
+PPChameleonEVB_ME_33_config    \
+PPChameleonEVB_HI_33_config:   unconfig
        @ >include/config.h
        @[ -z "$(findstring _MODEL_BA,$@)" ] || \
                { echo "#define CONFIG_PPCHAMELEON_MODULE_MODEL 0" >>include/config.h ; \
@@ -676,6 +722,14 @@ PPChameleonEVB_config:     unconfig
                { echo "#define CONFIG_PPCHAMELEON_MODULE_MODEL 2" >>include/config.h ; \
                  echo "... HIGH-END model" ; \
                }
+       @[ -z "$(findstring _25,$@)" ] || \
+               { echo "#define CONFIG_PPCHAMELEON_CLK_25" >>include/config.h ; \
+                 echo " SysClk = 25MHz" ; \
+               }
+       @[ -z "$(findstring _33,$@)" ] || \
+               { echo "#define CONFIG_PPCHAMELEON_CLK_33" >>include/config.h ; \
+                 echo " SysClk = 33MHz" ; \
+               }
        @./mkconfig -a $(call xtract_4xx,$@) ppc ppc4xx PPChameleonEVB dave
 
 VOH405_config: unconfig
@@ -786,6 +840,13 @@ hymod_config:      unconfig
 IPHASE4539_config:     unconfig
        @./mkconfig $(@:_config=) ppc mpc8260 iphase4539
 
+ISPAN_config           \
+ISPAN_REVB_config:     unconfig
+       @if [ "$(findstring _REVB_,$@)" ] ; then \
+               echo "#define CFG_REV_B" > include/config.h ; \
+       fi
+       @./mkconfig -a ISPAN ppc mpc8260 ispan
+
 MPC8260ADS_config      \
 MPC8260ADS_33MHz_config        \
 MPC8260ADS_40MHz_config        \
@@ -940,15 +1001,26 @@ M5282EVB_config :                unconfig
 ## MPC85xx Systems
 #########################################################################
 
-MPC8540ADS_config:      unconfig
+MPC8540ADS_config:     unconfig
        @./mkconfig $(@:_config=) ppc mpc85xx mpc8540ads
 
-MPC8560ADS_config:      unconfig
+MPC8560ADS_config:     unconfig
        @./mkconfig $(@:_config=) ppc mpc85xx mpc8560ads
 
-stxgp3_config:      unconfig
+stxgp3_config:         unconfig
        @./mkconfig $(@:_config=) ppc mpc85xx stxgp3
 
+SBC8560_33_config \
+SBC8560_66_config:      unconfig
+       @if [ "$(findstring _66_,$@)" ] ; then \
+               echo "#define CONFIG_PCI_66"  >>include/config.h ; \
+               echo "... 66 MHz PCI" ; \
+       else \
+               >include/config.h ; \
+               echo "... 33 MHz PCI" ; \
+       fi
+       @./mkconfig -a SBC8560 ppc mpc85xx sbc8560
+
 #########################################################################
 ## 74xx/7xx Systems
 #########################################################################
@@ -1010,21 +1082,19 @@ shannon_config  :       unconfig
 
 xtract_trab = $(subst _bigram,,$(subst _bigflash,,$(subst _old,,$(subst _config,,$1))))
 
-xtract_omap1610xxx = $(subst _cs0boot,,$(subst _cs3boot,, $(subst _config,,$1)))
+xtract_omap1610xxx = $(subst _cs0boot,,$(subst _cs3boot,,$(subst _cs_autoboot,,$(subst _config,,$1))))
 
 xtract_omap730p2 = $(subst _cs0boot,,$(subst _cs3boot,, $(subst _config,,$1)))
 
-SX1_config :           unconfig
-       @./mkconfig $(@:_config=) arm arm925t sx1
-
 integratorcp_config :  unconfig
        @./mkconfig $(@:_config=) arm arm926ejs integratorcp
 
 integratorap_config :  unconfig
        @./mkconfig $(@:_config=) arm arm926ejs integratorap
 
-versatile_config :     unconfig
-       @./mkconfig $(@:_config=) arm arm926ejs versatile
+lpd7a400_config \
+lpd7a404_config:       unconfig
+       @./mkconfig $(@:_config=) arm lh7a40x lpd7a40x
 
 omap1510inn_config :   unconfig
        @./mkconfig $(@:_config=) arm arm925t omap1510inn
@@ -1035,12 +1105,17 @@ omap5912osk_config :    unconfig
 omap1610inn_config \
 omap1610inn_cs0boot_config \
 omap1610inn_cs3boot_config \
+omap1610inn_cs_autoboot_config \
 omap1610h2_config \
 omap1610h2_cs0boot_config \
-omap1610h2_cs3boot_config :    unconfig
+omap1610h2_cs3boot_config \
+omap1610h2_cs_autoboot_config: unconfig
        @if [ "$(findstring _cs0boot_, $@)" ] ; then \
                echo "#define CONFIG_CS0_BOOT" >> ./include/config.h ; \
                echo "... configured for CS0 boot"; \
+       elif [ "$(findstring _cs_autoboot_, $@)" ] ; then \
+               echo "#define CONFIG_CS_AUTOBOOT" >> ./include/config.h ; \
+               echo "... configured for CS_AUTO boot"; \
        else \
                echo "#define CONFIG_CS3_BOOT" >> ./include/config.h ; \
                echo "... configured for CS3 boot"; \
@@ -1065,6 +1140,9 @@ smdk2400_config   :       unconfig
 smdk2410_config        :       unconfig
        @./mkconfig $(@:_config=) arm arm920t smdk2410
 
+SX1_config :           unconfig
+       @./mkconfig $(@:_config=) arm arm925t sx1
+
 # TRAB default configuration:  8 MB Flash, 32 MB RAM
 trab_config \
 trab_bigram_config \
@@ -1093,6 +1171,8 @@ trab_old_config:  unconfig
 VCMA9_config   :       unconfig
        @./mkconfig $(@:_config=) arm arm920t vcma9 mpl
 
+versatile_config :     unconfig
+       @./mkconfig $(@:_config=) arm arm926ejs versatile
 
 #########################################################################
 ## S3C44B0 Systems
@@ -1102,18 +1182,28 @@ B2_config       :       unconfig
        @./mkconfig $(@:_config=) arm s3c44b0 B2 dave
 
 #########################################################################
-## ARM720T Systems
+## MC9328 (Dragonball) Systems
 #########################################################################
 
-impa7_config   :       unconfig
-       @./mkconfig $(@:_config=) arm arm720t impa7
+mx1ads_config  :       unconfig
+       @./mkconfig $(@:_config=) arm mc9328 mx1ads
+
+#########################################################################
+## ARM720T Systems
+#########################################################################
 
 ep7312_config  :       unconfig
        @./mkconfig $(@:_config=) arm arm720t ep7312
 
+impa7_config   :       unconfig
+       @./mkconfig $(@:_config=) arm arm720t impa7
+
 modnet50_config :      unconfig
        @./mkconfig $(@:_config=) arm arm720t modnet50
 
+evb4510_config :       unconfig
+       @./mkconfig $(@:_config=) arm arm720t evb4510
+
 #########################################################################
 ## AT91RM9200 Systems
 #########################################################################
@@ -1149,6 +1239,9 @@ wepep250_config   :       unconfig
 xm250_config   :       unconfig
        @./mkconfig $(@:_config=) arm pxa xm250
 
+xsengine_config :      unconfig
+       @./mkconfig $(@:_config=) arm pxa xsengine
+
 #========================================================================
 # i386
 #========================================================================
@@ -1318,10 +1411,10 @@ clean:
        rm -f board/trab/trab_fkt
 
 clobber:       clean
-       find . -type f \
-               \( -name .depend -o -name '*.srec' -o -name '*.bin' \) \
-               -print \
-               | xargs rm -f
+       find . -type f \( -name .depend \
+               -o -name '*.srec' -o -name '*.bin' -o -name u-boot.img \) \
+               -print0 \
+               | xargs -0 rm -f
        rm -f $(OBJS) *.bak tags TAGS
        rm -fr *.*~
        rm -f u-boot u-boot.map $(ALL)