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

📄 makefile

📁 根据添加了fs2410平台的arch目录
💻
字号:
## 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

⌨️ 快捷键说明

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