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

📄 makefile

📁 linux和2410结合开发 用他可以生成2410所需的zImage文件
💻
字号:
#Makefile for mkyaffs## NB this is not yet suitable for putting into the kernel tree.# YAFFS: Yet another FFS. A NAND-flash specific file system. ## Copyright (C) 2002 Aleph One Ltd.#   for Toby Churchill Ltd and Brightstar Engineering## Created by Charles Manning <charles@aleph1.co.uk>## This program is free software; you can redistribute it and/or modify# it under the terms of the GNU General Public License version 2 as# published by the Free Software Foundation.## Change or override  KERNELDIR to your kernel# target kernelT_KERNELDIR = ../../../# host kernelH_KERELDIR = /usr/src/linuxCFLAGS =   -I.. -O2 -Wall -DCONFIG_YAFFS_UTILCFLAGS+=   -Wshadow -Wpointer-arith -Wwrite-strings -Wstrict-prototypes -Wmissing-declarationsCFLAGS+=   -Wmissing-prototypes -Wredundant-decls -Wnested-externs -WinlineMKYAFFSOBJS = mkyaffs.oMKYAFFSIMAGEOBJS = mkyaffsimage.o yaffs_ecc.oCROSS=/opt/host/armv4l/bin/armv4l-redhat-linux-all: mkyaffs mkyaffsimage mmaptest$(MKYAFFSIMAGEOBJS): %.o: %.c	gcc -c -I$(H_KERNELDIR)/include $(CFLAGS) $< -o $@mkyaffsimage: $(MKYAFFSIMAGEOBJS)	gcc -s -o $@ $(MKYAFFSIMAGEOBJS)$(MKYAFFSOBJS) mmaptest.o: %.o: %.c	$(CROSS)gcc -c -I$(T_KERNELDIR)/include $(CFLAGS) $< -o $@mkyaffs: $(MKYAFFSOBJS)	$(CROSS)gcc -s -o $@ $(MKYAFFSOBJS)mmaptest: mmaptest.o	$(CROSS)gcc -s -o $@ mmaptest.oyaffs_ecc.c:	ln -s ../yaffs_ecc.c yaffs_ecc.cclean:	rm -vf *.o core mkyaffs mkyaffsimage mmaptest

⌨️ 快捷键说明

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