Open zzidun opened 2 years ago
@zzidun change awusb/Makefile file, and replace SUBDIRS with M, then run make.
sudo make出现了同样的问题:
Makefile文件:
obj-m += code1.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
sudo make报错:
make -C /lib/modules/6.5.0-25-generic/build M= modules make[1]: 进入目录“/usr/src/linux-headers-6.5.0-25-generic” make[3]: *** 没有规则可制作目标“arch/x86/entry/syscalls/syscall_32.tbl”,由“arch/x86/include/generated/uapi/asm/unistd_32.h” 需求。 停止。 make[2]: *** [arch/x86/Makefile:248:archheaders] 错误 2 make[1]: *** [Makefile:234:__sub-make] 错误 2 make[1]: 离开目录“/usr/src/linux-headers-6.5.0-25-generic” make: *** [Makefile:3:all] 错误 2
ubuntu20.04,在
awusb
执行sudo make
报错