Skip to content
Snippets Groups Projects
Makefile 93.9 KiB
Newer Older
  • Learn to ignore specific revisions
  • MPC832XEMDS_ATM_config:	unconfig
    
    	@mkdir -p $(obj)include
    
    	@if [ "$(findstring _HOST_,$@)" ] ; then \
    
    		$(XECHO) -n "... PCI HOST " ; \
    
    		echo "#define CONFIG_PCI" >>$(obj)include/config.h ; \
    
    	fi ; \
    	if [ "$(findstring _SLAVE_,$@)" ] ; then \
    
    		$(XECHO) "...PCI SLAVE 66M"  ; \
    
    		echo "#define CONFIG_PCI" >>$(obj)include/config.h ; \
    		echo "#define CONFIG_PCISLAVE" >>$(obj)include/config.h ; \
    
    	fi ; \
    	if [ "$(findstring _33_,$@)" ] ; then \
    
    		$(XECHO) -n "...33M ..." ; \
    
    		echo "#define PCI_33M" >>$(obj)include/config.h ; \
    
    		echo "#define CONFIG_PQ_MDS_PIB 1" >>$(obj)include/config.h ; \
    
    	fi ; \
    	if [ "$(findstring _66_,$@)" ] ; then \
    
    		$(XECHO) -n "...66M..." ; \
    
    		echo "#define PCI_66M" >>$(obj)include/config.h ; \
    
    		echo "#define CONFIG_PQ_MDS_PIB 1" >>$(obj)include/config.h ; \
    	fi ; \
    	if [ "$(findstring _ATM_,$@)" ] ; then \
    
    		$(XECHO) -n "...ATM..." ; \
    
    		echo "#define CONFIG_PQ_MDS_PIB 1" >>$(obj)include/config.h ; \
    
    		echo "#define CONFIG_PQ_MDS_PIB_ATM	1" >>$(obj)include/config.h ; \
    
    	@$(MKCONFIG) -a MPC832XEMDS ppc mpc83xx mpc832xemds freescale
    
    MPC8349EMDS_config:	unconfig
    
    	@$(MKCONFIG) $(@:_config=) ppc mpc83xx mpc8349emds freescale
    
    MPC8349ITX_config \
    MPC8349ITX_LOWBOOT_config \
    MPC8349ITXGP_config:	unconfig
    	@mkdir -p $(obj)include
    
    	@mkdir -p $(obj)board/freescale/mpc8349itx
    
    	@echo "#define CONFIG_$(subst _LOWBOOT,,$(@:_config=))" >> $(obj)include/config.h
    	@if [ "$(findstring GP,$@)" ] ; then \
    
    		echo "TEXT_BASE = 0xFE000000" >$(obj)board/freescale/mpc8349itx/config.tmp ; \
    
    	fi
    	@if [ "$(findstring LOWBOOT,$@)" ] ; then \
    
    		echo "TEXT_BASE = 0xFE000000" >$(obj)board/freescale/mpc8349itx/config.tmp ; \
    
    	@$(MKCONFIG) -a -n $(@:_config=) MPC8349ITX ppc mpc83xx mpc8349itx freescale
    
    MPC8360EMDS_config \
    MPC8360EMDS_HOST_33_config \
    MPC8360EMDS_HOST_66_config \
    
    MPC8360EMDS_SLAVE_config \
    MPC8360EMDS_ATM_config: unconfig
    
    	@mkdir -p $(obj)include
    
    	@if [ "$(findstring _HOST_,$@)" ] ; then \
    
    		$(XECHO) -n "... PCI HOST " ; \
    
    		echo "#define CONFIG_PCI" >>$(obj)include/config.h ; \
    
    	fi ; \
    	if [ "$(findstring _SLAVE_,$@)" ] ; then \
    
    		$(XECHO) "...PCI SLAVE 66M"  ; \
    
    		echo "#define CONFIG_PCI" >>$(obj)include/config.h ; \
    		echo "#define CONFIG_PCISLAVE" >>$(obj)include/config.h ; \
    
    	fi ; \
    	if [ "$(findstring _33_,$@)" ] ; then \
    
    		$(XECHO) -n "...33M ..." ; \
    
    		echo "#define PCI_33M" >>$(obj)include/config.h ; \
    
    		echo "#define CONFIG_PQ_MDS_PIB 1" >>$(obj)include/config.h ; \
    
    	fi ; \
    	if [ "$(findstring _66_,$@)" ] ; then \
    
    		$(XECHO) -n "...66M..." ; \
    
    		echo "#define PCI_66M" >>$(obj)include/config.h ; \
    
    		echo "#define CONFIG_PQ_MDS_PIB 1" >>$(obj)include/config.h ; \
    	fi ; \
    	if [ "$(findstring _ATM_,$@)" ] ; then \
    
    		$(XECHO) -n "...ATM..." ; \
    
    		echo "#define CONFIG_PQ_MDS_PIB 1" >>$(obj)include/config.h ; \
    
    		echo "#define CONFIG_PQ_MDS_PIB_ATM	1" >>$(obj)include/config.h ; \
    
    	@$(MKCONFIG) -a MPC8360EMDS ppc mpc83xx mpc8360emds freescale
    
    MPC8360ERDK_33_config \
    MPC8360ERDK_66_config \
    
    	@mkdir -p $(obj)include
    
    	@if [ "$(findstring _33_,$@)" ] ; then \
    
    		$(XECHO) -n "... CLKIN 33MHz " ; \
    
    		echo "#define CONFIG_CLKIN_33MHZ" >>$(obj)include/config.h ;\
    	fi ;
    	@$(MKCONFIG) -a MPC8360ERDK ppc mpc83xx mpc8360erdk freescale
    
    
    MPC837XEMDS_config \
    MPC837XEMDS_HOST_config:	unconfig
    	@mkdir -p $(obj)include
    
    	@if [ "$(findstring _HOST_,$@)" ] ; then \
    
    		$(XECHO) -n "... PCI HOST " ; \
    
    		echo "#define CONFIG_PCI" >>$(obj)include/config.h ; \
    	fi ;
    	@$(MKCONFIG) -a MPC837XEMDS ppc mpc83xx mpc837xemds freescale
    
    
    MPC837XERDB_config:	unconfig
    	@$(MKCONFIG) -a MPC837XERDB ppc mpc83xx mpc837xerdb freescale
    
    
    sbc8349_config:		unconfig
    	@$(MKCONFIG) $(@:_config=) ppc mpc83xx sbc8349
    
    TQM834x_config:	unconfig
    	@$(MKCONFIG) $(@:_config=) ppc mpc83xx tqm834x
    
    
    #########################################################################
    ## MPC85xx Systems
    #########################################################################
    
    
    ATUM8548_config:	unconfig
    	@$(MKCONFIG) $(@:_config=) ppc mpc85xx atum8548
    
    
    MPC8540ADS_config:	unconfig
    
    	@$(MKCONFIG) $(@:_config=) ppc mpc85xx mpc8540ads freescale
    
    MPC8540EVAL_config \
    MPC8540EVAL_33_config \
    MPC8540EVAL_66_config \
    MPC8540EVAL_33_slave_config \
    
    MPC8540EVAL_66_slave_config:	  unconfig
    
    	@if [ "$(findstring _33_,$@)" ] ; then \
    
    		$(XECHO) "... 33 MHz PCI" ; \
    
    		echo "#define CONFIG_SYSCLK_66M" >>$(obj)include/config.h ; \
    
    		$(XECHO) "... 66 MHz PCI" ; \
    
    	fi ; \
    	if [ "$(findstring _slave_,$@)" ] ; then \
    
    		echo "#define CONFIG_PCI_SLAVE" >>$(obj)include/config.h ; \
    
    	@$(MKCONFIG) -a MPC8540EVAL ppc mpc85xx mpc8540eval
    
    MPC8560ADS_config:	unconfig
    
    	@$(MKCONFIG) $(@:_config=) ppc mpc85xx mpc8560ads freescale
    
    MPC8541CDS_legacy_config \
    
    MPC8541CDS_config:	unconfig
    
    	@mkdir -p $(obj)include
    
    	@if [ "$(findstring _legacy_,$@)" ] ; then \
    
    		echo "#define CONFIG_LEGACY" >>$(obj)include/config.h ; \
    
    		$(XECHO) "... legacy" ; \
    
    	@$(MKCONFIG) -a MPC8541CDS ppc mpc85xx mpc8541cds freescale
    
    Andy Fleming's avatar
    Andy Fleming committed
    MPC8544DS_config:	unconfig
    	@$(MKCONFIG) $(@:_config=) ppc mpc85xx mpc8544ds freescale
    
    
    MPC8548CDS_legacy_config \
    
    MPC8548CDS_config:	unconfig
    
    	@mkdir -p $(obj)include
    
    	@if [ "$(findstring _legacy_,$@)" ] ; then \
    
    		echo "#define CONFIG_LEGACY" >>$(obj)include/config.h ; \
    
    		$(XECHO) "... legacy" ; \
    
    	@$(MKCONFIG) -a MPC8548CDS ppc mpc85xx mpc8548cds freescale
    
    MPC8555CDS_legacy_config \
    
    MPC8555CDS_config:	unconfig
    
    	@mkdir -p $(obj)include
    
    	@if [ "$(findstring _legacy_,$@)" ] ; then \
    
    		echo "#define CONFIG_LEGACY" >>$(obj)include/config.h ; \
    
    		$(XECHO) "... legacy" ; \
    
    	@$(MKCONFIG) -a MPC8555CDS ppc mpc85xx mpc8555cds freescale
    
    MPC8568MDS_config:	unconfig
    
    	@$(MKCONFIG) $(@:_config=) ppc mpc85xx mpc8568mds freescale
    
    PM854_config:	unconfig
    
    	@$(MKCONFIG) $(@:_config=) ppc mpc85xx pm854
    
    PM856_config:	unconfig
    
    	@$(MKCONFIG) $(@:_config=) ppc mpc85xx pm856
    
    sbc8540_config \
    sbc8540_33_config \
    sbc8540_66_config:	unconfig
    
    	@if [ "$(findstring _66_,$@)" ] ; then \
    
    		echo "#define CONFIG_PCI_66"	>>$(obj)include/config.h ; \
    
    		$(XECHO) "... 66 MHz PCI" ; \
    
    		$(XECHO) "... 33 MHz PCI" ; \
    
    	@$(MKCONFIG) -a SBC8540 ppc mpc85xx sbc8560
    
    sbc8548_config:		unconfig
    	@$(MKCONFIG) $(@:_config=) ppc mpc85xx sbc8548
    
    
    sbc8560_config \
    sbc8560_33_config \
    
    	@if [ "$(findstring _66_,$@)" ] ; then \
    
    		echo "#define CONFIG_PCI_66"	>>$(obj)include/config.h ; \
    
    		$(XECHO) "... 66 MHz PCI" ; \
    
    		$(XECHO) "... 33 MHz PCI" ; \
    
    	@$(MKCONFIG) -a sbc8560 ppc mpc85xx sbc8560
    
    stxgp3_config:		unconfig
    
    	@$(MKCONFIG) $(@:_config=) ppc mpc85xx stxgp3
    
    stxssa_config		\
    stxssa_4M_config:	unconfig
    	@mkdir -p $(obj)include
    	@if [ "$(findstring _4M_,$@)" ] ; then \
    		echo "#define CONFIG_STXSSA_4M" >>$(obj)include/config.h ; \
    
    		$(XECHO) "... with 4 MiB flash memory" ; \
    
    	fi
    	@$(MKCONFIG) -a stxssa ppc mpc85xx stxssa
    
    TQM8540_config		\
    TQM8541_config		\
    TQM8555_config		\
    TQM8560_config:		unconfig
    
    	@CTYPE=$(subst TQM,,$(@:_config=)); \
    
    	$(XECHO) "... TQM"$${CTYPE}; \
    
    	echo "#define CONFIG_MPC$${CTYPE}">>$(obj)include/config.h; \
    	echo "#define CONFIG_TQM$${CTYPE}">>$(obj)include/config.h; \
    	echo "#define CONFIG_HOSTNAME tqm$${CTYPE}">>$(obj)include/config.h; \
    	echo "#define CONFIG_BOARDNAME \"TQM$${CTYPE}\"">>$(obj)include/config.h; \
    
    	echo "#define CFG_BOOTFILE_PATH \"/tftpboot/tqm$${CTYPE}/uImage\"">>$(obj)include/config.h
    
    	@$(MKCONFIG) -a TQM85xx ppc mpc85xx tqm85xx
    
    #########################################################################
    ## MPC86xx Systems
    #########################################################################
    
    
    MPC8610HPCD_config:	unconfig
    	@$(MKCONFIG) $(@:_config=) ppc mpc86xx mpc8610hpcd freescale
    
    
    MPC8641HPCN_config:    unconfig
    
    	@$(MKCONFIG) $(@:_config=) ppc mpc86xx mpc8641hpcn freescale
    
    sbc8641d_config:	unconfig
    
    	@$(MKCONFIG) $(@:_config=) ppc mpc86xx sbc8641d
    
    Wolfgang Denk's avatar
    Wolfgang Denk committed
    #########################################################################
    ## 74xx/7xx Systems
    #########################################################################
    
    
    AmigaOneG3SE_config:	unconfig
    
    	@$(MKCONFIG) $(@:_config=) ppc 74xx_7xx AmigaOneG3SE MAI
    
    BAB7xx_config: unconfig
    
    	@$(MKCONFIG) $(@:_config=) ppc 74xx_7xx bab7xx eltec
    
    CPCI750_config:	unconfig
    
    	@$(MKCONFIG) CPCI750 ppc 74xx_7xx cpci750 esd
    
    DB64360_config:	unconfig
    
    	@$(MKCONFIG) DB64360 ppc 74xx_7xx db64360 Marvell
    
    DB64460_config:	unconfig
    
    	@$(MKCONFIG) DB64460 ppc 74xx_7xx db64460 Marvell
    
    ELPPC_config: unconfig
    
    	@$(MKCONFIG) $(@:_config=) ppc 74xx_7xx elppc eltec
    
    Wolfgang Denk's avatar
    Wolfgang Denk committed
    EVB64260_config	\
    EVB64260_750CX_config:	unconfig
    
    	@$(MKCONFIG) EVB64260 ppc 74xx_7xx evb64260
    
    Wolfgang Denk's avatar
    Wolfgang Denk committed
    
    
    mpc7448hpc2_config:  unconfig
    
    	@$(MKCONFIG) $(@:_config=) ppc 74xx_7xx mpc7448hpc2 freescale
    
    P3G4_config: unconfig
    
    	@$(MKCONFIG) $(@:_config=) ppc 74xx_7xx evb64260
    
    Wolfgang Denk's avatar
    Wolfgang Denk committed
    
    
    p3m750_config	\
    p3m7448_config:		unconfig
    	@mkdir -p $(obj)include
    	@if [ "$(findstring 750_,$@)" ] ; then \
    		echo "#define CONFIG_P3M750" >>$(obj)include/config.h ; \
    	else \
    		echo "#define CONFIG_P3M7448" >>$(obj)include/config.h ; \
    	fi
    	@$(MKCONFIG) -a p3mx ppc 74xx_7xx p3mx prodrive
    
    
    Wolfgang Denk's avatar
    Wolfgang Denk committed
    PCIPPC2_config \
    PCIPPC6_config: unconfig
    
    	@$(MKCONFIG) $(@:_config=) ppc 74xx_7xx pcippc2
    
    Wolfgang Denk's avatar
    Wolfgang Denk committed
    
    
    ZUMA_config:	unconfig
    
    	@$(MKCONFIG) $(@:_config=) ppc 74xx_7xx evb64260
    
    ppmc7xx_config: unconfig
    
    	@$(MKCONFIG) $(@:_config=) ppc 74xx_7xx ppmc7xx
    
    Wolfgang Denk's avatar
    Wolfgang Denk committed
    #========================================================================
    # ARM
    #========================================================================
    #########################################################################
    ## StrongARM Systems
    #########################################################################
    
    
    assabet_config	:	unconfig
    
    	@$(MKCONFIG) $(@:_config=) arm sa1100 assabet
    
    Wolfgang Denk's avatar
    Wolfgang Denk committed
    dnp1110_config	:	unconfig
    
    	@$(MKCONFIG) $(@:_config=) arm sa1100 dnp1110
    
    Wolfgang Denk's avatar
    Wolfgang Denk committed
    
    
    gcplus_config	:	unconfig
    
    	@$(MKCONFIG) $(@:_config=) arm sa1100 gcplus
    
    
    lart_config	:	unconfig
    
    	@$(MKCONFIG) $(@:_config=) arm sa1100 lart
    
    Wolfgang Denk's avatar
    Wolfgang Denk committed
    shannon_config	:	unconfig
    
    	@$(MKCONFIG) $(@:_config=) arm sa1100 shannon
    
    Wolfgang Denk's avatar
    Wolfgang Denk committed
    
    #########################################################################
    
    ## ARM92xT Systems
    
    Wolfgang Denk's avatar
    Wolfgang Denk committed
    #########################################################################
    
    
    #########################################################################
    ## Atmel AT91RM9200 Systems
    #########################################################################
    
    at91rm9200dk_config	:	unconfig
    
    	@$(MKCONFIG) $(@:_config=) arm arm920t at91rm9200dk atmel at91rm9200
    
    
    cmc_pu2_config	:	unconfig
    
    	@$(MKCONFIG) $(@:_config=) arm arm920t cmc_pu2 NULL at91rm9200
    
    csb637_config	:	unconfig
    
    	@$(MKCONFIG) $(@:_config=) arm arm920t csb637 NULL at91rm9200
    
    kb9202_config	:	unconfig
    	@$(MKCONFIG) $(@:_config=) arm arm920t kb9202 NULL at91rm9200
    
    
    mp2usb_config	:	unconfig
    
    	@$(MKCONFIG) $(@:_config=) arm arm920t mp2usb NULL at91rm9200
    
    m501sk_config	:	unconfig
    	@$(MKCONFIG) $(@:_config=) arm arm920t m501sk NULL at91rm9200
    
    #########################################################################
    ## Atmel ARM926EJ-S Systems
    #########################################################################
    
    at91cap9adk_config	:	unconfig
    	@$(MKCONFIG) $(@:_config=) arm arm926ejs at91cap9adk atmel at91sam9
    
    at91sam9260ek_config	:	unconfig
    	@$(MKCONFIG) $(@:_config=) arm arm926ejs at91sam9260ek atmel at91sam9
    
    
    ########################################################################
    ## ARM Integrator boards - see doc/README-integrator for more info.
    integratorap_config	\
    ap_config		\
    ap966_config		\
    ap922_config		\
    ap922_XA10_config	\
    ap7_config		\
    
    Wolfgang Denk's avatar
    Wolfgang Denk committed
    ap720t_config		\
    
    ap920t_config		\
    ap926ejs_config		\
    ap946es_config: unconfig
    
    	@board/integratorap/split_by_variant.sh $@
    
    
    integratorcp_config	\
    cp_config		\
    cp920t_config		\
    cp926ejs_config		\
    cp946es_config		\
    cp1136_config		\
    cp966_config		\
    cp922_config		\
    cp922_XA10_config	\
    cp1026_config: unconfig
    
    	@board/integratorcp/split_by_variant.sh $@
    
    lpd7a400_config \
    lpd7a404_config:	unconfig
    
    	@$(MKCONFIG) $(@:_config=) arm lh7a40x lpd7a40x
    
    Wolfgang Denk's avatar
    Wolfgang Denk committed
    mx1ads_config	:	unconfig
    
    	@$(MKCONFIG) $(@:_config=) arm arm920t mx1ads NULL imx
    
    Wolfgang Denk's avatar
    Wolfgang Denk committed
    
    mx1fs2_config	:	unconfig
    
    	@$(MKCONFIG) $(@:_config=) arm arm920t mx1fs2 NULL imx
    
    Wolfgang Denk's avatar
    Wolfgang Denk committed
    
    
    Wolfgang Denk's avatar
    Wolfgang Denk committed
    netstar_config:		unconfig
    
    Peter Pearse's avatar
    Peter Pearse committed
    	@$(MKCONFIG) $(@:_config=) arm arm925t netstar
    
    omap1510inn_config :	unconfig
    
    	@$(MKCONFIG) $(@:_config=) arm arm925t omap1510inn
    
    omap5912osk_config :	unconfig
    
    	@$(MKCONFIG) $(@:_config=) arm arm926ejs omap5912osk NULL omap
    
    davinci_dvevm_config :	unconfig
    	@$(MKCONFIG) $(@:_config=) arm arm926ejs dv-evm davinci davinci
    
    davinci_schmoogie_config :	unconfig
    	@$(MKCONFIG) $(@:_config=) arm arm926ejs schmoogie davinci davinci
    
    davinci_sonata_config :	unconfig
    	@$(MKCONFIG) $(@:_config=) arm arm926ejs sonata davinci davinci
    
    
    xtract_omap1610xxx = $(subst _cs0boot,,$(subst _cs3boot,,$(subst _cs_autoboot,,$(subst _config,,$1))))
    
    
    omap1610inn_config \
    omap1610inn_cs0boot_config \
    omap1610inn_cs3boot_config \
    
    omap1610inn_cs_autoboot_config \
    
    omap1610h2_config \
    omap1610h2_cs0boot_config \
    
    omap1610h2_cs3boot_config \
    omap1610h2_cs_autoboot_config:	unconfig
    
    	@if [ "$(findstring _cs0boot_, $@)" ] ; then \
    
    		echo "#define CONFIG_CS0_BOOT" >> .$(obj)include/config.h ; \
    
    		$(XECHO) "... configured for CS0 boot"; \
    
    	elif [ "$(findstring _cs_autoboot_, $@)" ] ; then \
    
    		echo "#define CONFIG_CS_AUTOBOOT" >> $(obj)include/config.h ; \
    
    		$(XECHO) "... configured for CS_AUTO boot"; \
    
    		echo "#define CONFIG_CS3_BOOT" >> $(obj)include/config.h ; \
    
    		$(XECHO) "... configured for CS3 boot"; \
    
    	@$(MKCONFIG) -a $(call xtract_omap1610xxx,$@) arm arm926ejs omap1610inn NULL omap
    
    xtract_omap730p2 = $(subst _cs0boot,,$(subst _cs3boot,, $(subst _config,,$1)))
    
    
    omap730p2_config \
    omap730p2_cs0boot_config \
    omap730p2_cs3boot_config :	unconfig
    
    	@if [ "$(findstring _cs0boot_, $@)" ] ; then \
    
    		echo "#define CONFIG_CS0_BOOT" >> $(obj)include/config.h ; \
    
    		$(XECHO) "... configured for CS0 boot"; \
    
    		echo "#define CONFIG_CS3_BOOT" >> $(obj)include/config.h ; \
    
    		$(XECHO) "... configured for CS3 boot"; \
    
    	@$(MKCONFIG) -a $(call xtract_omap730p2,$@) arm arm926ejs omap730p2 NULL omap
    
    sbc2410x_config: unconfig
    
    	@$(MKCONFIG) $(@:_config=) arm arm920t sbc2410x NULL s3c24x0
    
    Wolfgang Denk's avatar
    Wolfgang Denk committed
    scb9328_config	:	unconfig
    
    	@$(MKCONFIG) $(@:_config=) arm arm920t scb9328 NULL imx
    
    Wolfgang Denk's avatar
    Wolfgang Denk committed
    
    
    Wolfgang Denk's avatar
    Wolfgang Denk committed
    smdk2400_config	:	unconfig
    
    	@$(MKCONFIG) $(@:_config=) arm arm920t smdk2400 NULL s3c24x0
    
    Wolfgang Denk's avatar
    Wolfgang Denk committed
    
    smdk2410_config	:	unconfig
    
    	@$(MKCONFIG) $(@:_config=) arm arm920t smdk2410 NULL s3c24x0
    
    Wolfgang Denk's avatar
    Wolfgang Denk committed
    
    
    SX1_config :		unconfig
    
    	@$(MKCONFIG) $(@:_config=) arm arm925t sx1
    
    # TRAB default configuration:	8 MB Flash, 32 MB RAM
    
    xtract_trab = $(subst _bigram,,$(subst _bigflash,,$(subst _old,,$(subst _config,,$1))))
    
    
    trab_bigram_config \
    trab_bigflash_config \
    
    	@mkdir -p $(obj)include
    	@mkdir -p $(obj)board/trab
    
    	@[ -z "$(findstring _bigram,$@)" ] || \
    
    		{ echo "#define CONFIG_FLASH_8MB"  >>$(obj)include/config.h ; \
    		  echo "#define CONFIG_RAM_32MB"   >>$(obj)include/config.h ; \
    
    		  $(XECHO) "... with 8 MB Flash, 32 MB RAM" ; \
    
    		}
    	@[ -z "$(findstring _bigflash,$@)" ] || \
    
    		{ echo "#define CONFIG_FLASH_16MB" >>$(obj)include/config.h ; \
    		  echo "#define CONFIG_RAM_16MB"   >>$(obj)include/config.h ; \
    
    		  $(XECHO) "... with 16 MB Flash, 16 MB RAM" ; \
    
    		  echo "TEXT_BASE = 0x0CF40000" >$(obj)board/trab/config.tmp ; \
    
    	@[ -z "$(findstring _old,$@)" ] || \
    
    		{ echo "#define CONFIG_FLASH_8MB"  >>$(obj)include/config.h ; \
    		  echo "#define CONFIG_RAM_16MB"   >>$(obj)include/config.h ; \
    
    		  $(XECHO) "... with 8 MB Flash, 16 MB RAM" ; \
    
    		  echo "TEXT_BASE = 0x0CF40000" >$(obj)board/trab/config.tmp ; \
    
    	@$(MKCONFIG) -a $(call xtract_trab,$@) arm arm920t trab NULL s3c24x0
    
    Wolfgang Denk's avatar
    Wolfgang Denk committed
    
    
    VCMA9_config	:	unconfig
    
    	@$(MKCONFIG) $(@:_config=) arm arm920t vcma9 mpl s3c24x0
    
    #========================================================================
    # ARM supplied Versatile development boards
    #========================================================================
    versatile_config	\
    versatileab_config	\
    versatilepb_config :	unconfig
    
    	@board/versatile/split_by_variant.sh $@
    
    voiceblue_config:	unconfig
    
    	@$(MKCONFIG) $(@:_config=) arm arm925t voiceblue
    
    cm4008_config	:	unconfig
    
    	@$(MKCONFIG) $(@:_config=) arm arm920t cm4008 NULL ks8695
    
    
    cm41xx_config	:	unconfig
    
    	@$(MKCONFIG) $(@:_config=) arm arm920t cm41xx NULL ks8695
    
    #########################################################################
    ## S3C44B0 Systems
    #########################################################################
    
    B2_config	:	unconfig
    
    	@$(MKCONFIG) $(@:_config=) arm s3c44b0 B2 dave
    
    #########################################################################
    ## ARM720T Systems
    #########################################################################
    
    Wolfgang Denk's avatar
    Wolfgang Denk committed
    
    
    armadillo_config:	unconfig
    
    	@$(MKCONFIG) $(@:_config=) arm arm720t armadillo
    
    Wolfgang Denk's avatar
    Wolfgang Denk committed
    ep7312_config	:	unconfig
    
    	@$(MKCONFIG) $(@:_config=) arm arm720t ep7312
    
    Wolfgang Denk's avatar
    Wolfgang Denk committed
    
    
    impa7_config	:	unconfig
    
    	@$(MKCONFIG) $(@:_config=) arm arm720t impa7
    
    modnet50_config :	unconfig
    
    	@$(MKCONFIG) $(@:_config=) arm arm720t modnet50
    
    evb4510_config :	unconfig
    
    	@$(MKCONFIG) $(@:_config=) arm arm720t evb4510
    
    Peter Pearse's avatar
    Peter Pearse committed
    	@$(MKCONFIG) $(@:_config=) arm arm720t lpc2292sodimm NULL lpc2292
    
    SMN42_config	:	unconfig
    	@$(MKCONFIG) $(@:_config=) arm arm720t SMN42 siemens lpc2292
    
    Wolfgang Denk's avatar
    Wolfgang Denk committed
    #########################################################################
    
    ## XScale Systems
    
    Wolfgang Denk's avatar
    Wolfgang Denk committed
    #########################################################################
    
    
    actux1_config	:	unconfig
    	@$(MKCONFIG) $(@:_config=) arm ixp actux1
    
    actux2_config	:	unconfig
    	@$(MKCONFIG) $(@:_config=) arm ixp actux2
    
    actux3_config	:	unconfig
    	@$(MKCONFIG) $(@:_config=) arm ixp actux3
    
    actux4_config	:	unconfig
    	@$(MKCONFIG) $(@:_config=) arm ixp actux4
    
    
    adsvix_config	:	unconfig
    
    	@$(MKCONFIG) $(@:_config=) arm pxa adsvix
    
    cerf250_config :	unconfig
    
    	@$(MKCONFIG) $(@:_config=) arm pxa cerf250
    
    Wolfgang Denk's avatar
    Wolfgang Denk committed
    cradle_config	:	unconfig
    
    	@$(MKCONFIG) $(@:_config=) arm pxa cradle
    
    Wolfgang Denk's avatar
    Wolfgang Denk committed
    
    csb226_config	:	unconfig
    
    	@$(MKCONFIG) $(@:_config=) arm pxa csb226
    
    Wolfgang Denk's avatar
    Wolfgang Denk committed
    
    
    	@$(MKCONFIG) $(@:_config=) arm pxa delta
    
    innokom_config	:	unconfig
    
    	@$(MKCONFIG) $(@:_config=) arm pxa innokom
    
    	@$(MKCONFIG) $(@:_config=) arm ixp ixdp425
    
    ixdpg425_config	:	unconfig
    
    	@$(MKCONFIG) $(@:_config=) arm ixp ixdp425
    
    lubbock_config	:	unconfig
    
    	@$(MKCONFIG) $(@:_config=) arm pxa lubbock
    
    pleb2_config	:	unconfig
    
    	@$(MKCONFIG) $(@:_config=) arm pxa pleb2
    
    logodl_config	:	unconfig
    
    	@$(MKCONFIG) $(@:_config=) arm pxa logodl
    
    	@mkdir -p $(obj)include
    
    	@if [ "$(findstring scpu_,$@)" ] ; then \
    
    		echo "#define CONFIG_SCPU"	>>$(obj)include/config.h ; \
    
    		$(XECHO) "... on SCPU board variant" ; \
    
    	fi
    	@$(MKCONFIG) -a pdnb3 arm ixp pdnb3 prodrive
    
    pxa255_idp_config:	unconfig
    
    	@$(MKCONFIG) $(@:_config=) arm pxa pxa255_idp
    
    trizepsiv_config	:	unconfig
    	@$(MKCONFIG) $(@:_config=) arm pxa trizepsiv
    
    
    wepep250_config	:	unconfig
    
    	@$(MKCONFIG) $(@:_config=) arm pxa wepep250
    
    xaeniax_config	:	unconfig
    
    	@$(MKCONFIG) $(@:_config=) arm pxa xaeniax
    
    	@$(MKCONFIG) $(@:_config=) arm pxa xm250
    
    xsengine_config :	unconfig
    
    	@$(MKCONFIG) $(@:_config=) arm pxa xsengine
    
    	@$(MKCONFIG) $(@:_config=) arm pxa zylonite
    
    #########################################################################
    ## ARM1136 Systems
    #########################################################################
    
    Peter Pearse's avatar
    Peter Pearse committed
    omap2420h4_config	: unconfig
    
    	@$(MKCONFIG) $(@:_config=) arm arm1136 omap2420h4 NULL omap24xx
    
    Peter Pearse's avatar
    Peter Pearse committed
    apollon_config		: unconfig
    
    	@mkdir -p $(obj)include
    
    	@echo "#define CONFIG_ONENAND_U_BOOT" > $(obj)include/config.h
    
    	@$(MKCONFIG) $(@:_config=) arm arm1136 apollon NULL omap24xx
    
    	@echo "CONFIG_ONENAND_U_BOOT = y" >> $(obj)include/config.mk
    
    Sascha Hauer's avatar
    Sascha Hauer committed
    imx31_litekit_config	: unconfig
    	@$(MKCONFIG) $(@:_config=) arm arm1136 imx31_litekit NULL mx31
    
    
    imx31_phycore_config	: unconfig
    	@$(MKCONFIG) $(@:_config=) arm arm1136 imx31_phycore NULL mx31
    
    
    mx31ads_config		: unconfig
    	@$(MKCONFIG) $(@:_config=) arm arm1136 mx31ads NULL mx31
    
    
    #========================================================================
    # i386
    #========================================================================
    #########################################################################
    
    ## AMD SC520 CDP
    
    #########################################################################
    sc520_cdp_config	:	unconfig
    
    	@$(MKCONFIG) $(@:_config=) i386 i386 sc520_cdp
    
    sc520_spunk_config	:	unconfig
    
    	@$(MKCONFIG) $(@:_config=) i386 i386 sc520_spunk
    
    
    sc520_spunk_rel_config	:	unconfig
    
    	@$(MKCONFIG) $(@:_config=) i386 i386 sc520_spunk
    
    #========================================================================
    # MIPS
    #========================================================================
    
    Wolfgang Denk's avatar
    Wolfgang Denk committed
    #########################################################################
    
    ## MIPS32 4Kc
    #########################################################################
    
    
    xtract_incaip = $(subst _100MHz,,$(subst _133MHz,,$(subst _150MHz,,$(subst _config,,$1))))
    
    incaip_100MHz_config	\
    incaip_133MHz_config	\
    incaip_150MHz_config	\
    incaip_config: unconfig
    
    	@[ -z "$(findstring _100MHz,$@)" ] || \
    
    		{ echo "#define CPU_CLOCK_RATE 100000000" >>$(obj)include/config.h ; \
    
    		  $(XECHO) "... with 100MHz system clock" ; \
    
    		}
    	@[ -z "$(findstring _133MHz,$@)" ] || \
    
    		{ echo "#define CPU_CLOCK_RATE 133000000" >>$(obj)include/config.h ; \
    
    		  $(XECHO) "... with 133MHz system clock" ; \
    
    		}
    	@[ -z "$(findstring _150MHz,$@)" ] || \
    
    		{ echo "#define CPU_CLOCK_RATE 150000000" >>$(obj)include/config.h ; \
    
    		  $(XECHO) "... with 150MHz system clock" ; \
    
    	@$(MKCONFIG) -a $(call xtract_incaip,$@) mips mips incaip
    
    tb0229_config: unconfig
    
    	@$(MKCONFIG) $(@:_config=) mips mips tb0229
    
    #########################################################################
    ## MIPS32 AU1X00
    #########################################################################
    
    Wolfgang Denk's avatar
    Wolfgang Denk committed
    dbau1000_config		:	unconfig
    
    	@echo "#define CONFIG_DBAU1000 1" >$(obj)include/config.h
    
    	@$(MKCONFIG) -a dbau1x00 mips mips dbau1x00
    
    Wolfgang Denk's avatar
    Wolfgang Denk committed
    dbau1100_config		:	unconfig
    
    	@echo "#define CONFIG_DBAU1100 1" >$(obj)include/config.h
    
    	@$(MKCONFIG) -a dbau1x00 mips mips dbau1x00
    
    Wolfgang Denk's avatar
    Wolfgang Denk committed
    dbau1500_config		:	unconfig
    
    	@echo "#define CONFIG_DBAU1500 1" >$(obj)include/config.h
    
    	@$(MKCONFIG) -a dbau1x00 mips mips dbau1x00
    
    dbau1550_config		:	unconfig
    
    	@echo "#define CONFIG_DBAU1550 1" >$(obj)include/config.h
    
    	@$(MKCONFIG) -a dbau1x00 mips mips dbau1x00
    
    
    dbau1550_el_config	:	unconfig
    
    	@echo "#define CONFIG_DBAU1550 1" >$(obj)include/config.h
    
    	@$(MKCONFIG) -a dbau1x00 mips mips dbau1x00
    
    Wolfgang Denk's avatar
    Wolfgang Denk committed
    pb1000_config		:	unconfig
    
    	@echo "#define CONFIG_PB1000 1" >$(obj)include/config.h
    
    	@$(MKCONFIG) -a pb1x00 mips mips pb1x00
    
    gth2_config:	unconfig
    	@mkdir -p $(obj)include
    	@echo "#define CONFIG_GTH2 1" >$(obj)include/config.h
    	@$(MKCONFIG) -a gth2 mips mips gth2
    
    
    qemu_mips_config: unconfig
    	@mkdir -p $(obj)include
    
    	@echo "#define CONFIG_QEMU_MIPS 1" >$(obj)include/config.h
    
    	@$(MKCONFIG) -a qemu-mips mips mips qemu-mips
    
    
    #########################################################################
    ## MIPS64 5Kc
    #########################################################################
    
    purple_config :		unconfig
    
    	@$(MKCONFIG) $(@:_config=) mips mips purple
    
    #========================================================================
    # Nios
    #========================================================================
    #########################################################################
    ## Nios32
    #########################################################################
    
    
    DK1C20_safe_32_config		\
    DK1C20_standard_32_config	\
    
    DK1C20_config:	unconfig
    
    	@[ -z "$(findstring _safe_32,$@)" ] || \
    
    		{ echo "#define CONFIG_NIOS_SAFE_32 1" >>$(obj)include/config.h ; \
    
    		  $(XECHO) "... NIOS 'safe_32' configuration" ; \
    
    		}
    	@[ -z "$(findstring _standard_32,$@)" ] || \
    
    		{ echo "#define CONFIG_NIOS_STANDARD_32 1" >>$(obj)include/config.h ; \
    
    		  $(XECHO) "... NIOS 'standard_32' configuration" ; \
    
    		}
    	@[ -z "$(findstring DK1C20_config,$@)" ] || \
    
    		{ echo "#define CONFIG_NIOS_STANDARD_32 1" >>$(obj)include/config.h ; \
    
    		  $(XECHO) "... NIOS 'standard_32' configuration (DEFAULT)" ; \
    
    	@$(MKCONFIG) -a DK1C20 nios nios dk1c20 altera
    
    
    DK1S10_safe_32_config		\
    DK1S10_standard_32_config	\
    
    DK1S10_mtx_ldk_20_config	\
    
    DK1S10_config:	unconfig
    
    	@[ -z "$(findstring _safe_32,$@)" ] || \
    
    		{ echo "#define CONFIG_NIOS_SAFE_32 1" >>$(obj)include/config.h ; \
    
    		  $(XECHO) "... NIOS 'safe_32' configuration" ; \
    
    		}
    	@[ -z "$(findstring _standard_32,$@)" ] || \
    
    		{ echo "#define CONFIG_NIOS_STANDARD_32 1" >>$(obj)include/config.h ; \
    
    		  $(XECHO) "... NIOS 'standard_32' configuration" ; \
    
    	@[ -z "$(findstring _mtx_ldk_20,$@)" ] || \
    
    		{ echo "#define CONFIG_NIOS_MTX_LDK_20 1" >>$(obj)include/config.h ; \
    
    		  $(XECHO) "... NIOS 'mtx_ldk_20' configuration" ; \
    
    	@[ -z "$(findstring DK1S10_config,$@)" ] || \
    
    		{ echo "#define CONFIG_NIOS_STANDARD_32 1" >>$(obj)include/config.h ; \
    
    		  $(XECHO) "... NIOS 'standard_32' configuration (DEFAULT)" ; \
    
    	@$(MKCONFIG) -a DK1S10 nios nios dk1s10 altera
    
    ADNPESC1_DNPEVA2_base_32_config	\
    ADNPESC1_base_32_config		\
    ADNPESC1_config: unconfig
    
    	@[ -z "$(findstring _DNPEVA2,$@)" ] || \
    
    		{ echo "#define CONFIG_DNPEVA2 1" >>$(obj)include/config.h ; \
    
    		  $(XECHO) "... DNP/EVA2 configuration" ; \
    
    	@[ -z "$(findstring _base_32,$@)" ] || \
    
    		{ echo "#define CONFIG_NIOS_BASE_32 1" >>$(obj)include/config.h ; \
    
    		  $(XECHO) "... NIOS 'base_32' configuration" ; \
    
    	@[ -z "$(findstring ADNPESC1_config,$@)" ] || \
    
    		{ echo "#define CONFIG_NIOS_BASE_32 1" >>$(obj)include/config.h ; \
    
    		  $(XECHO) "... NIOS 'base_32' configuration (DEFAULT)" ; \
    
    	@$(MKCONFIG) -a ADNPESC1 nios nios adnpesc1 ssv
    
    #########################################################################
    ## Nios-II
    #########################################################################
    
    
    EP1C20_config : unconfig
    
    	@$(MKCONFIG)  EP1C20 nios2 nios2 ep1c20 altera
    
    	@$(MKCONFIG)  EP1S10 nios2 nios2 ep1s10 altera
    
    	@$(MKCONFIG)  EP1S40 nios2 nios2 ep1s40 altera
    
    PK1C20_config : unconfig
    
    	@$(MKCONFIG)  PK1C20 nios2 nios2 pk1c20 psyent
    
    
    PCI5441_config : unconfig
    
    	@$(MKCONFIG)  PCI5441 nios2 nios2 pci5441 psyent
    
    #========================================================================
    # MicroBlaze
    #========================================================================
    #########################################################################
    ## Microblaze
    #########################################################################
    suzaku_config:	unconfig
    
    	@echo "#define CONFIG_SUZAKU 1" > $(obj)include/config.h
    
    	@$(MKCONFIG) -a $(@:_config=) microblaze microblaze suzaku AtmarkTechno
    
    Michal Simek's avatar
    Michal Simek committed
    ml401_config:	unconfig
    
    	@mkdir -p $(obj)include
    
    	@echo "#define CONFIG_ML401 1" > $(obj)include/config.h
    
    	@$(MKCONFIG) -a $(@:_config=) microblaze microblaze ml401 xilinx
    
    Michal Simek's avatar
    Michal Simek committed
    xupv2p_config:	unconfig
    
    	@mkdir -p $(obj)include
    
    	@echo "#define CONFIG_XUPV2P 1" > $(obj)include/config.h
    
    	@$(MKCONFIG) -a $(@:_config=) microblaze microblaze xupv2p xilinx
    
    #========================================================================
    # Blackfin
    #========================================================================
    
    # Analog Devices boards
    BFIN_BOARDS = bf533-ezkit bf533-stamp bf537-stamp bf561-ezkit
    
    $(BFIN_BOARDS:%=%_config)	: unconfig
    
    	@$(MKCONFIG) $(@:_config=) blackfin blackfin $(@:_config=)
    
    $(BFIN_BOARDS):
    	$(MAKE) $@_config
    	$(MAKE)
    
    #========================================================================
    # AVR32
    #========================================================================
    #########################################################################
    
    ## AT32AP70xx
    
    #########################################################################
    
    atstk1002_config	:	unconfig
    
    	@$(MKCONFIG) $(@:_config=) avr32 at32ap atstk1000 atmel at32ap700x
    
    atstk1003_config	:	unconfig
    	@$(MKCONFIG) $(@:_config=) avr32 at32ap atstk1000 atmel at32ap700x
    
    
    atstk1004_config	:	unconfig
    	@$(MKCONFIG) $(@:_config=) avr32 at32ap atstk1000 atmel at32ap700x
    
    atngw100_config	:	unconfig
    	@$(MKCONFIG) $(@:_config=) avr32 at32ap atngw100 atmel at32ap700x
    
    
    Wolfgang Denk's avatar
    Wolfgang Denk committed
    #########################################################################
    
    #########################################################################
    #########################################################################
    
    Wolfgang Denk's avatar
    Wolfgang Denk committed
    
    
    #########################################################################
    ## sh3 (Renesas SuperH)
    #########################################################################
    
    mpr2_config: unconfig
    	@ >include/config.h
    	@echo "#define CONFIG_MPR2 1" >> include/config.h
    	@$(MKCONFIG) -a $(@:_config=) sh sh3 mpr2
    
    
    ms7720se_config: unconfig
    
    	@echo "#define CONFIG_MS7720SE 1" > include/config.h
    
    	@$(MKCONFIG) -a $(@:_config=) sh sh3 ms7720se
    
    Nobuhiro Iwamatsu's avatar
    Nobuhiro Iwamatsu committed
    #########################################################################
    ## sh4 (Renesas SuperH)
    #########################################################################
    ms7750se_config: unconfig
    
    	@echo "#define CONFIG_MS7750SE 1" > $(obj)include/config.h
    
    	@$(MKCONFIG) -a $(@:_config=) sh sh4 ms7750se
    
    	@echo "#define CONFIG_MS7722SE 1" > $(obj)include/config.h
    
    	@$(MKCONFIG) -a $(@:_config=) sh sh4 ms7722se
    
    MigoR_config :       unconfig
    	@ >include/config.h
    	@echo "#define CONFIG_MIGO_R 1" >> include/config.h
    	@./mkconfig -a $(@:_config=) sh sh4 MigoR
    
    
    r7780mp_config: unconfig
    	@ >include/config.h
    	@echo "#define CONFIG_R7780MP 1" >> include/config.h
    	@./mkconfig -a $(@:_config=) sh sh4 r7780mp
    
    
    r2dplus_config  :   unconfig
    	@ >include/config.h
    	@echo "#define CONFIG_R2DPLUS 1" >> include/config.h
    	@./mkconfig -a $(@:_config=) sh sh4 r2dplus
    
    
    #========================================================================
    # SPARC
    #========================================================================
    
    #########################################################################
    ## LEON3
    #########################################################################
    
    # Gaisler GR-XC3S-1500 board
    gr_xc3s_1500_config : unconfig
    	@$(MKCONFIG) $(@:_config=) sparc leon3 gr_xc3s_1500 gaisler
    
    
    # Gaisler GR-CPCI-AX2000 board, a General purpose FPGA-AX system
    gr_cpci_ax2000_config : unconfig
    	@$(MKCONFIG) $(@:_config=) sparc leon3 gr_cpci_ax2000 gaisler
    
    
    # Gaisler GRLIB template design (GPL SPARC/LEON3) for Altera NIOS
    # Development board Stratix II edition, FPGA Device EP2S60.
    gr_ep2s60_config: unconfig
    	@$(MKCONFIG) $(@:_config=) sparc leon3 gr_ep2s60 gaisler
    
    
    # Gaisler LEON3 GRSIM simulator
    grsim_config : unconfig
    	@$(MKCONFIG) $(@:_config=) sparc leon3 grsim gaisler
    
    
    #########################################################################
    ## LEON2
    #########################################################################
    
    
    # Gaisler LEON2 GRSIM simulator
    grsim_leon2_config : unconfig
    	@$(MKCONFIG) $(@:_config=) sparc leon2 grsim_leon2 gaisler
    
    
    Wolfgang Denk's avatar
    Wolfgang Denk committed
    #########################################################################
    
    #########################################################################
    #########################################################################
    
    Wolfgang Denk's avatar
    Wolfgang Denk committed
    
    clean:
    
    	@rm -f $(obj)examples/82559_eeprom $(obj)examples/eepro100_eeprom \
    	       $(obj)examples/hello_world  $(obj)examples/interrupt	  \
    	       $(obj)examples/mem_to_mem_idma2intr			  \
    	       $(obj)examples/sched	   $(obj)examples/smc91111_eeprom \
    	       $(obj)examples/test_burst   $(obj)examples/timer
    	@rm -f $(obj)tools/bmp_logo	   $(obj)tools/easylogo/easylogo  \
    	       $(obj)tools/env/{fw_printenv,fw_setenv}			  \
    	       $(obj)tools/envcrc					  \
    	       $(obj)tools/gdb/{astest,gdbcont,gdbsend}			  \
    	       $(obj)tools/gen_eth_addr    $(obj)tools/img2srec		  \
    	       $(obj)tools/mkimage	   $(obj)tools/mpc86x_clk	  \
    	       $(obj)tools/ncb		   $(obj)tools/ubsha1
    	@rm -f $(obj)board/cray/L1/{bootscript.c,bootscript.image}	  \
    	       $(obj)board/netstar/{eeprom,crcek,crcit,*.srec,*.bin}	  \
    	       $(obj)board/trab/trab_fkt   $(obj)board/voiceblue/eeprom   \
    	       $(obj)board/{integratorap,integratorcp}/u-boot.lds	  \
    
    	       $(obj)board/{bf533-ezkit,bf533-stamp,bf537-stamp,bf561-ezkit}/u-boot.lds \
    	       $(obj)cpu/blackfin/bootrom-asm-offsets.[chs]
    
    	@rm -f $(obj)include/bmp_logo.h $(obj)nand_spl/{u-boot-spl,u-boot-spl.map}
    
    	@rm -f $(obj)onenand_ipl/onenand-{ipl,ipl.bin,ipl-2k.bin,ipl-4k.bin,ipl.map}
    
    	@rm -f $(obj)api_examples/demo $(VERSION_FILE)
    
    	@find $(OBJTREE) -type f \
    
    Wolfgang Denk's avatar
    Wolfgang Denk committed
    		\( -name 'core' -o -name '*.bak' -o -name '*~' \
    
    		-o -name '*.o'	-o -name '*.a'	\) -print \
    
    Wolfgang Denk's avatar
    Wolfgang Denk committed
    		| xargs rm -f
    
    clobber:	clean
    
    	@find $(OBJTREE) -type f \( -name .depend \
    
    		-o -name '*.srec' -o -name '*.bin' -o -name u-boot.img \) \
    		-print0 \
    		| xargs -0 rm -f
    
    Li Yang's avatar
    Li Yang committed
    	@rm -f $(OBJS) $(obj)*.bak $(obj)ctags $(obj)etags $(obj)TAGS \
    
    		$(obj)cscope.* $(obj)*.*~
    
    	@rm -f $(obj)u-boot $(obj)u-boot.map $(obj)u-boot.hex $(ALL)
    
    	@rm -f $(obj)tools/{crc32.c,environment.c,env/crc32.c,md5.c,sha1.c,inca-swap-bytes}
    
    	@rm -f $(obj)tools/{image.c,fdt.c,fdt_ro.c,fdt_rw.c,fdt_strerror.c}
    	@rm -f $(obj)tools/{fdt_wip.c,libfdt_internal.h}
    
    	@rm -f $(obj)cpu/mpc824x/bedbug_603e.c
    
    	@rm -f $(obj)include/asm/proc $(obj)include/asm/arch $(obj)include/asm
    	@[ ! -d $(obj)nand_spl ] || find $(obj)nand_spl -lname "*" -print | xargs rm -f
    
    	@[ ! -d $(obj)onenand_ipl ] || find $(obj)onenand_ipl -lname "*" -print | xargs rm -f
    
    	@[ ! -d $(obj)api_examples ] || find $(obj)api_examples -lname "*" -print | xargs rm -f
    
    Wolfgang Denk's avatar
    Wolfgang Denk committed
    mrproper \