当我尝试通过以下方式安装驱动程序时sudo make
出现以下错误:
make -C /lib/modules/3.8.0-31-generic/build M=
make[1]: Entering directory `/usr/src/linux-headers-3.8.0-31-generic'
make[2]: *** No rule to make target `/usr/src/linux-headers-3.8.0-31-generic/arch/x86/syscalls/syscall_32.tbl', needed by `arch/x86/syscalls/../include/generated/uapi/asm/unistd_32.h'. Stop.
make[1]: *** [archheaders] Error 2
make[1]: Leaving directory `/usr/src/linux-headers-3.8.0-31-generic'
make: *** [all] Error 2
这是制作文件:
ifndef KERNELDIR
KERNELDIR := /lib/modules/$(shell uname -r)/build
endif
obj-m := ueagle-atm.o
obj-m += usbatm.o
all:
$(MAKE) -C $(KERNELDIR) M=$(PWD)
debug:
$(MAKE) -C $(KERNELDIR) M=$(PWD) EXTRA_CFLAGS="-DDEBUG"
clean:
$(MAKE) -C $(KERNELDIR) M=$(PWD) clean
install:
$(MAKE) -C $(KERNELDIR) M=$(PWD) modules_install
/sbin/depmod -ae