linux-test-project / ltp

Linux Test Project (mailing list: https://lists.linux.it/listinfo/ltp)
https://linux-test-project.readthedocs.io/
GNU General Public License v2.0
2.28k stars 999 forks source link

how to build the ltp based on android 7 and kernel 4.9? #1031

Closed augustine829 closed 1 year ago

augustine829 commented 1 year ago

Hi all, I want to run the LTP on imx7d android 7 filesystem, but I can not build it. Do you know what's the version of ltp for android 7 filesystem? how to build it?

pevik commented 1 year ago

Please use AOSP fork: https://android.googlesource.com/platform/external/ltp/ (mentioned in our wiki: https://github.com/linux-test-project/ltp/wiki/Supported-kernel,-libc,-toolchain-versions#14-supported-libc)

augustine829 commented 1 year ago

Hi, I based on kernel 4.9, and android 7.1 Can it be working now?

augustine829 commented 1 year ago

can you give me more information about the link of AOSP? I can not find it, thanks so much

Avinesh commented 1 year ago

Probably Edward ( @edliaw ) can help with this.

pevik commented 1 year ago

Frankly speaking, Android 7 is so old that even https://lineageos.org/ does not support it. Thus I don't expect AOSP community would do anything about it. @augustine829 LTP started to be supported in Android 8 (https://android.googlesource.com/platform/external/ltp/+/refs/tags/android-8.1.0_r80) you'll have to port it to Android 7 (AOSP often changed the build system, if you're lucky, just copy this directory will work). Obviously you need to download whole AOSP (120 GB) and build several dependencies in order to build LTP. Read https://source.android.com/docs/setup/build/building.

I used to try to support LTP on NDK (https://developer.android.com/ndk/guides/other_build_systems), which would allow just to compile it without huge AOSP, but that's much harder.

augustine829 commented 1 year ago

@pevik Thank you very much for your information. That's to say if I want to run LTP for test Android filesystem. At least I need to use the above of Android 8, right?