交叉编译mtd-utils到sama5d3x

2019-07-12 19:33发布

材料: 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