📄 makefile.solaris
字号:
## compression utilities demo; do # "make -f Makefile.Solaris TCS=.. run" # for running the full demo (on tmsim only)#EXAMPLES= $(TCS)/examplesFILES = $(EXAMPLES)/misc/files/files.cCMDOPT = $(EXAMPLES)/command_option_parserMAKE = /usr/local/bin/makeUNAME = Solaris## As defined, the flash simulator will be linked.# For the real flash, a user will have to make # the following changes:# - if a Board Support Package exists and it is not # linked in by default, a defintion to BSP must be# added.# - if a BSP is linked into the executable then BOARD# and FLASH_SPECIFIC set to nothing.# - if no BSP is linked but a Flash Driver exists,# then BOARD and FLASH_SPECIFIC should be set to point# to the specific flash driver.# - Change the definigion of HOST to match the# required host mode.# - if flash driver comes from BSP need to set TMXXX_params to # '-flashbsp', which is passed to tmSEA and tmWRB. Also if# if the tmSEA and tmWRB need aditional flags to include# the BSP this should be added here too.# - need to adjust BOOT_ADDRESS, SDRAM_BASE and SDRAM_LIMIT# to suit both software and hardware limitations.# - if dlls need to be embedded into appshell.out to read# flash, EMBED_DLLS needs to be altered## This example uses the Flash driver that as part of the# BSP. The EMBED_DLLS and IMMED_DLLS are required for# type app and type dynboot applications##BSP = $(TCS)/lib/$(ENDIAN)/libBSPdtv_ttr.o#BOARD = #FLASH_SPECIFIC =#HOST = nohost#TMXXX_params = -flashbsp -ldflags $(BSP)#BOOT_ADDRESS = 0x0400000#SDRAM_BASE = 0x000000#SDRAM_LIMIT = 0x800000#EMBED_DLLS = -bembed $(TCS)/lib/$(ENDIAN)/libtsaFlashFS.dll \# -bembed $(TCS)/lib/$(ENDIAN)/libtsaFlash.dll#IMMED_DLLS = -bimmediate $(TCS)/lib/$(ENDIAN)/libtsaFlashFS.dll \# -bimmediate $(TCS)/lib/$(ENDIAN)/libtsaFlash.dll## This make file is set up for tmsim, which does not have a BSP# and uses has its own flash driver.#BSP =BOARD = SimFLASH_SPECIFIC = $(EXAMPLES)/flash_file_system/sample_drivers/FlashSpecific$(BOARD).cHOST = tmsimTMXXX_params = -noflashbspBOOT_ADDRESS = 0x0500000SDRAM_BASE = 0x0100000SDRAM_LIMIT = 0x1000000ENDIAN = elERROR_RATE = 0NROF_ITERATIONS = 10CFLAGS = -DERROR_RATE=$(ERROR_RATE) \ -DBOOT_ADDRESS=$(BOOT_ADDRESS) \ -DNROF_ITERATIONS=$(NROF_ITERATIONS) \ -I$(TCS)/include/tmlibTMCC = $(TCS)/bin/tmcc -host $(HOST) -$(ENDIAN)target: allL1_boot.out: CHECK L1_boot.c $(FLASH_SPECIFIC) $(TMCC) $(CFLAGS) -o $@ \ $(FLASH_SPECIFIC) L1_boot.c \ -liomkfs.out: CHECK mkfs.o $(FLASH_SPECIFIC) $(TMCC) $(CFLAGS) -o $@ \ $(FLASH_SPECIFIC) mkfs.o $(BSP) \ -lioappshell.o:; $(TMCC) $(CFLAGS) -c -o $@ ./appshell.cmkfs.o:; $(TMCC) $(CFLAGS) -c -o $@ $(EXAMPLES)/flash_file_system/mkfs/mkfs.cflashtest.o:; $(TMCC) $(CFLAGS) -c -o $@ $(EXAMPLES)/flash_file_system/flash_demo/flashtest.cFlashSpecific.o:; $(TMCC) $(CFLAGS) -c -o $@ $(FLASH_SPECIFIC)CHECK: @if [ x$(TCS) = x ]; then \ echo "Usage: make TCS=<path>"; false; \ ficlean: rm -rf *.out *.app *.tmd *.o *.image *% *~ flash psos_demo1 *.mi tmSEA tmWRB tmSEI## run tmsim with memory model off;# things can become slow with flash simulation# when the error rate is non-zero:## Application to launchAPP = psos_demo1## User can optionally choose to launch dynamic version of flashtest.#APP = flashtest#psos_demo1: - cp -r $(EXAMPLES)/psos/psos_demo1 . chmod -R 777 psos_demo1 cd psos_demo1; $(MAKE) TCS=$(TCS) HOST=$(HOST) ENDIAN=$(ENDIAN) \ APPLICATION=../psos_demo1.app CFLAGS="-btype app" DYNAMIC=dynamicflashtest : CHECK flashtest.o $(FILES) $(FLASH_SPECIFIC) $(TMCC) $(CFLAGS) -o flashtest.app \ flashtest.o $(FILES) $(FLASH_SPECIFIC) \ $(IMMED_DLLS) -lio -tmld -u _FlashFS -- \ -lcomp -btype appflash: $(APP) mkdir -p flash mkdir -p flash/dlls - cp $(APP).app flash/application.app - cp $(TCS)/lib/$(ENDIAN)/*.dll $(TCS)/OS/pSOS/pSOSystem/sys/os/psos_tm_$(ENDIAN).dll flash/dllstmSEA: - cp -r $(EXAMPLES)/compression/zlib/utilities/tmSEA . chmod -R 777 tmSEA cd tmSEA; make -f Makefile.$(UNAME) TCS=$(TCS) EXAMPLES=$(EXAMPLES) BOARD=$(BOARD) CMDOPT=$(CMDOPT) ; cd .. chmod -R 777 tmSEA cd tmSEA; rm *.o ; cd ..arch.out: flash tmSEA cd tmSEA; tmSEA ../flash -v -$(ENDIAN) -host $(HOST) $(TMXXX_params) -o ../arch.out -tcs $(TCS); cd ..appshell.out: CHECK appshell.o $(FLASH_SPECIFIC) $(TMCC) $(CFLAGS) -o $@ \ $(FLASH_SPECIFIC) appshell.o $(BSP) \ -lio -tmld -u _FlashFS $(EMBED_DLLS) -- \ -btype dynboot \tmSEI: - cp -r $(EXAMPLES)/compression/zlib/utilities/tmSEI . chmod -R 777 tmSEI cd tmSEI; make -f Makefile.$(UNAME) TCS=$(TCS) EXAMPLES=$(EXAMPLES) BOARD=$(BOARD) CMDOPT=$(CMDOPT) ; cd .. chmod -R 777 tmSEI cd tmSEI; rm *.o ; cd ..seiappshell.mi: appshell.out tmSEI cd tmSEI ; tmSEI -load $(SDRAM_BASE),$(SDRAM_LIMIT) ../appshell.out -$(ENDIAN) -host $(HOST) -o ../seiappshell.mi -sei $(BOOT_ADDRESS),$(SDRAM_LIMIT) -tcs $(TCS) chmod -R 777 tmSEItmWRB: - cp -r $(EXAMPLES)/compression/zlib/utilities/tmWRB . chmod -R 777 tmWRB cd tmWRB; make -f Makefile.$(UNAME) TCS=$(TCS) EXAMPLES=$(EXAMPLES) BOARD=$(BOARD) CMDOPT=$(CMDOPT) ; cd .. chmod -R 777 tmWRB cd tmWRB; rm *.o ; cd ..wrbseiappshell.out: seiappshell.mi tmWRB cd tmWRB ; tmWRB ../seiappshell.mi -$(ENDIAN) -host $(HOST) -load $(BOOT_ADDRESS),$(SDRAM_LIMIT) $(TMXXX_params) -o ../wrbseiappshell.out -v -inmi -tcs $(TCS) chmod -R 777 tmWRBall: mkfs.out arch.out appshell.out seiappshell.mi wrbseiappshell.out### To be used only with tmsim##Flash.image: mkfs.out arch.out $(TCS)/bin/tmsim -ms 32000 -nomm mkfs.out $(TCS)/bin/tmsim -ms 32000 -nomm arch.outrun: Flash.image appshell.out seiappshell.mi wrbseiappshell.out L1_boot.out $(TCS)/bin/tmsim -ms 32000 -nomm wrbseiappshell.out $(TCS)/bin/tmsim -ms 32000 -nomm L1_boot.out @echo -- test passed
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -