Ralf, have you solved this? It's quite interesting for me to look on solution.
On Apr 5, 5:40 pm, "ubiq...@googlemail.com" <ackerm...@ubiqkom.org> wrote: > Hello, > > I'm trying to compile the uinput module for the G1 kernel and > have some questions doing so. > > My starting situation is: > - I've built the Android SDK => toolchain and I'm able to compile > and use standard > (non-kernel) binaries > - I see the kernel source tree in the SDK toolchain - and I also > have a .config file > (retrieved from /proc/config.gz of a running phone) > > Nevertheless: > 1. I'm unsure (my attempt failed) how to compile the kernel - I > tried > === > make CROSS_COMPILE=/Volumes/mydroid/prebuilt/darwin-x86/ > toolchain/arm-eabi-4.2.1/bin/arm-eabi- ARCH=arm > > fails with (I put .config at the source tree and made a make > oldconfig / make menuconfig before) > > CHK include/linux/version.h > make[1]: `include/asm-arm/mach-types.h' is up to date. > CHK include/linux/utsrelease.h > CALL scripts/checksyscalls.sh > sed: 4: "/^\#define/ { s/[^_]*__ ...": bad flag in substitute command: > '}' > HOSTCC scripts/genksyms/parse.o > scripts/genksyms/parse.y:27:20: error: malloc.h: No such file or > directory > make[2]: *** [scripts/genksyms/parse.o] Error 1 > make[1]: *** [scripts/genksyms] Error 2 > make: *** [scripts] Error 2 > === > 2. I would like to be able to compile modules outside the kernel > source tree (I used > to do this for driver development in native Linux environments > on various > architectures - e.g with a Makefile like this > === > ifneq ($(KERNELRELEASE),) > obj-m := example.o > > else > KDIR := /lib/modules/$(shell uname -r)/build > PWD := $(shell pwd) > > default: > $(MAKE) -C $(KDIR) SUBDIRS=$(PWD) modules > endif > === > > My questions: > - Can somebody give me a hint on the kernel / module cross-compile > process > in general? > - A specific hint on compiling modules outside the kernel (after > adapting KDIR in the > Makefile I was able to compile example.o in the 1st compilation > step - I fail then though, > when the modpost tool (built as part of the standard kernel > compilation process) is needed > - In case you succeeded - can you please tell me about your compile > environment - I work > on OSX / but might go to a Linux system - in case this influences > the build process - because > host tools for a i386 kernel build might be used at certain steps > > Many thanks for your help and best regards > Ralf --~--~---------~--~----~------------~-------~--~----~ unsubscribe: android-kernel+unsubscr...@googlegroups.com website: http://groups.google.com/group/android-kernel -~----------~----~----~----~------~----~------~--~---