Build android fixes
Get series with b4
b4 am 20190205012252.GA11738@dell5510Versions newest first
- v1 Latest0 of 3 patches 0 repliesNew
Patches in v1 No applies recorded yet
None of the 3 patches the cover letter announces are in this archive.
Reviews trailers per patch
No Reviewed-by, Acked-by or Tested-by trailers for v1 yet.
Cover letter [LTP] [PATCH 0/3] Build android fixes
Hi Sandeep,
Quoted 10 lines
Quoted 6 lines
Quoted 2 lines
How did you come across these issues? We have yet to see them. Did you merge tip of LTP into an Android AOSP tree and build it that way?
Any sane person who wants to tests Android kernel uses LTP build inside of AOSP to get all your custom (not yet upstreamed) fixes, skip non relevant test etc. But I don't want to store whole AOSP on my disc, so I tried to cross compile upstream LTP with android standalone toolchain (with make ANDROID=1).
That is correct and I really want to be able to do the same. Admittedly the current AOSP LTP build is "meant for the harness it normally runs under". It really should not be the case and we'd love for AOSP LTP to build standalone.
Great :). I see your bionic-compat.h can handle some errors (e.g. missing getdtablesize(void)). Since we have already some support, this could be probably merged (assuming Cyril is not against).
That layer allows you to build more tests than it's currently allowed in our Makefiles (we filter quite a lot syscalls).
Quoted 5 lines
I think I asked about the "make ANDROID" option a while ago and my understanding was that its building LTP against the Android NDK. Steve, may be this is the path we go? I do remember however that with that build, the number of tests that we can build against Android was far less than what we do right now (haven't tried in a while though).
I do build with configure --host triplet add --with-sysroot and SYSROOT
+ add -I and -L flags to sysroot dirs to CFLAGS and LDFLAGS.
But this way autoconf does detect wrongly some options (at least HAVE_PREADV and HAVE_PWRITEV).
BTW which compiler option allows you to ignore missing <string.h> and <strings.h> ?
Quoted 1 line
Also, FWIW, there are almost zero non-upstream tests in AOSP LTP.
Great!
Quoted 5 lines
I can only
think of one test suite but that is just very *android specific* and still being worked on.- ssp
Kind regards,
Petr