On Sep 24, 2:45 pm, Tim Bird <[email protected]> wrote: >On 09/23/2010 07:42 PM, Adam wrote: > > How can I compile a small program, that uses __NR_helloworld, using > > cross compiler against the new kernel image that i created ? > > arm-none-linux-gnueabi-gcc -static -o hello hello.c is giving > > compilation error :(
> I think your problem is that the compiler is not picking up > the new include/asm-generic/unistd.h Indeed - and it shouldn't. The compiler has its own tree of kernel include headers generated from the ones in the kernel tree. It shouldn't go browsing through the kernel sources, for reasons of both licensing and api stability. You would need to either regenerate the compiler's exported linux headers, or just manually make the change there too. I believe the compiler's copies would be in NDKROOT/build/platforms/ android-WHATEVER/arch-arm/usr/include -- unsubscribe: [email protected] website: http://groups.google.com/group/android-kernel
