⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 rules.bsp

📁 AT91RM9200 BSP with dual ethernet port
💻 BSP
📖 第 1 页 / 共 2 页
字号:
# THIS FILE IS GOING AWAY.# PLEASE MERGE ANY CHANGES INTO rules.project## rules.bsp - makefile target rules for BSP## modification history# --------------------# 02q,05sep01,rec  change link order for vxWorks rom for ARM#                  $(MACH_DEP) must link before usrConfig.o# 02p,31oct00,scm  add post build rules...# 02o,06apr00,dra  Added HEX_LOW_FLAGS and HEX_HIGH_FLAGS to support FRV#                  (Venus) toolchain.# 02n,31mar00,rsh  final merge es.tor2_0.mcore to tor2_0_0.es.coretools# 02n,01mar00,rsh  removing remove of LIB_EXTRA since I'm nolonger using a bsp#                  archive of sio driver and the remove shouldn't be here#                  anyway# 02m,08feb00,jld  add clean rule for LIB_EXTRA.# 02l,27oct99,tpw  Add RES_LDFLAGS, like ROM_LDFLAGS but for resident images.# 02k,26oct99,tpw  Fix two bugs in the objcopy changes.# 02j,01mar99,yp   Added rules for building files with cc extentions SPR 20293# 02i,23feb99,sn   removed references to $(POST_MUNCH)# 02h,18jan99,sn   removed hack mentioned below (collect2 now fixed)# 02g,07dec98,sn   hacked bsp2prj rule so that default projects created#                  on unix work on windows too.# 02f,17nov98,sn   added LD_PARTIAL_FLAGS back to makeMacros, undid 02d# 02e,11nov98,sn   partially link using LD_PARTIAL#                  clean now removes .rpo files too# 02d,11nov98,sn   munch -> orderCtors# 02c,05Nov98,ms   -traditional -> -fdollars-in-identifiers# 02b,23Oct98,ms   make implicit rules overridable from make.CPUTOOL.# 02c,21apr99,bc   Alter BINXSYM command line for objcopy interface.# 02b,08apr99,bc   Merge in objcopy invocations from Aeolus# 02a,28aug98,jmp  added bsp2proj as part of the release rule.# 01z,29jun98,jmp  removed from makeMacros rule all macros defined in#		   BSPs Makefiles.# 01y,25jun98,ms   added more macros to makeMacros rule# 01x,02apr98,pcn  Removed Objcopy changes from Tempest view# 01w,15dec97,pcn  Added Objcopy in BSP build.# 01v,04mar97,tpr  changed bootrom_res_res_high.hex by bootrom_res_high.hex#		   (SPR 8095)# 01u,13dec96,map  Remove symTbl.c in target rule `clean' [SPR# 2637]# 01t,09dec96,tpr  Added rule to remove ctdt.c for the 'clean' target. # 01s,04oct96,yp   Added rules for building files with cxx extentions# 01r,23oct96,yp   redid treatment of .s files so we don't create tmp# 01q,26sep96,dat  removed edit 01k, was harming sparc & 960 BSPs. (SPR 7238)# 01p,19sep96,tpr  merge PPC to tor1_0_1 release.# 01o,29aug96,ms   removed "-f -b 15" after $(COMPRESS).# 01n,22aug96,map  added romInit.o dependency to romInit_res* rules to fix#                  SPR# 7063# 01m,25jul96,tam  replaced mips specific rom resident targets by ppc ones. # 01l,23jul96,kkk  fixed build rules for romInit_res*.o for.# 01k,22jul96,tam  added $(BOOT_EXTRA) where it was missing.# 01j,04apr96,srh  added munching.# 01i,08mar96,yp   added -P in implicite .s.o rule.# 01h,06mar96,dat  new rules for version.o# 01g,13nov95,jeh  restored .cpp.o implicit rule# 01f,08nov95,jeh  removed .cpp.o implicit rule# 01e,01nov95,p_m  added LIB to rom_res build command# 01d,01nov95,yp   added implicit rules for C++# 01c,30oct95,dat  added targets vxWorks.res_rom_nosym and #		   vxWorks.res_rom_nosym_mips# 01b,27jun95,kkk  added VXSIZE.# 01a,12jun95,yp   created from makeTarget2 v03d.## DESCRIPTION# This file contains rules used in building targets.## VARIABLES# The following variables must be defined (or not, as appropriate):##     ROM_SIZE          number of bytes of ROM space as in config.h#     LOCAL_MEM_SIZE	target RAM size as in config.h#     BINHEX		binary->hex file conversion program#     HEX_FLAGS         BINHEX program options#     HEX_LOW_FLAGS     BINHEX program options for code in low memory#     HEX_HIGH_FLAGS    BINHEX program options for code in high memory#     LD_LOW_FLAGS	ld(1) options for code in low memory#     LD_HIGH_FLAGS	ld options for code in high memory#     LD_PARTIAL_FLAGS  ld flags for linking partially complete objects#     LDDEPS		host-specific dependencies prerequisite to linking#     LDOUT_CONV	hpToBsd, coffToBsd, gswab, /bin/cat, etc.#     COMPILE_SYMTBL	hide flags needed to get compiler to swallow symTbl.c#     ROM_ENTRY		rom entry point (typically &romInit)#     SYS_ENTRY		system entry point (typically &sysInit)#     USR_ENTRY		compressed system entry point (typically &usrInit)## The following variables are optionally defined:##     LDFLAGS		standard ld flags for vxWorks & ROMs.#     ROM_LDFLAGS	ld flags specific to ROM image#     RES_LDFLAGS	ld flags specific to resident ROM image#     MACH_EXTRA	extra modules for all boot/vxWorks images#     BOOT_EXTRA	extra modules for compressed images only#     RELEASE		images made as part of WRS release step## CONSTANTS#     CPU               cpu type#*/RULES_BSP_PATH=.################################################################################## meta build targets### make will default to "exe"exe	: vxWorksrelease : $(RELEASE) bsp2prjbsp2prj:	$(TCL) $(WIND_BASE)/host/src/hutils/bsp2prj.tclclean   :	- $(RM) *.o	- $(RM) *.rpo 	- $(RM) vxWorks* 	- $(RM) bootrom* 	- $(RM) ctdt.c 	- $(RM) symTbl.c	- $(RM) depend.$(TARGET_DIR)ifeq ($(IMPLICIT_RULE_S_O),).s.o :	@ $(RM) $@	$(CC) $(CFLAGS_AS) -c -o $@ $< endififeq ($(IMPLICIT_RULE_C_O),).c.o :	@ $(RM) $@	$(CC) $(CFLAGS) -c $<endififeq ($(IMPLICIT_RULE_CXX_O),)# rule for munchless C++ compiles.cpp.o :	@ $(RM) $@	$(CXX) $(C++FLAGS) -c $<.cxx.o :	@ $(RM) $@	$(CXX) $(C++FLAGS) -c $<.cc.o :	@ $(RM) $@	$(CXX) $(C++FLAGS) -c $<# C++ compile and munch.cpp.out :	@ $(RM) $@	$(CXX) $(C++FLAGS) -c $<	@ $(RM) $@ ctdt.c	$(NM) $*.o | $(MUNCH) > ctdt.c	$(MAKE) CC_COMPILER="-fdollars-in-identifiers" ctdt.o	$(LD_PARTIAL) -o $@ $*.o ctdt.o	@ $(RM) ctdt.c ctdt.o.cxx.out :	@ $(RM) $@	$(CXX) $(C++FLAGS) -c $<	@ $(RM) $@ ctdt.c	$(NM) $*.o | $(MUNCH) > ctdt.c	$(MAKE) CC_COMPILER="-fdollars-in-identifiers" ctdt.o	$(LD_PARTIAL) -o $@ $*.o ctdt.o	@ $(RM) ctdt.c ctdt.o.cc.out :	@ $(RM) $@	$(CXX) $(C++FLAGS) -c $<	@ $(RM) $@ ctdt.c	$(NM) $*.o | $(MUNCH) > ctdt.c	$(MAKE) CC_COMPILER="-fdollars-in-identifiers" ctdt.o	$(LD_PARTIAL) -o $@ $*.o ctdt.o	@ $(RM) ctdt.c ctdt.oendif################################################################################## machine dependent targetsromInit_res.o: depend.$(BSP_NAME) romInit.s romInit.o	- @ $(RM) $@	$(CC) $(CFLAGS_AS) -DROM_RESIDENT -c -o $@ romInit.sromInit_res_low.o: depend.$(BSP_NAME) romInit.s romInit.o	- @ $(RM) $@	$(CC) $(CFLAGS_AS) -DROM_RESIDENT \	    -DRAM_DST_ADRS=0x$(RAM_LOW_ADRS) -c -o $@ romInit.sromInit_res_high.o: depend.$(BSP_NAME) romInit.s romInit.o	- @ $(RM) $@	$(CC) $(CFLAGS_AS) -DROM_RESIDENT \	    -DRAM_DST_ADRS=0x$(RAM_HIGH_ADRS) -c -o $@ romInit.susrConfig.o : depend.$(BSP_NAME) $(USRCONFIG)	- @ $(RM) $@	$(CC) -c $(CFLAGS) $(USRCONFIG) -o $@usrConfig_st.o : depend.$(BSP_NAME) $(USRCONFIG) usrConfig.o	- @ $(RM) $@	$(CP) $(USRCONFIG) usrConfig_st.c	$(CC) -c $(CFLAGS) -DSTANDALONE usrConfig_st.c	- @ $(RM) usrConfig_st.cbootConfig.o : depend.$(BSP_NAME) $(BOOTCONFIG)	- @ $(RM) $@	$(CC) -c $(CFLAGS) $(BOOTCONFIG)bootInit.o : depend.$(BSP_NAME) $(BOOTINIT)	- @ $(RM) $@	$(CC) -c $(CFLAGS) $(BOOTINIT)bootInit_res.o : depend.$(BSP_NAME) $(BOOTINIT) bootInit.o	- @ $(RM) $@	$(CP) $(BOOTINIT) bootInit_res.c	$(CC) -c $(CFLAGS) -DROM_RESIDENT bootInit_res.c	- @ $(RM) bootInit_res.cbootInit_res_low.o : depend.$(BSP_NAME) $(BOOTINIT)	- @ $(RM) $@	$(CP) $(BOOTINIT) bootInit_res_low.c	$(CC) -c $(CFLAGS) -DROM_RESIDENT \	    -DRAM_DST_ADRS=0x$(RAM_LOW_ADRS) bootInit_res_low.c	- @ $(RM) bootInit_res_low.cbootInit_res_high.o : depend.$(BSP_NAME) $(BOOTINIT)	- @ $(RM) $@	$(CP) $(BOOTINIT) bootInit_res_high.c	$(CC) -c $(CFLAGS) -DROM_RESIDENT \	    -DRAM_DST_ADRS=0x$(RAM_HIGH_ADRS) bootInit_res_high.c	- @ $(RM) bootInit_res_high.cbootInit_uncmp.o : depend.$(BSP_NAME) $(BOOTINIT) bootInit.o	- @ $(RM) $@	$(CP) $(BOOTINIT) bootInit_uncmp.c	$(CC) -c $(CFLAGS) -DUNCOMPRESS bootInit_uncmp.c	- @ $(RM) bootInit_uncmp.cbootInit_st.o : depend.$(BSP_NAME) $(BOOTINIT) bootInit.o	- @ $(RM) $@	$(CP) $(BOOTINIT) bootInit_st.c	$(CC) -c $(CFLAGS) -DRAM_DST_ADRS=0x$(RAM_LOW_ADRS) bootInit_st.c	- @ $(RM) bootInit_st.cbootInit_uncmp_res.o : depend.$(BSP_NAME) $(BOOTINIT) bootInit.o	- @ $(RM) $@	$(CP) $(BOOTINIT) bootInit_uncmp_res.c	$(CC) -c $(CFLAGS) -DROM_RESIDENT -DUNCOMPRESS bootInit_uncmp_res.c	- @ $(RM) bootInit_uncmp_res.cdataSegPad.o: depend.$(BSP_NAME) $(DATASEGPAD) $(CONFIG_ALL_H) config.h	- @ $(RM) $@	$(CC) -c $(CFLAGS) $(DATASEGPAD) -o $@################################################################################## 3 rules for objcopy flags: START_FLAGS & HEX_FLAGS, NO_VMA_FLAGS, VMA_FLAGS# 1st rule: if NO_VMA_FLAGS==VMA_FLAGS(==0), create final output file.ifeq ($(strip $(NO_VMA_FLAGS)),$(strip $(VMA_FLAGS)))        BINHEX_OUTPUT_FILE = $@else        BINHEX_OUTPUT_FILE = out.tmp1endif # 2nd rule: if NO_VMA_FLAGS!=0 && VMA_FLAGS==0, create final output file.# Note: NO_VMA_FLAGS!=0 will be tested each time.ifeq ($(strip $(VMA_FLAGS)),)        BINCONV_OUTPUT_FILE = $@else        BINCONV_OUTPUT_FILE = out.tmp2endif # 3rd rule: if VMA_FLAGS!=0 && NO_VMA_FLAGS==0, use out.tmp1 else out.tmp2.# Note: VMA_FLAGS!=0 will be tested each time.ifeq ($(strip $(NO_VMA_FLAGS)),)        BINCONV_INPUT_FILE = out.tmp1else        BINCONV_INPUT_FILE = out.tmp2endif################################## vxWorks ####################################### vxWorks     - normal vxWorks system# vxWorks.sym - symbol table of vxWorksvxWorks vxWorks.sym : depend.$(BSP_NAME) usrConfig.o dataSegPad.o \		$(MACH_DEP) $(LDDEPS) $(LIBS)	- @ $(RM) vxWorks vxWorks.sym	- @ $(RM) version.o	- @ $(RM) vxWorks.tmp ctdt.c ctdt.o	$(CC) -c $(CFLAGS) -o version.o $(CONFIG_ALL)/version.c	$(LD_PARTIAL) \	    -o vxWorks.tmp $(MACH_DEP) usrConfig.o version.o $(LIBS)	$(NM) vxWorks.tmp | $(MUNCH) > ctdt.c	$(MAKE) CC_COMPILER="-fdollars-in-identifiers" ctdt.o	$(LD) $(LDFLAGS) -e $(SYS_ENTRY) $(LD_LOW_FLAGS) \	    -o vxWorks dataSegPad.o vxWorks.tmp ctdt.o	- @ $(RM) vxWorks.tmp	$(LDOUT_HOST) vxWorks	$(LDOUT_CONV) vxWorks	$(BINXSYM) vxWorks vxWorks.sym	$(LDOUT_SYMS) vxWorks.sym	$(VXSIZEPROG) -v $(RAM_HIGH_ADRS) $(RAM_LOW_ADRS) vxWorks# ifdef JMLee	$(EXTRACT_BIN) -O binary vxWorks vxWorks.bin# endif# vxWorks_rom - rommable version of VxWorks (without standalone symbol table)#   This is typically used when making an application in ROM that doesn't#   include the shell and the symbol table.  Since these applications are#   usually smaller, this version doesn't use ROM compression.vxWorks_rom : depend.$(BSP_NAME) bootInit_uncmp.o romInit.o \		dataSegPad.o usrConfig.o $(MACH_DEP) $(LDDEPS) $(LIBS)	- @ $(RM) $@ 	- @ $(RM) $(IMI) 	- @ $(RM) $(IBR)	- @ $(RM) version.o	- @ $(RM) ctmp.o ctdt.c ctdt.o	$(CC) -c $(CFLAGS) -o version.o $(CONFIG_ALL)/version.c	$(LD_PARTIAL) \	    -o ctmp.o usrConfig.o \	    $(MACH_DEP) version.o $(LIBS)	$(NM) ctmp.o | $(MUNCH) > ctdt.c	$(MAKE) CC_COMPILER="-fdollars-in-identifiers" ctdt.o	$(LD) $(LDFLAGS) -e $(ROM_ENTRY) $(LD_LOW_FLAGS) \	    -o $@ romInit.o bootInit_uncmp.o dataSegPad.o \	    ctmp.o ctdt.o	- @ $(RM) ctmp.o	$(LDOUT_HOST) $@	$(ROMSIZEPROG) -b $(ROM_SIZE) $@	$(LDOUT_CONV) $@# ifdef JMLee	$(EXTRACT_BIN) -O binary vxWorks_rom vxWorks_rom.bin# endifvxWorks_rom.hex : depend.$(BSP_NAME) vxWorks_rom $(IMI)	- @ $(RM) vxWorks_rom.tmp*	- @ $(RM) out.tmp*	$(BINHEX) $(START_FLAGS) $(HEX_FLAGS) $(HEX_LOW_FLAGS) \	    $(SECT_SPEC)vxWorks_rom$(TXT_OFFSET) $(BINHEX_OUTPUT_FILE)ifneq ($(strip $(NO_VMA_FLAGS)),)	$(BINCONV) $(NO_VMA_FLAGS) out.tmp1 $(BINCONV_OUTPUT_FILE)endififneq ($(strip $(VMA_FLAGS)),)	$(BINCONV) $(VMA_FLAGS) $(BINCONV_INPUT_FILE) $@$(MAP_EXT)endif	- @ $(RM) vxWorks_rom.tmp*	- @ $(RM) out.tmp*	- @ $(MV_BIN)# vxWorks.st - standalone VxWorks with symbol table linked in#   This builds a VxWorks image that contains the symbol table linked in,#   instead of loading it over the network.vxWorks.st : depend.$(BSP_NAME) usrConfig_st.o dataSegPad.o \		$(MACH_DEP) $(LDDEPS) $(LIBS)	- @ $(RM) $@ 	- @ $(RM) symTbl.c 	- @ $(RM) symTbl.o 	- @ $(RM) tmp.o 	- @ $(RM) tmp.2	- @ $(RM) version.o	- @ $(RM) ctdt.c ctdt.o	$(CC) -c $(CFLAGS) -o version.o $(CONFIG_ALL)/version.c	$(LD_PARTIAL) -o tmp.o dataSegPad.o $(MACH_DEP) \	    usrConfig_st.o version.o $(LIBS)	$(NM) tmp.o | $(MUNCH) >ctdt.c	$(MAKE) CC_COMPILER="-fdollars-in-identifiers" ctdt.o	$(CP) tmp.o tmp.2	$(LDOUT_SYMS) tmp.o	$(MKSYMTBL) tmp.o > symTbl.c	$(COMPILE_SYMTBL) symTbl.c	$(LD) $(LDFLAGS) -e $(SYS_ENTRY) $(LD_LOW_FLAGS) \	    -o $@ tmp.2 symTbl.o ctdt.o	$(LDOUT_SYMS) $@	$(LDOUT_CONV) $@	$(VXSIZEPROG) -v $(RAM_HIGH_ADRS) $(RAM_LOW_ADRS) vxWorks.st	- @ $(RM) tmp.?	 # ifdef JMLee	$(EXTRACT_BIN) -O binary vxWorks.st vxWorks.st.bin# endif# vxWorks.st_rom - rommable standalone version using ROM compression#   This builds a standalone VxWorks image that can be put in ROM.#   It includes a linked in symbol table so that a complete VxWorks with#   shell and symbol table can be put in ROM.  Since these systems tend to#   be larger, ROM compression is used.#   Note: this uses larger EEPROMs, the user is advised to check the#   macros for ROM sizes and offsets for compatibility.vxWorks.st.Z.s : depend.$(BSP_NAME) usrConfig_st.o dataSegPad.o \			$(MACH_DEP) $(LDDEPS) $(LIBS)	- @ $(RM) $@ 	- @ $(RM) tmp.o 	- @ $(RM) tmp.1 	- @ $(RM) tmp.2 	- @ $(RM) tmp.3 	- @ $(RM) tmp.Z 	- @ $(RM) symTbl.c 	- @ $(RM) symTbl.o	- @ $(RM) version.o	- @ $(RM) ctdt.c ctdt.o	$(CC) -c $(CFLAGS) -o version.o $(CONFIG_ALL)/version.c	$(LD_PARTIAL) -o tmp.1 dataSegPad.o $(MACH_DEP) \	    usrConfig_st.o version.o $(LIBS)	$(NM) tmp.1 | $(MUNCH) >ctdt.c	$(MAKE) CC_COMPILER="-fdollars-in-identifiers" ctdt.o	$(CP) tmp.1 tmp.o	$(LDOUT_SYMS) tmp.o	$(MKSYMTBL) tmp.o >symTbl.c	$(COMPILE_SYMTBL) symTbl.c	$(LD) -o tmp.2 $(LDFLAGS) $(ROM_LDFLAGS) -e $(SYS_ENTRY) \	    $(LD_LOW_FLAGS) tmp.1 symTbl.o ctdt.o

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -