?? makefile
字號:
## Makefile for rescue code#ifndef TOPDIRTOPDIR = ../../../..HPATH = $(TOPDIR)/includeexport HPATHendifCC = gcc-cris -mlinux -I $(TOPDIR)/includeCFLAGS = -O2LD = gcc-cris -mlinux -nostdlibOBJCOPY = objcopy-crisall: rescue.bin testrescue.bin kimagerescue.binrescue: rescue.bin # do nothingrescue.bin: head.o $(LD) -T rescue.ld -o rescue.o head.o $(OBJCOPY) -O binary --remove-section=.bss rescue.o rescue.bin cp rescue.bin $(TOPDIR)testrescue.bin: testrescue.o $(OBJCOPY) -O binary --remove-section=.bss testrescue.o tr.bin# Pad it to 784 bytes dd if=/dev/zero of=tmp2423 bs=1 count=784 cat tr.bin tmp2423 >testrescue_tmp.bin dd if=testrescue_tmp.bin of=testrescue.bin bs=1 count=784 rm tr.bin tmp2423 testrescue_tmp.binkimagerescue.bin: kimagerescue.o $(OBJCOPY) -O binary --remove-section=.bss kimagerescue.o ktr.bin# Pad it to 784 bytes, that's what the rescue loader expects dd if=/dev/zero of=tmp2423 bs=1 count=784 cat ktr.bin tmp2423 >kimagerescue_tmp.bin dd if=kimagerescue_tmp.bin of=kimagerescue.bin bs=1 count=784 rm ktr.bin tmp2423 kimagerescue_tmp.binhead.o: head.S $(CC) -D__ASSEMBLY__ -traditional -c $< -o $*.otestrescue.o: testrescue.S $(CC) -D__ASSEMBLY__ -traditional -c $< -o $*.okimagerescue.o: kimagerescue.S $(CC) -D__ASSEMBLY__ -traditional -c $< -o $*.oclean: rm -f *.o *.binfastdep:modules:modules-install:depend: $(CC) -M *.S > .depend-include .depend
?? 快捷鍵說明
復(fù)制代碼
Ctrl + C
搜索代碼
Ctrl + F
全屏模式
F11
切換主題
Ctrl + Shift + D
顯示快捷鍵
?
增大字號
Ctrl + =
減小字號
Ctrl + -