apolloincn 发表于 2007-4-23 22:54:02

编译 hello 模块的问题 急!

编译后出现如下问题:

# make
make -C /usr/src/linux-2.6.17.13 M=/home modules
make: Entering directory `/usr/src/linux-2.6.17.13'
scripts/Makefile.build:17: /home/Makefile: 没有那个文件或目录
make: *** 没有规则可以创建目标“/home/Makefile”。 停止。
make: *** 错误 2
make: Leaving directory `/usr/src/linux-2.6.17.13'
make: *** 错误 2

makefile 文件:

TARGET = hello
KDIR = /lib/modules/$(shell uname -r)/build
PWD = $(shell pwd)
obj-m :=$(TARGET).o
default:
      make -C $(KDIR) M=$(PWD) modules

耗了一天了,
请指教,谢谢。
页: [1]
查看完整版本: 编译 hello 模块的问题 急!