Open Jibun-no-Kage opened 2 years ago
OK, i will add dkms support.
That is really cool. Thanks for doing it.
Thank you for your wonderful idea!
Sure, I just noticed that a few other drivers I use for WiFi USB adapters/dongles on Github, implemented DKMS, and wondered why you project did not, so figured I ask. :)
Just for your consideration (this example assumes x86/x86_64):
# cd /root # git clone https://github.com/ivanovborislav/rtl8188eu.git # cd rtl8188eu
# nano dkms.conf PACKAGE_NAME="rtl8188eu" PACKAGE_VERSION="5.13.3" MAKE[0]="'make' -j$(nproc) KVER=${kernelver} KSRC=/lib/modules/${kernelver}/build" CLEAN="'make' clean" BUILT_MODULE_NAME[0]="8188eu" DEST_MODULE_LOCATION[0]="/kernel/drivers/net/wireless" AUTOINSTALL="yes"
# mkdir -p /usr/src/rtl8188eu-5.13.3/ # cp -ar /root/rtl8188eu/* /usr/src/rtl8188eu-5.13.3/ # dkms add -m rtl8188eu -v 5.13.3 # dkms build -m rtl8188eu -v 5.13.3 # dkms install -m rtl8188eu -v 5.13.3 # dkms status
# dkms status rtl8188eu, 5.13.3, 5.10.0-19-686-pae, i686: installed
# dkms status rtl8188eu, 5.13.3, 5.10.0-19-amd64, x86_64: installed
Of course for Pi would need to change Makefile. But the same basic steps should work. By the way, I have seen a couple of Makefiles that figure out the architecture, so you don't have to do the Pi specific tweaks of the Makefile.
Would not be to hard to create a install-driver and remove-driver scripts. If your are open to a PR?