tags:

views:

7

answers:

0

I'm trying to set up a cross-compile toolchain so that I can compile C code and run it on my device. I am trying to do this without having to download the entire Android source tree and wait hours for it to compile. (However, in the time I have spent trying to solve this problem it would probably have finished downloading and building three times over.)

I'm using Andrew Ross's agcc script as a guide, as it tells me which header files, etc. I need.

I cloned the prebuilt project and grabbed gcc for my platform (darwin-x86) successfully. I also grabbed all of the projects referenced by agcc (for header files, etc.).

However, I'm stuck because it requires files from:

/out/target/product/generic/obj/include /out/target/product/generic/obj/SHARED_LIBRARIES/libm_intermediates

For the first one, these should just be header files which I can grab without having to build anything, but I'm not sure which header files are copied to that directory.

The second is trickier. I need to compile the actual bionic library to link against. Can I build that, and nothing else, through some make target?