make module with kernel headers
以zd1211rw為例
cd linux-source/drivers/net/wireless/zd1211rw/
vi Makefile
obj-(CONFIG_NET_ZD1211) -> obj-m =zd1211rw.o
make -C ~/Work/kernel-header-2.6.27-android/ M=pwd CROSS_COMPILE=/path/to/toolchain/bin/arm-eabi- ./zd1211.ko
This post is licensed under CC BY 4.0 by the author.