I've been working on getting this to compile on Linux (Ubuntu) since macOS seems to present issues. Couple of issues that would be nice to get a comment on...
The CMake script is looking for the /cache directory to move files to/from in the compilation process. This is an issue since the script continues after 'wait-for-device' completes, but doesn't wait for boot to complete. The filesystem at this point is read-only not read-write so the 'magic' of the script is failing and I'm attempting to debug it and come up with a plan of action.
I'll probably need remount the filesystem since I assume Android always boots with rootfs as read-only,
adb shell mount -o rw,remount rootfs
, but this seems a major oversight and makes me wonder if I'm missing something or if the script doesn't reflect recent changes in the Android SDK tools. Another tack would be to use the /sdcard, but again I believe this will need to be fully booted before attempting to upload files.
Does anyone actually have this working? Maybe provide some detail as to the environment in which cross-compile is successful?