我试图编译一个" Hello Word"使用Raspberry Pi2的内核模块。我安装了rpi-source。
这是我正在使用的Makefile:
obj-m += hello.o
all:
make -C /lib/modules/$(shell uname -r)/build M=$(PWD) modules
clean:
make -C /lib/modules/$(shell uname -r)/build M=$(PWD) clean
但我没有收到hello.ko文件。这是我的结果:
make -C /lib/modules/4.4.7-v7+/build M= modules
make[1]: Entering directory '/home/pi/linux-cd560b8658868d9652ab31754e02f86daf6831ba'
CHK include/config/kernel.release
CHK include/generated/uapi/linux/version.h
CHK include/generated/utsrelease.h
make[2]: 'include/generated/mach-types.h' is up to date.
CHK include/generated/bounds.h
CHK include/generated/timeconst.h
CHK include/generated/asm-offsets.h
CALL scripts/checksyscalls.sh
CHK kernel/config_data.h
Building modules, stage 2.
MODPOST 1471 modules
make[1]: Leaving directory '/home/pi/linux-cd560b8658868d9652ab31754e02f86daf6831ba
你能帮助我吗?