<div dir="ltr">since rob asked on some other thread earlier this week...<div><br></div><div>NDK r15beta2 should hopefully ship in time for I/O in a couple of weeks, so i had a quick go at building toybox out of the box with the latest bits...</div><div><br></div><div>$ ./android-ndk-r15-beta2/build/tools/make_standalone_toolchain.py --unified-headers --arch arm64 --api 24 --install-dir /tmp/n-standalone-toolchain<br></div><div><div>$ git clone <a href="https://github.com/landley/toybox.git">https://github.com/landley/toybox.git</a></div><div>$ cd toybox</div><div>$ CC=clang CROSS_COMPILE=/tmp/n-standalone-toolchain/bin/aarch64-linux-android- make defconfig<br></div><div>$ CC=clang CROSS_COMPILE=/tmp/n-standalone-toolchain/bin/aarch64-linux-android- make<br></div><div><br></div><div>i've attached one patch to make mkpasswd not part of the "defconfig" for Android, since (a) we don't have passwd and (b) we don't have crypt(3). so it wouldn't be any use and you can't build it anyway.</div><div><br></div><div>i've attached another patch to add liblog to the list of probed libraries so that toybox actually links okay.</div><div><br></div><div>with that there's only one problem left (ignoring compiler warnings, and the fact that selinux and boringssl aren't part of the NDK so you'll be without working versions of any of the selinux stuff or fast versions of the hash stuff) --- there is no public API for the <cutils/sched_policy.h>, so that still won't build out of the box.</div><div><br></div><div>(this was a useful exercise because it showed that <scsi/sg.h> was still missing from the NDK, so that bug should finally be fixed for real this time.)</div><div><br></div>-- <br><div class="gmail_signature">Elliott Hughes - <a href="http://who/enh" target="_blank">http://who/enh</a> - <a href="http://jessies.org/~enh/" target="_blank">http://jessies.org/~enh/</a><br>Android native code/tools questions? Mail me/drop by/add me as a reviewer.</div>
</div></div>