File fix_build_system.patch of Package rtl8821ce

diff -Naru rtl8821ce.o/Makefile rtl8821ce/Makefile
--- rtl8821ce.o/Makefile	2018-01-06 22:46:32.790424775 +0100
+++ rtl8821ce/Makefile	2018-01-06 22:53:52.278976320 +0100
@@ -1218,7 +1218,7 @@
 CROSS_COMPILE ?=
 KVER  := $(shell uname -r)
 KSRC := /lib/modules/$(KVER)/build
-MODDESTDIR := /lib/modules/$(KVER)/kernel/drivers/net/wireless/
+MODDESTDIR := $(INSTALL_MOD_PATH)/lib/modules/$(KVER)/$(INSTALL_MOD_DIR)
 INSTALL_PREFIX :=
 STAGINGMODDIR := /lib/modules/$(KVER)/kernel/drivers/staging
 endif
@@ -2245,6 +2245,7 @@
 	$(CROSS_COMPILE)strip $(MODULE_NAME).ko --strip-unneeded
 
 install:
+	install -d $(MODDESTDIR)
 	install -p -m 644 $(MODULE_NAME).ko  $(MODDESTDIR)
 	/sbin/depmod -a ${KVER}
 
openSUSE Build Service is sponsored by