zebulon2 / rtl8812au

RTL8812AU/21AU Driver for Linux
82 stars 23 forks source link

DKMS make uses previous kernel src directory #22

Open minsonj2016 opened 5 years ago

minsonj2016 commented 5 years ago

This is on Fedora 29 When updating to a new kernel the dlkms make specifies the previous kernel src

DKMS make.log for rtl8812au-5.1.5 for kernel 4.20.10-200.fc29.x86_64 (x86_64) Thu Feb 21 07:43:38 EST 2019 make ARCH=x86_64 CROSS_COMPILE= -C /lib/modules/4.20.8-200.fc29.x86_64/build M=/var/lib/dkms/rtl8812au/5.1.5/build modules make[1]: Entering directory '/usr/src/kernels/4.20.8-200.fc29.x86_64'

This results in

modprobe 8812au modprobe: ERROR: could not insert '8812au': Exec format error

If I perform the dkms uninstall/install again it works

minsonj2016 commented 5 years ago

The "KVER := $(shell uname -a)" in the i386 Makefile causes this to happen (I think , havent had a kernel update since I removed it)

minsonj2016 commented 5 years ago

sorry thats "in the i386 section of the Makefile"

minsonj2016 commented 5 years ago

'uname' is overriding dkms supplied $kernelver