Skip to content
Snippets Groups Projects
Makefile 109 KiB
Newer Older
  • Learn to ignore specific revisions
  • 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
    
    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
    
    suzaku_config:	unconfig
    	@mkdir -p $(obj)include
    	@echo "#define CONFIG_SUZAKU 1" > $(obj)include/config.h
    	@$(MKCONFIG) -a $(@:_config=) microblaze microblaze suzaku AtmarkTechno
    
    
    #========================================================================
    # 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
    #========================================================================
    
    
    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
    
    sh7785lcr_config  :   unconfig
    	@ >include/config.h
    	@echo "#define CONFIG_SH7785LCR 1" >> include/config.h
    
    	@$(MKCONFIG) -a $(@:_config=) 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
    
    #========================================================================
    # 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
    	@rm -f $(obj)nand_spl/{u-boot-spl,u-boot-spl.map,System.map}
    
    	@rm -f $(obj)onenand_ipl/onenand-{ipl,ipl.bin,ipl-2k.bin,ipl-4k.bin,ipl.map}
    
    	@rm -f $(obj)api_examples/demo $(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'	\) -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,env_embedded.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,zlib.h}
    
    	@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 -name "*" -type l -print | xargs rm -f
    	@[ ! -d $(obj)onenand_ipl ] || find $(obj)onenand_ipl -name "*" -type l -print | xargs rm -f
    	@[ ! -d $(obj)api_examples ] || find $(obj)api_examples -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
    
    #########################################################################