Browse Source

package/rtl8821cu: copy modprobe.d config to target

The rtl8821cu repository comes with a 8821cu.conf file intended to be installed
in /etc/modprobe.d - the configuration file enables some driver features.

Install the /etc/modprobe.d/8821cu.conf file to the target.

Signed-off-by: Christian Stewart <christian@paral.in>
Signed-off-by: Thomas Petazzoni <thomas.petazzoni@bootlin.com>
Christian Stewart 2 years ago
parent
commit
5d615c17ee
1 changed files with 6 additions and 0 deletions
  1. 6 0
      package/rtl8821cu/rtl8821cu.mk

+ 6 - 0
package/rtl8821cu/rtl8821cu.mk

@@ -29,5 +29,11 @@ RTL8821CU_MODULE_MAKE_OPTS = \
 	KVER=$(LINUX_VERSION_PROBED) \
 	USER_EXTRA_CFLAGS="$(RTL8821CU_USER_EXTRA_CFLAGS)"
 
+define RTL8821CU_INSTALL_MODPROBE_CONF
+	$(INSTALL) -m 0644 -D $(@D)/8821cu.conf \
+		$(TARGET_DIR)/etc/modprobe.d/8821cu.conf
+endef
+RTL8821CU_POST_INSTALL_TARGET_HOOKS += RTL8821CU_INSTALL_MODPROBE_CONF
+
 $(eval $(kernel-module))
 $(eval $(generic-package))