This page has a better elf solution. I'm using it. We build the kernel on Mac OS.
Steve http://plattanimattan.blogspot.com/2010/04/cross-compiling-linux-on-mac-osx.html On Jan 24, 2011, at 12:50 AM, A Curtis wrote: >>> Is there any place where one can find an up-to-date how-to kernel >>> compilation? Lacking documentation is an understatement. >> >> What? Have you read the documentation provided? What is wrong with >> it? The kernel comes with TONS of free documentation, and there are >> free books (look for Linux Kernel in a Nutshell which details how to build >> a kernel, it is free online.) >> >>> I would be >>> particularly interested in compiling the kernel on MAC OS snow >>> leopard... which is not supported according the the wiki, but actually >>> supported... >> >> No, that's not supported at all, sorry. Use a Linux machine to build >> the kernel, that's the only way. > > > I believe I just worked through this problem. > > 1. Follow the instructions in NDK-5 to setup a stand-alone compiler > > 2. Get a copy of elf.h from Linux and copy it to /usr/include > > 3. Comment out #include <features.h> in elf.h > > Now follow the normal Linux build procedure of setting ARCH, > CROSS_COMPILE and kernel configuration. > > -- > unsubscribe: android-kernel+unsubscr...@googlegroups.com > website: http://groups.google.com/group/android-kernel > -- Steve Modica CTO - Small Tree Communications www.small-tree.com phone: 651-209-6509 ext 301 mobile: 651-261-3201 -- unsubscribe: android-kernel+unsubscr...@googlegroups.com website: http://groups.google.com/group/android-kernel