mtd交叉编译

CSDN博客有点不好就是文章不方便搜索,我记得好像写过mtd交叉编译的笔记,不好搜索,就重新记录了。

 

lzo-2.06交叉编译:

./configure --host=arm CC=arm-linux-gcc --enable-static --enable-shared --prefix=/home/jieen/bin/arm/4.3.2/arm-none-linux-gnueabi/libc
make
make install

e2fsprogs-1.42.7(uuid)
./configure --host=arm-linux CC=arm-linux-gcc --prefix=/home/jieen/bin/arm/4.3.2/arm-none-linux-gnueabi/libc

mtd_util
export LZOCPPFLAGS=-I/home/jieen/bin/arm/4.3.2/arm-none-linux-gnueabi/libc/include
export LZOLDFLAGS=-L/home/jieen/bin/arm/4.3.2/arm-none-linux-gnueabi/libc/lib
修改Makefile,
LDLIBS_mkfs.ubifs = -lz $(LZOLDFLAGS) -llzo2 -lm -luuid

make CROSS=arm-linux- WITHOUT_XATTR=1

你可能感兴趣的:(mtd交叉编译)