i would like to compile android lkm. my compile environment is windows. i saw many other tips for compile in linux, but no tips for windows. how could i set android.mk files ?
KERNELDIR = /lib/modules/$(shell uname -r)/build
obj-m := sample.o
KDIR := /lib/modules/$(shell uname -r)/build
PWD := $(shell pwd)
default:
$(MAKE) -C $(KDIR) SUBDIRS=$(PWD) modules
clean:
rm -rf *.ko
rm -rf *.mod.*
rm -rf .*.cmd
rm -rf *.o
rm -rf .tmp_versions
In order to compile LKM, you need:
in a VirtualBox)
with your target ROM or else later on you will have problem with
Version Magic). In my case, I got HTC Nexus one with CyanogenMod
7.2, so my kernel is 2.6.37.6-cyanogenmod
You can check my previous question here
Unable to compile LKM for Android
I provided steps and procedures to compile the LKM