fl2000_drm
fl2000_drm copied to clipboard
Compile issue - "No rule to make target"
Sorry, I'm a bit of a noob, so maybe I should know my way out of this. It seems Mr Make can't find his way into a directory:
make[1]: Entering directory '/usr/src/linux-headers-5.15.15-76051515-generic'
make[2]: *** No rule to make target 'arch/x86/entry/syscalls/syscall_32.tbl', needed by 'arch/x86/include/generated/uapi/asm/unistd_32.h'. Stop.
make[1]: *** [arch/x86/Makefile:213: archheaders] Error 2
make[1]: Leaving directory '/usr/src/linux-headers-5.15.15-76051515-generic'
make: *** [Makefile:21: modules] Error 2
Pretty sure I'm in the right directory - just in home/fl2000_drm What do I need to do to continue the compile?
same error here
I was able to fix this by opening makefile and replacing all instances of M=$(PWD) with M=$(shell pwd)
I was able to fix this by opening makefile and replacing all instances of M=$(PWD) with M=$(shell pwd)
Where is that makefile located?
May be /lib/modules/$(uname -r)/build. Although those lines seemed to be removed in Ubuntu 22.04 kernel version 6.5.0. Instead you could try something as follows:
export KBUILD_EXTMOD=$(pwd) before running make.