[LTP] how to cross compile linux test project?

Cyril Hrubis chrubis@suse.cz
Mon Nov 9 13:50:22 CET 2015


Hi!
> I can successfully configure the LTP for arm cross-compiling.
> But I found even if I enable posix-testsuites with below configs:
> ./configure AR=arm-buildroot-linux-gnueabi-ar
> CC=arm-buildroot-linux-gnueabi-gcc
> RANLIB=arm-buildroot-linux-gnueabi-ranlib
> STRIP=arm-buildroot-linux-gnueabi-strip --host=arm-linux
> --target=arm-buildroot-linux LDFLAGS=-pthread
> --with-open-posix-testsuite
> 
> the test binary located in testcases/open_posix_testsuite/conformance/
> are sill for X86, Not for the host, arm, I configure.
> 
> Is there anything I need to take care for cross compiling
> --with-open-posix-testsuite?
> or --with-open-posix-testsuite so far not support cross compile ?
> 
> appreciate your kind help in advance,

The build system for Open Posix Testsuite is not integrated with the
rest of the build system. But it shouldn't need anything more than
setting up right compiler:

$ export CC=arm-buildroot-linux-gnueabi-gcc
$ make

-- 
Cyril Hrubis
chrubis@suse.cz


More information about the Ltp mailing list