📄 makefile
字号:
#========================================================================########################################################################### StrongARM Systems#########################################################################assabet_config : unconfig @./mkconfig $(@:_config=) arm sa1100 assabetdnp1110_config : unconfig @./mkconfig $(@:_config=) arm sa1100 dnp1110gcplus_config : unconfig @./mkconfig $(@:_config=) arm sa1100 gcpluslart_config : unconfig @./mkconfig $(@:_config=) arm sa1100 lartshannon_config : unconfig @./mkconfig $(@:_config=) arm sa1100 shannon########################################################################### ARM92xT Systems#########################################################################xtract_trab = $(subst _bigram,,$(subst _bigflash,,$(subst _old,,$(subst _config,,$1))))xtract_omap1610xxx = $(subst _cs0boot,,$(subst _cs3boot,,$(subst _cs_autoboot,,$(subst _config,,$1))))xtract_omap730p2 = $(subst _cs0boot,,$(subst _cs3boot,, $(subst _config,,$1)))integratorap_config : unconfig @./mkconfig $(@:_config=) arm arm926ejs integratorapintegratorcp_config : unconfig @./mkconfig $(@:_config=) arm arm926ejs integratorcplpd7a400_config \lpd7a404_config: unconfig @./mkconfig $(@:_config=) arm lh7a40x lpd7a40xmx1ads_config : unconfig @./mkconfig $(@:_config=) arm arm920t mx1ads NULL imxmx1fs2_config : unconfig @./mkconfig $(@:_config=) arm arm920t mx1fs2 NULL imxomap1510inn_config : unconfig @./mkconfig $(@:_config=) arm arm925t omap1510innomap5912osk_config : unconfig @./mkconfig $(@:_config=) arm arm926ejs omap5912oskomap1610inn_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" >> ./include/config.h ; \ echo "... configured for CS0 boot"; \ elif [ "$(findstring _cs_autoboot_, $@)" ] ; then \ echo "#define CONFIG_CS_AUTOBOOT" >> ./include/config.h ; \ echo "... configured for CS_AUTO boot"; \ else \ echo "#define CONFIG_CS3_BOOT" >> ./include/config.h ; \ echo "... configured for CS3 boot"; \ fi; @./mkconfig -a $(call xtract_omap1610xxx,$@) arm arm926ejs omap1610innomap730p2_config \omap730p2_cs0boot_config \omap730p2_cs3boot_config : unconfig @if [ "$(findstring _cs0boot_, $@)" ] ; then \ echo "#define CONFIG_CS0_BOOT" >> ./include/config.h ; \ echo "... configured for CS0 boot"; \ else \ echo "#define CONFIG_CS3_BOOT" >> ./include/config.h ; \ echo "... configured for CS3 boot"; \ fi; @./mkconfig -a $(call xtract_omap730p2,$@) arm arm926ejs omap730p2scb9328_config : unconfig @./mkconfig $(@:_config=) arm arm920t scb9328 NULL imxsmdk2400_config : unconfig @./mkconfig $(@:_config=) arm arm920t smdk2400 NULL s3c24x0smdk2410_config : unconfig @./mkconfig $(@:_config=) arm arm920t smdk2410 NULL s3c24x0aesop2440_config : unconfig @./mkconfig $(@:_config=) arm arm920t aesop2440 NULL s3c2440SX1_config : unconfig @./mkconfig $(@:_config=) arm arm925t sx1# TRAB default configuration: 8 MB Flash, 32 MB RAMtrab_config \trab_bigram_config \trab_bigflash_config \trab_old_config: unconfig @ >include/config.h @[ -z "$(findstring _bigram,$@)" ] || \ { echo "#define CONFIG_FLASH_8MB" >>include/config.h ; \ echo "#define CONFIG_RAM_32MB" >>include/config.h ; \ echo "... with 8 MB Flash, 32 MB RAM" ; \ } @[ -z "$(findstring _bigflash,$@)" ] || \ { echo "#define CONFIG_FLASH_16MB" >>include/config.h ; \ echo "#define CONFIG_RAM_16MB" >>include/config.h ; \ echo "... with 16 MB Flash, 16 MB RAM" ; \ echo "TEXT_BASE = 0x0CF40000" >board/trab/config.tmp ; \ } @[ -z "$(findstring _old,$@)" ] || \ { echo "#define CONFIG_FLASH_8MB" >>include/config.h ; \ echo "#define CONFIG_RAM_16MB" >>include/config.h ; \ echo "... with 8 MB Flash, 16 MB RAM" ; \ echo "TEXT_BASE = 0x0CF40000" >board/trab/config.tmp ; \ } @./mkconfig -a $(call xtract_trab,$@) arm arm920t trab NULL s3c24x0VCMA9_config : unconfig @./mkconfig $(@:_config=) arm arm920t vcma9 mpl s3c24x0versatile_config : unconfig @./mkconfig $(@:_config=) arm arm926ejs versatile########################################################################### S3C44B0 Systems#########################################################################B2_config : unconfig @./mkconfig $(@:_config=) arm s3c44b0 B2 dave########################################################################### ARM720T Systems#########################################################################ep7312_config : unconfig @./mkconfig $(@:_config=) arm arm720t ep7312impa7_config : unconfig @./mkconfig $(@:_config=) arm arm720t impa7modnet50_config : unconfig @./mkconfig $(@:_config=) arm arm720t modnet50evb4510_config : unconfig @./mkconfig $(@:_config=) arm arm720t evb4510########################################################################### AT91RM9200 Systems#########################################################################at91rm9200dk_config : unconfig @./mkconfig $(@:_config=) arm at91rm9200 at91rm9200dkcmc_pu2_config : unconfig @./mkconfig $(@:_config=) arm at91rm9200 cmc_pu2########################################################################### XScale Systems#########################################################################cerf250_config : unconfig @./mkconfig $(@:_config=) arm pxa cerf250cradle_config : unconfig @./mkconfig $(@:_config=) arm pxa cradlecsb226_config : unconfig @./mkconfig $(@:_config=) arm pxa csb226innokom_config : unconfig @./mkconfig $(@:_config=) arm pxa innokomixdp425_config : unconfig @./mkconfig $(@:_config=) arm ixp ixdp425lubbock_config : unconfig @./mkconfig $(@:_config=) arm pxa lubbocklogodl_config : unconfig @./mkconfig $(@:_config=) arm pxa logodlwepep250_config : unconfig @./mkconfig $(@:_config=) arm pxa wepep250xaeniax_config : unconfig @./mkconfig $(@:_config=) arm pxa xaeniaxxm250_config : unconfig @./mkconfig $(@:_config=) arm pxa xm250xsengine_config : unconfig @./mkconfig $(@:_config=) arm pxa xsengine#========================================================================# i386#========================================================================########################################################################### AMD SC520 CDP#########################################################################sc520_cdp_config : unconfig @./mkconfig $(@:_config=) i386 i386 sc520_cdpsc520_spunk_config : unconfig @./mkconfig $(@:_config=) i386 i386 sc520_spunksc520_spunk_rel_config : unconfig @./mkconfig $(@:_config=) i386 i386 sc520_spunk#========================================================================# MIPS#========================================================================########################################################################### 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 @ >include/config.h @[ -z "$(findstring _100MHz,$@)" ] || \ { echo "#define CPU_CLOCK_RATE 100000000" >>include/config.h ; \ echo "... with 100MHz system clock" ; \ } @[ -z "$(findstring _133MHz,$@)" ] || \ { echo "#define CPU_CLOCK_RATE 133000000" >>include/config.h ; \ echo "... with 133MHz system clock" ; \ } @[ -z "$(findstring _150MHz,$@)" ] || \ { echo "#define CPU_CLOCK_RATE 150000000" >>include/config.h ; \ echo "... with 150MHz system clock" ; \ } @./mkconfig -a $(call xtract_incaip,$@) mips mips incaiptb0229_config: unconfig @./mkconfig $(@:_config=) mips mips tb0229########################################################################### MIPS32 AU1X00#########################################################################dbau1000_config : unconfig @ >include/config.h @echo "#define CONFIG_DBAU1000 1" >>include/config.h @./mkconfig -a dbau1x00 mips mips dbau1x00dbau1100_config : unconfig @ >include/config.h @echo "#define CONFIG_DBAU1100 1" >>include/config.h @./mkconfig -a dbau1x00 mips mips dbau1x00dbau1500_config : unconfig @ >include/config.h @echo "#define CONFIG_DBAU1500 1" >>include/config.h @./mkconfig -a dbau1x00 mips mips dbau1x00########################################################################### MIPS64 5Kc#########################################################################purple_config : unconfig @./mkconfig $(@:_config=) mips mips purple#========================================================================# Nios#========================================================================########################################################################### Nios32#########################################################################DK1C20_safe_32_config \DK1C20_standard_32_config \DK1C20_config: unconfig @ >include/config.h @[ -z "$(findstring _safe_32,$@)" ] || \ { echo "#define CONFIG_NIOS_SAFE_32 1" >>include/config.h ; \ echo "... NIOS 'safe_32' configuration" ; \ } @[ -z "$(findstring _standard_32,$@)" ] || \ { echo "#define CONFIG_NIOS_STANDARD_32 1" >>include/config.h ; \ echo "... NIOS 'standard_32' configuration" ; \ } @[ -z "$(findstring DK1C20_config,$@)" ] || \ { echo "#define CONFIG_NIOS_STANDARD_32 1" >>include/config.h ; \ echo "... NIOS 'standard_32' configuration (DEFAULT)" ; \ } @./mkconfig -a DK1C20 nios nios dk1c20 alteraDK1S10_safe_32_config \DK1S10_standard_32_config \DK1S10_mtx_ldk_20_config \DK1S10_config: unconfig @ >include/config.h @[ -z "$(findstring _safe_32,$@)" ] || \ { echo "#define CONFIG_NIOS_SAFE_32 1" >>include/config.h ; \ echo "... NIOS 'safe_32' configuration" ; \ } @[ -z "$(findstring _standard_32,$@)" ] || \ { echo "#define CONFIG_NIOS_STANDARD_32 1" >>include/config.h ; \ echo "... NIOS 'standard_32' configuration" ; \ } @[ -z "$(findstring _mtx_ldk_20,$@)" ] || \ { echo "#define CONFIG_NIOS_MTX_LDK_20 1" >>include/config.h ; \ echo "... NIOS 'mtx_ldk_20' configuration" ; \ } @[ -z "$(findstring DK1S10_config,$@)" ] || \ { echo "#define CONFIG_NIOS_STANDARD_32 1" >>include/config.h ; \ echo "... NIOS 'standard_32' configuration (DEFAULT)" ; \ } @./mkconfig -a DK1S10 nios nios dk1s10 alteraADNPESC1_DNPEVA2_base_32_config \ADNPESC1_base_32_config \ADNPESC1_config: unconfig @ >include/config.h @[ -z "$(findstring _DNPEVA2,$@)" ] || \ { echo "#define CONFIG_DNPEVA2 1" >>include/config.h ; \ echo "... DNP/EVA2 configuration" ; \ } @[ -z "$(findstring _base_32,$@)" ] || \ { echo "#define CONFIG_NIOS_BASE_32 1" >>include/config.h ; \ echo "... NIOS 'base_32' configuration" ; \ } @[ -z "$(findstring ADNPESC1_config,$@)" ] || \ { echo "#define CONFIG_NIOS_BASE_32 1" >>include/config.h ; \ echo "... NIOS 'base_32' configuration (DEFAULT)" ; \ } @./mkconfig -a ADNPESC1 nios nios adnpesc1 ssv########################################################################### Nios-II#########################################################################PK1C20_config : unconfig @./mkconfig PK1C20 nios2 nios2 pk1c20 psyentPCI5441_config : unconfig @./mkconfig PCI5441 nios2 nios2 pci5441 psyent#========================================================================# MicroBlaze#========================================================================########################################################################### Microblaze#########################################################################suzaku_config: unconfig @ >include/config.h @echo "#define CONFIG_SUZAKU 1" >> include/config.h @./mkconfig -a $(@:_config=) microblaze microblaze suzaku AtmarkTechno##################################################################################################################################################clean: find . -type f \ \( -name 'core' -o -name '*.bak' -o -name '*~' \ -o -name '*.o' -o -name '*.a' \) -print \ | xargs rm -f rm -f examples/hello_world examples/timer \ examples/eepro100_eeprom examples/sched \ examples/mem_to_mem_idma2intr examples/82559_eeprom rm -f tools/img2srec tools/mkimage tools/envcrc tools/gen_eth_addr rm -f tools/mpc86x_clk tools/ncb rm -f tools/easylogo/easylogo tools/bmp_logo rm -f tools/gdb/astest tools/gdb/gdbcont tools/gdb/gdbsend rm -f tools/env/fw_printenv tools/env/fw_setenv rm -f board/cray/L1/bootscript.c board/cray/L1/bootscript.image rm -f board/trab/trab_fktclobber: clean find . -type f \( -name .depend \ -o -name '*.srec' -o -name '*.bin' -o -name u-boot.img \) \ -print0 \ | xargs -0 rm -f rm -f $(OBJS) *.bak tags TAGS rm -fr *.*~ rm -f u-boot u-boot.map $(ALL) rm -f tools/crc32.c tools/environment.c tools/env/crc32.c rm -f tools/inca-swap-bytes cpu/mpc824x/bedbug_603e.c rm -f include/asm/proc include/asm/arch include/asmmrproper \distclean: clobber unconfigbackup: F=`basename $(TOPDIR)` ; cd .. ; \ gtar --force-local -zcvf `date "+$$F-%Y-%m-%d-%T.tar.gz"` $$F#########################################################################
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -