makefile
来自「优龙2410linux2.6.8内核源代码」· 代码 · 共 56 行
TXT
56 行
## Makefile for rescue code#ifndef TOPDIRTOPDIR = ../../../..endifCC = gcc-cris -mlinux -I $(TOPDIR)/includeCFLAGS = -O2LD = gcc-cris -mlinux -nostdlibOBJCOPY = objcopy-crisOBJCOPYFLAGS = -O binary --remove-section=.bssall: rescue.bin testrescue.bin kimagerescue.binrescue: rescue.bin # do nothingrescue.bin: head.o $(LD) -T rescue.ld -o rescue.o head.o $(OBJCOPY) $(OBJCOPYFLAGS) rescue.o rescue.bin cp rescue.bin $(TOPDIR)testrescue.bin: testrescue.o $(OBJCOPY) $(OBJCOPYFLAGS) 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) $(OBJCOPYFLAGS) 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:
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?