Skip to content
Snippets Groups Projects
Makefile 42.6 KiB
Newer Older
  • Learn to ignore specific revisions
  • 		  echo "CONFIG_SYS_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 ; \
    
    		  echo "CONFIG_SYS_TEXT_BASE = 0x0CF40000" >$(obj)board/trab/config.tmp ; \
    
    	@$(MKCONFIG) -n $@ -a trab arm arm920t trab - s3c24x0
    
    Wolfgang Denk's avatar
    Wolfgang Denk committed
    
    
    tx25_config	: unconfig
    	@echo "CONFIG_NAND_U_BOOT = y" >> $(obj)include/config.mk
    
    	@$(MKCONFIG) $@ arm arm926ejs tx25 karo mx25
    
    edb9301_config \
    edb9302_config \
    edb9302a_config \
    edb9307_config \
    edb9307a_config \
    edb9312_config \
    edb9315_config \
    edb9315a_config: unconfig
    	@$(MKCONFIG) -n $@ -t $(@:_config=) edb93xx arm arm920t edb93xx - ep93xx
    
    
    #########################################################################
    
    # ARM supplied Versatile development boards
    
    #########################################################################
    
    
    versatile_config	\
    versatileab_config	\
    versatilepb_config :	unconfig
    
    	@board/armltd/versatile/split_by_variant.sh $@
    
    Wolfgang Denk's avatar
    Wolfgang Denk committed
    #########################################################################
    
    ## XScale Systems
    
    Wolfgang Denk's avatar
    Wolfgang Denk committed
    #########################################################################
    
    
    	@mkdir -p $(obj)include
    
    	@if [ "$(findstring scpu_,$@)" ] ; then \
    
    		echo "#define CONFIG_SCPU"	>>$(obj)include/config.h ; \
    
    	@$(MKCONFIG) -n $@ -a pdnb3 arm ixp pdnb3 prodrive
    
    #########################################################################
    ## 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
    	@echo "CONFIG_ONENAND_U_BOOT = y" >> $(obj)include/config.mk
    
    	@$(MKCONFIG) $@ arm arm1136 apollon - omap24xx
    
    imx31_phycore_config	: unconfig
    
    	@if [ -n "$(findstring _eet_,$@)" ]; then			\
    		echo "#define CONFIG_IMX31_PHYCORE_EET" >> $(obj)include/config.h;	\
    	fi
    
    	@$(MKCONFIG) -n $@ -a imx31_phycore arm arm1136 imx31_phycore - 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;	\
    	fi
    
    	@$(MKCONFIG) -n $@ -a mx31pdk arm arm1136 mx31pdk freescale 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
    
    	@echo "CONFIG_NAND_U_BOOT = y" >> $(obj)include/config.mk
    
    	@if [ -z "$(findstring smdk6400_noUSB_config,$@)" ]; then			\
    		echo "RAM_TEXT = 0x57e00000" >> $(obj)board/samsung/smdk6400/config.tmp;\
    	else										\
    		echo "RAM_TEXT = 0xc7e00000" >> $(obj)board/samsung/smdk6400/config.tmp;\
    	fi
    
    	@$(MKCONFIG) smdk6400 arm arm1176 smdk6400 samsung s3c64xx
    
    	@echo "CONFIG_NAND_U_BOOT = y" >> $(obj)include/config.mk
    
    
    #========================================================================
    # MIPS
    #========================================================================
    
    Wolfgang Denk's avatar
    Wolfgang Denk committed
    #########################################################################
    
    ## MIPS32 4Kc
    #########################################################################
    
    
    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
    
    	@[ -z "$(findstring _133MHz,$@)" ] || \
    
    		echo "#define CPU_CLOCK_RATE 133000000" >>$(obj)include/config.h
    
    	@[ -z "$(findstring _150MHz,$@)" ] || \
    
    		echo "#define CPU_CLOCK_RATE 150000000" >>$(obj)include/config.h
    	@$(MKCONFIG) -n $@ -a incaip mips mips incaip
    
    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
    
    	@[ -z "$(findstring _premium,$@)" ] || \
    		echo "#define CONFIG_VCT_PREMIUM" > $(obj)include/config.h
    	@[ -z "$(findstring _platinum_,$@)" ] || \
    		echo "#define CONFIG_VCT_PLATINUM" > $(obj)include/config.h
    	@[ -z "$(findstring _platinumavc,$@)" ] || \
    		echo "#define CONFIG_VCT_PLATINUMAVC" > $(obj)include/config.h
    	@[ -z "$(findstring _onenand,$@)" ] || \
    		echo "#define CONFIG_VCT_ONENAND" >> $(obj)include/config.h
    	@[ -z "$(findstring _small,$@)" ] || \
    		echo "#define CONFIG_VCT_SMALL_IMAGE" >> $(obj)include/config.h
    	@$(MKCONFIG)  -n $@ -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 $@ 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
    
    
    #========================================================================
    # Nios
    #========================================================================
    
    
    #########################################################################
    ## Nios-II
    #########################################################################
    
    
    # nios2 generic boards
    NIOS2_GENERIC = nios2-generic
    
    $(NIOS2_GENERIC:%=%_config) : unconfig
    
    	@$(MKCONFIG) $@ nios2 nios2 nios2-generic altera
    
    #########################################################################
    #########################################################################
    
    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/matrix_vision/*/bootscript.img		  \
    
    	       $(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)arch/blackfin/cpu/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)u-boot.imx
    
    	@rm -f $(obj)tools/{env/crc32.c,inca-swap-bytes}
    
    	@rm -f $(obj)arch/powerpc/cpu/mpc824x/bedbug_603e.c
    
    	@rm -fr $(obj)include/asm/proc $(obj)include/asm/arch $(obj)include/asm
    
    	@rm -fr $(obj)include/generated
    
    	@[ ! -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 `LC_ALL=C date "+$$F-%Y-%m-%d-%T.tar.gz"` $$F
    
    Wolfgang Denk's avatar
    Wolfgang Denk committed
    
    #########################################################################