Skip to content
Snippets Groups Projects
Makefile 36.9 KiB
Newer Older
  • Learn to ignore specific revisions
  • 	@$(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
    
    
    #========================================================================
    # 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/smc911{11,x}_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/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 $(obj)mmc_spl/{u-boot.lds,u-boot-spl,u-boot-spl.map,u-boot-spl.bin,u-boot-mmc-spl.bin}
    
    Kyungmin Park's avatar
    Kyungmin Park committed
    	@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
    
    	@[ ! -d $(obj)mmc_spl ] || find $(obj)mmc_spl -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
    
    #########################################################################