LTP交叉编译(LTP201XXXX以上版本)
交叉编译工具:4.4.1
liaoye163@sina.com密码123456交叉编译工具在software目录下
LTP版本:Ltp-full-20100331
下载LTP
第一步:配置configure
./configure CC=arm-none-linux-gnueabi-gcc
--host=i686-pc-linux-gnu
LDFLAGS="-L/usr/local/arm-2009q3/arm-non-linux-gnueabi/lib -L/usr/local/arm-2009q3/lib/gcc/arm-none-linux-gnueabi/4.4.1"
***交叉编译器安装的路径不同,上面的路径也要做相应的改变。
LDFLAGS:交叉编译工具链lib的路径
CC:交叉编译工具名
更多的信息你可执行./configure--help获取
第二步:make
***编译时可能会出现以下的情况,你只要再执行一次第一步:配置configure就能解决
arm-none-linux-gnueabi-gcc
-L/usr/local/arm-2009q3/arm-non-linux-gnueabi/lib
-L/usr/local/arm-2009q3/lib/gcc/arm-none-linux-gnueabi/4.4.1-L../../../../libtest_arch.o-o test_arch_stripped
strip test_arch_stripped
strip: Unable to
recognise the format of the input file `test_arch_stripped'
make[4]: ***
[test_arch_stripped] Error 1
make[4]: Leaving
directory `/home/cjok/ltp-full-20100131/testcases/commands/ade/objdump'
make[3]: *** [all] Error
2
make[3]: Leaving
directory `/home/cjok/ltp-full-20100131/testcases/commands/ade'
make[2]: *** [all] Error
2
第三步:make install
可能会出现以下情况,执行make install SKIP_IDCHECK=1就OK:
"*****************************************"
"* Required users/groups do NOT exist!!! *"
"**"
"* Some kernel/syscall tests will FAIL!*"
"*****************************************"
***如果出现下面的问题,请执行/opt/ltp/下的文件
FATAL: Test suite not
installed correctly
INFO: as root user type
'make ; make install'
FATAL: Test suite not
installed correctly
INFO:
as root user type 'make ; make inst