klogg / fl2000_drm

Linux kernel FL2000DX/IT66121FN dongle DRM driver
GNU General Public License v2.0
113 stars 30 forks source link

Compile issue - "No rule to make target" #51

Open andrewcapybara opened 2 years ago

andrewcapybara commented 2 years ago

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?

juanmoura commented 2 years ago

same error here

shanez1215 commented 2 years ago

I was able to fix this by opening makefile and replacing all instances of M=$(PWD) with M=$(shell pwd)

joelnoliveira commented 1 year ago

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?

abysslover commented 7 months ago

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.