2. make
[make 过程中遇到的Error的修改]
(1) strip: Unable to recognise the format of the input file `test_arch_stripped'
make[4]: *** [test_arch_stripped] Error 1
解决方法: 只要在运行make命令,就OK了。
(2) /opt/toolchains/arm-2009q3/bin/../arm-none-linux-gnueabi/libc/usr/lib/libc.a(syslog.o): In function `openlog':
syslog.c:(.text+0x448): multiple definition of `openlog'…….
make[4]: *** [random-access] Error 1
解决方法:将./testcases/kernel/fs/fs-bench/random-access.c文件中的openlog变量全部替换掉:
:%s/openlog/test_openlog/g
(3) /opt/toolchains/arm-2009q3/bin/../arm-none-linux-gnueabi/libc/usr/lib/libc.a(syslog.o): In function `openlog':
syslog.c:(.text+0x448): multiple definition of `openlog'…..
make[4]: *** [random-access-del-create] Error 1
解决方法:将./testcases/kernel/fs/fs-bench/ random-access-del-create.c文件中的openlog变量全部替换掉:
:%s/openlog/openlog_test/g
3. 运行 sudo make install; /opt/ltp下就是可以在Android上运行的binary。