Skip to content
Snippets Groups Projects
Makefile 122 KiB
Newer Older
  • Learn to ignore specific revisions
  • 	@$(MKCONFIG) $(@:_config=) arm arm926ejs omap5912osk ti omap
    
    openrd_base_config: unconfig
    	@$(MKCONFIG) $(@:_config=) arm arm926ejs $(@:_config=) Marvell kirkwood
    
    
    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 ti omap
    
    rd6281a_config: unconfig
    	@$(MKCONFIG) $(@:_config=) arm arm926ejs $(@:_config=) Marvell kirkwood
    
    
    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
    
    
    sheevaplug_config: unconfig
    	@$(MKCONFIG) $(@:_config=) arm arm926ejs $(@:_config=) Marvell kirkwood
    
    
    Wolfgang Denk's avatar
    Wolfgang Denk committed
    smdk2400_config	:	unconfig
    
    	@$(MKCONFIG) $(@:_config=) arm arm920t smdk2400 samsung s3c24x0
    
    Wolfgang Denk's avatar
    Wolfgang Denk committed
    
    smdk2410_config	:	unconfig
    
    	@$(MKCONFIG) $(@:_config=) arm arm920t smdk2410 samsung s3c24x0
    
    Wolfgang Denk's avatar
    Wolfgang Denk committed
    
    
    spear300_config \
    spear310_config :	unconfig
    
    	@$(MKCONFIG) -n $@ -t $(@:_config=) spear3xx arm arm926ejs $(@:_config=) spear spear
    
    
    spear600_config :	unconfig
    	@$(MKCONFIG) -n $@ -t $(@:_config=) spear6xx arm arm926ejs $(@:_config=) spear spear
    
    
    SX1_stdout_serial_config \
    SX1_config:		unconfig
    	@mkdir -p $(obj)include
    	@if [ "$(findstring _stdout_serial_, $@)" ] ; then \
    		echo "#undef CONFIG_STDOUT_USBTTY" >> $(obj)include/config.h ; \
    		$(XECHO) "... configured for stdout serial"; \
    	else \
    		echo "#define CONFIG_STDOUT_USBTTY" >> $(obj)include/config.h ; \
    		$(XECHO) "... configured for stdout usbtty"; \
    	fi;
    	@$(MKCONFIG) SX1 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
    
    #########################################################################
    
    cm4008_config	:	unconfig
    	@$(MKCONFIG) $(@:_config=) arm arm920t cm4008 NULL ks8695
    
    cm41xx_config	:	unconfig
    	@$(MKCONFIG) $(@:_config=) arm arm920t cm41xx NULL ks8695
    
    
    versatile_config	\
    versatileab_config	\
    versatilepb_config :	unconfig
    
    	@board/armltd/versatile/split_by_variant.sh $@
    
    voiceblue_config:	unconfig
    
    	@$(MKCONFIG) $(@:_config=) arm arm925t voiceblue
    
    #########################################################################
    ## 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 NULL s3c4510b
    
    Peter Pearse's avatar
    Peter Pearse committed
    	@$(MKCONFIG) $(@:_config=) arm arm720t lpc2292sodimm NULL lpc2292
    
    SMN42_config	:	unconfig
    	@$(MKCONFIG) $(@:_config=) arm arm720t SMN42 siemens lpc2292
    
    #########################################################################
    ## ARM CORTEX Systems
    #########################################################################
    
    
    devkit8000_config :	unconfig
    	@$(MKCONFIG) $(@:_config=) arm arm_cortexa8 devkit8000 timll omap3
    
    
    omap3_beagle_config :	unconfig
    
    	@$(MKCONFIG) $(@:_config=) arm arm_cortexa8 beagle ti omap3
    
    Dirk Behme's avatar
    Dirk Behme committed
    omap3_overo_config :	unconfig
    
    	@$(MKCONFIG) $(@:_config=) arm arm_cortexa8 overo NULL omap3
    
    Dirk Behme's avatar
    Dirk Behme committed
    omap3_evm_config :	unconfig
    
    	@$(MKCONFIG) $(@:_config=) arm arm_cortexa8 evm ti omap3
    
    Dirk Behme's avatar
    Dirk Behme committed
    
    
    Dirk Behme's avatar
    Dirk Behme committed
    omap3_pandora_config :	unconfig
    
    	@$(MKCONFIG) $(@:_config=) arm arm_cortexa8 pandora NULL omap3
    
    omap3_sdp3430_config :	unconfig
    	@$(MKCONFIG) $(@:_config=) arm arm_cortexa8 sdp3430 ti omap3
    
    
    omap3_zoom1_config :	unconfig
    
    	@$(MKCONFIG) $(@:_config=) arm arm_cortexa8 zoom1 logicpd omap3
    
    omap3_zoom2_config :	unconfig
    
    	@$(MKCONFIG) $(@:_config=) arm arm_cortexa8 zoom2 logicpd omap3
    
    smdkc100_config:	unconfig
    	@$(MKCONFIG) $(@:_config=) arm arm_cortexa8 smdkc100 samsung s5pc1xx
    
    
    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
    
    
    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
    
    polaris_config \
    
    trizepsiv_config	:	unconfig
    
    	@mkdir -p $(obj)include
    	@if [ "$(findstring polaris,$@)" ] ; then \
    		echo "#define CONFIG_POLARIS 1"	>>$(obj)include/config.h ; \
    	fi;
    	@$(MKCONFIG) -a trizepsiv 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
    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 logicpd mx31
    
    imx31_phycore_config	: unconfig
    
    	@if [ -n "$(findstring _eet_,$@)" ]; then			\
    		echo "#define CONFIG_IMX31_PHYCORE_EET" >> $(obj)include/config.h;	\
    	fi
    	@$(MKCONFIG) -a imx31_phycore arm arm1136 imx31_phycore NULL mx31
    
    	@$(MKCONFIG) $(@:_config=) arm arm1136 mx31ads freescale mx31
    
    mx31pdk_config \
    mx31pdk_nand_config	: unconfig
    	@mkdir -p $(obj)include
    	@if [ -n "$(findstring _nand_,$@)" ]; then					\
    		echo "#define CONFIG_NAND_U_BOOT" >> $(obj)include/config.h;		\
    	else										\
    		echo "#define CONFIG_SKIP_LOWLEVEL_INIT" >> $(obj)include/config.h;	\
    		echo "#define CONFIG_SKIP_RELOCATE_UBOOT" >> $(obj)include/config.h;	\
    	fi
    	@$(MKCONFIG) -a mx31pdk arm arm1136 mx31pdk freescale mx31
    
    	@$(MKCONFIG) $(@:_config=) arm arm1136 omap2420h4 ti omap24xx
    
    qong_config		: unconfig
    	@$(MKCONFIG) $(@:_config=) arm arm1136 qong davedenx mx31
    
    
    #########################################################################
    ## ARM1176 Systems
    #########################################################################
    smdk6400_noUSB_config	\
    smdk6400_config	:	unconfig
    	@mkdir -p $(obj)include $(obj)board/samsung/smdk6400
    	@mkdir -p $(obj)nand_spl/board/samsung/smdk6400
    	@echo "#define CONFIG_NAND_U_BOOT" > $(obj)include/config.h
    	@if [ -z "$(findstring smdk6400_noUSB_config,$@)" ]; then			\
    		echo "RAM_TEXT = 0x57e00000" >> $(obj)board/samsung/smdk6400/config.tmp;\
    		$(MKCONFIG) $(@:_config=) arm arm1176 smdk6400 samsung s3c64xx;		\
    	else										\
    		echo "RAM_TEXT = 0xc7e00000" >> $(obj)board/samsung/smdk6400/config.tmp;\
    		$(MKCONFIG) $(@:_noUSB_config=) arm arm1176 smdk6400 samsung s3c64xx;	\
    	fi
    	@echo "CONFIG_NAND_U_BOOT = y" >> $(obj)include/config.mk
    
    
    #========================================================================
    # i386
    #========================================================================
    #########################################################################
    
    ## AMD SC520 CDP
    
    #########################################################################
    
    eNET_config	:	unconfig
    
    	@$(MKCONFIG) $(@:_config=) i386 i386 eNET NULL sc520
    
    sc520_cdp_config	:	unconfig
    
    	@$(MKCONFIG) $(@:_config=) i386 i386 sc520_cdp NULL sc520
    
    sc520_spunk_config	:	unconfig
    
    	@$(MKCONFIG) $(@:_config=) i386 i386 sc520_spunk NULL sc520
    
    
    sc520_spunk_rel_config	:	unconfig
    
    	@$(MKCONFIG) $(@:_config=) i386 i386 sc520_spunk NULL sc520
    
    #========================================================================
    # 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
    
    vct_premium_config		\
    vct_premium_small_config	\
    vct_premium_onenand_config	\
    vct_premium_onenand_small_config \
    vct_platinum_config		\
    vct_platinum_small_config	\
    vct_platinum_onenand_config	\
    vct_platinum_onenand_small_config \
    vct_platinumavc_config		\
    vct_platinumavc_small_config	\
    vct_platinumavc_onenand_config	\
    vct_platinumavc_onenand_small_config: unconfig
    	@mkdir -p $(obj)include
    	@if [ "$(findstring _premium,$@)" ] ; then \
    		echo "#define CONFIG_VCT_PREMIUM" > $(obj)include/config.h ; \
    		$(XECHO) "... on Premium board variant" ; \
    	fi
    	@if [ "$(findstring _platinum_,$@)" ] ; then \
    		echo "#define CONFIG_VCT_PLATINUM" > $(obj)include/config.h ; \
    		$(XECHO) "... on Platinum board variant" ; \
    	fi
    	@if [ "$(findstring _platinumavc,$@)" ] ; then \
    		echo "#define CONFIG_VCT_PLATINUMAVC" > $(obj)include/config.h ; \
    		$(XECHO) "... on PlatinumAVC board variant" ; \
    	fi
    	@if [ "$(findstring _onenand,$@)" ] ; then \
    		echo "#define CONFIG_VCT_ONENAND" >> $(obj)include/config.h ; \
    		$(XECHO) "... on OneNAND board variant" ; \
    	fi
    	@if [ "$(findstring _small,$@)" ] ; then \
    		echo "#define CONFIG_VCT_SMALL_IMAGE" >> $(obj)include/config.h ; \
    		$(XECHO) "... stripped down image variant" ; \
    	fi
    	@$(MKCONFIG) -a vct mips mips vct micronas
    
    
    #########################################################################
    ## 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
    
    gth2_config		:	unconfig
    	@mkdir -p $(obj)include
    	@echo "#define CONFIG_GTH2 1" >$(obj)include/config.h
    	@$(MKCONFIG) -a gth2 mips mips gth2
    
    
    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
    
    	@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
    #########################################################################
    
    
    ADNPESC1_DNPEVA2_base_32_config	\
    ADNPESC1_base_32_config		\
    ADNPESC1_config: unconfig
    	@mkdir -p $(obj)include
    	@[ -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
    
    
    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
    
    #########################################################################
    ## 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-generic_config:	unconfig
    
    	@mkdir -p $(obj)include
    
    	@$(MKCONFIG) -a $(@:_config=) microblaze microblaze microblaze-generic xilinx
    
    #========================================================================
    # Blackfin
    #========================================================================
    
    # Analog Devices boards
    
    BFIN_BOARDS = bf518f-ezbrd bf526-ezbrd bf527-ezkit bf533-ezkit bf533-stamp \
    
    	bf537-pnav bf537-stamp bf538f-ezkit bf548-ezkit bf561-ezkit
    
    # Bluetechnix tinyboards
    
    BFIN_BOARDS += cm-bf527 cm-bf533 cm-bf537e cm-bf537u cm-bf548 cm-bf561 \
    	tcm-bf518 tcm-bf537
    
    # Misc third party boards
    
    BFIN_BOARDS += bf537-minotaur bf537-srv1 bf561-acvilon blackstamp
    
    # I-SYST Micromodule
    BFIN_BOARDS += ibf-dsp561
    
    
    $(BFIN_BOARDS:%=%_config)	: unconfig
    
    	@$(MKCONFIG) $(@:_config=) blackfin blackfin $(@:_config=)
    
    bf527-ezkit-v2_config	: unconfig
    	@$(MKCONFIG) -t BF527_EZKIT_REV_2_1 \
    		bf527-ezkit blackfin blackfin bf527-ezkit
    
    
    #========================================================================
    # AVR32
    #========================================================================
    
    
    atngw100_config	:	unconfig
    	@$(MKCONFIG) $(@:_config=) avr32 at32ap atngw100 atmel at32ap700x
    
    	@$(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
    
    atstk1006_config	:	unconfig
    	@$(MKCONFIG) $(@:_config=) avr32 at32ap atstk1000 atmel at32ap700x
    
    
    favr-32-ezkit_config	:	unconfig
    	@$(MKCONFIG) $(@:_config=) avr32 at32ap favr-32-ezkit earthlcd at32ap700x
    
    
    hammerhead_config	:	unconfig
    	@$(MKCONFIG) $(@:_config=) avr32 at32ap hammerhead miromico at32ap700x
    
    
    Mark Jackson's avatar
    Mark Jackson committed
    mimc200_config		:	unconfig
    	@$(MKCONFIG) $(@:_config=) avr32 at32ap mimc200 mimc at32ap700x
    
    
    #========================================================================
    # SH3 (SuperH)
    #========================================================================
    
    Wolfgang Denk's avatar
    Wolfgang Denk committed
    
    
    #########################################################################
    ## sh2 (Renesas SuperH)
    #########################################################################
    rsk7203_config: unconfig
    
    	@mkdir -p $(obj)include
    
    	@echo "#define CONFIG_RSK7203 1" > $(obj)include/config.h
    
    	@$(MKCONFIG) -a $(@:_config=) sh sh2 rsk7203 renesas
    
    #########################################################################
    ## sh3 (Renesas SuperH)
    #########################################################################
    
    mpr2_config: unconfig
    
    	@mkdir -p $(obj)include
    	@echo "#define CONFIG_MPR2 1" > $(obj)include/config.h
    
    	@$(MKCONFIG) -a $(@:_config=) sh sh3 mpr2
    
    
    ms7720se_config: unconfig
    
    	@mkdir -p $(obj)include
    	@echo "#define CONFIG_MS7720SE 1" > $(obj)include/config.h
    
    	@$(MKCONFIG) -a $(@:_config=) sh sh3 ms7720se
    
    Nobuhiro Iwamatsu's avatar
    Nobuhiro Iwamatsu committed
    #########################################################################
    ## sh4 (Renesas SuperH)
    #########################################################################
    
    
    MigoR_config :       unconfig
    	@mkdir -p $(obj)include
    	@echo "#define CONFIG_MIGO_R 1" > $(obj)include/config.h
    
    	@$(MKCONFIG) -a $(@:_config=) sh sh4 MigoR renesas
    
    Nobuhiro Iwamatsu's avatar
    Nobuhiro Iwamatsu committed
    ms7750se_config: unconfig
    
    	@mkdir -p $(obj)include
    
    	@echo "#define CONFIG_MS7750SE 1" > $(obj)include/config.h
    
    	@$(MKCONFIG) -a $(@:_config=) sh sh4 ms7750se
    
    	@mkdir -p $(obj)include
    
    	@echo "#define CONFIG_MS7722SE 1" > $(obj)include/config.h
    
    	@$(MKCONFIG) -a $(@:_config=) sh sh4 ms7722se
    
    	@mkdir -p $(obj)include
    
    	@echo "#define CONFIG_R2DPLUS 1" > $(obj)include/config.h
    
    	@$(MKCONFIG) -a $(@:_config=) sh sh4 r2dplus renesas
    
    r7780mp_config: unconfig
    
    	@mkdir -p $(obj)include
    	@echo "#define CONFIG_R7780MP 1" > $(obj)include/config.h
    
    	@$(MKCONFIG) -a $(@:_config=) sh sh4 r7780mp renesas
    
    sh7763rdp_config  :   unconfig
    
    	@mkdir -p $(obj)include
    	@echo "#define CONFIG_SH7763RDP 1" > $(obj)include/config.h
    
    	@$(MKCONFIG) -a $(@:_config=) sh sh4 sh7763rdp renesas
    
    xtract_sh7785lcr = $(subst _32bit,,$(subst _config,,$1))
    sh7785lcr_32bit_config \
    
    sh7785lcr_config  :   unconfig
    
    	@mkdir -p $(obj)include
    	@mkdir -p $(obj)board/renesas/sh7785lcr
    	@echo "#define CONFIG_SH7785LCR 1" > $(obj)include/config.h
    
    	@if [ "$(findstring 32bit, $@)" ] ; then \
    		echo "#define CONFIG_SH_32BIT 1" >> $(obj)include/config.h ; \
    		echo "TEXT_BASE = 0x8ff80000" > \
    			$(obj)board/renesas/sh7785lcr/config.tmp ; \
    		  $(XECHO) " ... enable 32-Bit Address Extended Mode" ; \
    	fi
    	@$(MKCONFIG) -a $(call xtract_sh7785lcr,$@) sh sh4 sh7785lcr renesas
    
    ap325rxa_config  :   unconfig
    	@mkdir -p $(obj)include
    	@echo "#define CONFIG_AP325RXA 1" > $(obj)include/config.h
    
    	@$(MKCONFIG) -a $(@:_config=) sh sh4 ap325rxa renesas
    
    espt_config  :   unconfig
    	@mkdir -p $(obj)include
    	@echo "#define CONFIG_ESPT 1" > $(obj)include/config.h
    	@$(MKCONFIG) -a $(@:_config=) sh sh4 espt
    
    
    #========================================================================
    # 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/standalone/82559_eeprom			  \
    
    	       $(obj)examples/standalone/atmel_df_pow2			  \
    
    	       $(obj)examples/standalone/eepro100_eeprom		  \
    	       $(obj)examples/standalone/hello_world			  \
    	       $(obj)examples/standalone/interrupt			  \
    	       $(obj)examples/standalone/mem_to_mem_idma2intr		  \
    	       $(obj)examples/standalone/sched				  \
    	       $(obj)examples/standalone/smc91111_eeprom		  \
    	       $(obj)examples/standalone/test_burst			  \
    	       $(obj)examples/standalone/timer
    
    	@rm -f $(obj)examples/api/demo{,.bin}
    
    	@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   \
    
    Wolfgang Denk's avatar
    Wolfgang Denk committed
    	       $(obj)board/armltd/{integratorap,integratorcp}/u-boot.lds  \
    
    	       $(obj)lib_blackfin/u-boot.lds				  \
    
    	       $(obj)cpu/blackfin/bootrom-asm-offsets.[chs]
    
    	@rm -f $(obj)include/bmp_logo.h
    
    	@rm -f $(obj)nand_spl/{u-boot.lds,u-boot-spl,u-boot-spl.map,System.map}
    
    Kyungmin Park's avatar
    Kyungmin Park committed
    	@rm -f $(obj)onenand_ipl/onenand-{ipl,ipl.bin,ipl.map}
    	@rm -f $(ONENAND_BIN)
    
    	@rm -f $(obj)onenand_ipl/u-boot.lds
    
    	@rm -f $(TIMESTAMP_FILE) $(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' -o -name '*.exe'	\) -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/{env/crc32.c,inca-swap-bytes}
    
    	@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 -name "*" -type l -print | xargs rm -f
    	@[ ! -d $(obj)onenand_ipl ] || find $(obj)onenand_ipl -name "*" -type l -print | xargs rm -f
    
    Wolfgang Denk's avatar
    Wolfgang Denk committed
    mrproper \
    distclean:	clobber unconfig
    
    else
    mrproper \
    distclean:	clobber unconfig
    
    Wolfgang Denk's avatar
    Wolfgang Denk committed
    
    backup:
    	F=`basename $(TOPDIR)` ; cd .. ; \
    	gtar --force-local -zcvf `date "+$$F-%Y-%m-%d-%T.tar.gz"` $$F
    
    #########################################################################