📄 makefile
字号:
# Makefile - make rules for template ## Copyright 2002 Wind River Systems, Inc.## TODO - Remove the template modification history and begin a new history# starting with version 01a and growing the history upward with# each revision.## modification history# --------------------# 01c,17jul02,dat remove obsolete information# 01b,30may02,dat Using a driver archive, not a module, SPR 77135# 01a,23may02,scm written.## TODO - Update documentation.## DESCRIPTION# This file contains rules for building VxWorks.## INCLUDES# makeTarget#*/## TODO:## Fill in this file with I/O addresses and related constants for the## template BSP. Anything with "template" as a prefix needs to examined## and re-named to id the BSP (i.e. iq80321, iq80310, etc.)CPU = ARMARCH4TOOL = gnu## TODO:## Fill in appropriate Arm processor flags here... EXTRA_DEFINE = -Wcomment -DCPU_940T \ -DARMMMU=ARMMMU_940T -DARMCACHE=ARMCACHE_940TTGT_DIR = $(WIND_BASE)/targetinclude $(TGT_DIR)/h/make/defs.bsp## Only redefine make definitions below this point, or your definitions will## be overwritten by the makefile stubs above.# TODO - default files are sysLib.c, sysTffs.c and tycoDrv.c. Specify here the# files to be documented bye make man. If the default files are OK, remove the# DOC_FILES variable belowDOC_FILES =# TODO - Replace these examples with appropriate values.TARGET_DIR = templateARMVENDOR = ARM LimitedBOARD = Model-1# Specify the targets to be built by "make release"; after these targets are# built, the target bsp2prj is built as well.RELEASE += bootrom.bin## The constants ROM_TEXT_ADRS, ROM_SIZE, and RAM_HIGH_ADRS are defined# in config.h and Makefile.# All definitions for these constants must be identical.# Specify values in hexadecimal, without a leading 0x.#ROM_TEXT_ADRS = 24000000 # ROM entry addressROM_SIZE = 01FA0000 # number of bytes of ROM spaceRAM_LOW_ADRS = 00001000 # RAM text/data addressRAM_HIGH_ADRS = 00600000 # RAM text/data addressVMA_START = 0x$(ROM_TEXT_ADRS)# TODO - Remove the following line, it is for internal WRS use only.RELEASE_PRE = mk.templateDrvrs.a# TODO - The following is only for the template BSP, it will usually be# removed.# For template BSPs, the templateEnd driver module is in a BSP specific# archive, not the normal archive.LIB_EXTRA = templateDrvrs.a## Only redefine make definitions above this point, or the expansion of## makefile target dependencies may be incorrect.include $(TGT_DIR)/h/make/rules.bsp# TODO - Add any additional make targets or rules below this point.# TODO - Remove this special make target.# Rather than put the template driver in the real archive, we put it here in# the template BSP. This is not the usual way we link to a network driver.mk.templateDrvrs.a: $(TGT_DIR)/src/drv/end/templateEnd.c $(CC) $(CFLAGS) -o templateEnd.o $(OPTION_OBJECT_ONLY) \ $(TGT_DIR)/src/drv/end/templateEnd.c $(AR) crus templateDrvrs.a templateEnd.o $(RM) templateEnd.o# Binary version of VxWorks ROM images, suitable for programming# into Flash using tools provided by ARM. If other ROM images need to# be put into Flash, add similar rules here.bootrom.bin: bootrom - @ $(RM) $@ $(EXTRACT_BIN) -O binary bootrom $@bootrom_res.bin: bootrom_res - @ $(RM) $@ $(EXTRACT_BIN) -O binary bootrom_res $@bootrom_uncmp.bin: bootrom_uncmp - @ $(RM) $@ $(EXTRACT_BIN) -O binary bootrom_uncmp $@vxWorks_rom.bin: vxWorks_rom - @ $(RM) $@ $(EXTRACT_BIN) -O binary vxWorks_rom $@vxWorks.st_rom.bin: vxWorks.st_rom - @ $(RM) $@ $(EXTRACT_BIN) -O binary vxWorks.st_rom $@vxWorks.res_rom.bin: vxWorks.res_rom - @ $(RM) $@ $(EXTRACT_BIN) -O binary vxWorks.res_rom $@vxWorks.res_rom_nosym.bin: vxWorks.res_rom_nosym - @ $(RM) $@ $(EXTRACT_BIN) -O binary vxWorks.res_rom_nosym $@
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -