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
@@ -1067,7 +1067,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
@@ -1905,6 +1905,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