交叉编译mtd-utils到sama5d3x

材料:

https://sourceforge.net/projects/libuuid/?source=typ_redirect

http://git.infradead.org/mtd-utils.git/shortlog/refs/tags/v1.5.2

http://www.zlib.net/

http://www.oberhumer.com/opensource/lzo/download/

https://sourceforge.net/projects/e2fsprogs/files/e2fsprogs/v1.43.2/

1.交叉编译zlib

CC=arm-none-linux-gnueabi-gcc AR=arm-none-linux-gnueabi-ar ./configure --prefix=/home/default/share/mtd_ulity/pub
make
make install

2.交叉编译lzo
./configure --host=i686 --target=arm-linux CC=arm-none-linux-gnueabi-gcc  --prefix=/home/default/share/mtd_ulity/pub CFLAGS=-static
make
make install

3.交叉编译libuuid-1.0.3
./configure --host=arm-linux CC=arm-none-linux-gnueabi-gcc --prefix=/home/default/share/mtd_ulity/pub
make
make install

4.交叉编译e2fsprogs(可选,可不用)
./configure --host=arm-linux CC=arm-none-linux-gnueabi-gcc --prefix=/home/default/share/mtd_ulity/pub
make
make install

5.交叉编译mtd-utils
make CROSS=arm-none-linux-gnueabi- CFLAGS="-I/home/default/share/mtd_ulity/pub/include -I./include -L/home/default/share/mtd_ulity/pub/lib -DWITHOUT_XATTR" LDFLAGS="-L/home/default/share/mtd_ulity/pub/lib"
make
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值