rtl8188eu: Fix Makefile to create directory for module

If a kernel is being used that generates no drivers in the
/lib/modules/$(KVER)/kernel/drivers/net/wireless directory, the installation
will fail. The fix is to generate that directory if it is not present.

Signed-off-by: Larry Finger <Larry.Finger@lwfinger.net>
This commit is contained in:
Larry Finger 2022-01-10 13:01:21 -06:00
parent 0572d04e67
commit 9f723a04cb

View file

@ -158,6 +158,7 @@ strip:
$(CROSS_COMPILE)strip 8188eu.ko --strip-unneeded
install:
@mkdir -p $(MODDESTDIR)
install -p -m 644 8188eu.ko $(MODDESTDIR)
@if [ -a /lib/modules/$(KVER)/kernel/drivers/staging/rtl8188eu/r8188eu.ko ] ; then modprobe -r r8188eu; fi;
@echo "blacklist r8188eu" > /etc/modprobe.d/50-8188eu.conf