DHowett / framework-laptop-kmod

Kernel module to expose more Framework Laptop stuff
Other
75 stars 11 forks source link

On Fedora 40, AMD Ryzen 5 Framework Laptop 13, make fails #20

Open adhi-thirumala opened 1 month ago

adhi-thirumala commented 1 month ago

whenever I run make, i get the error

adhitthirumala@fedora:~/framework-laptop-kmod$ make make -C /lib/modules/uname -r/build M=$PWD modules make[1]: Entering directory '/home/adhitthirumala/framework-laptop-kmod' make[1]: *** /lib/modules/6.8.5-301.fc40.x86_64/build: No such file or directory. Stop. make[1]: Leaving directory '/home/adhitthirumala/framework-laptop-kmod' make: *** [Makefile:12: modules] Error 2 adhitthirumala@fedora:~/framework-laptop-kmod$

How do I fix this? I'm trying to install this so I can use battery health management software.

adhi-thirumala commented 1 month ago

there are backticks around uname-r, but markdown doesn't show it as such.

DHowett commented 6 days ago

It looks like you do not have the kbuild toolkit installed, or the makefile does not know how to find it. If you know where you've installed it, can you try to run make KDIR=/path/to/kernel/build/tree?

adhi-thirumala commented 3 days ago

thanks it works now