]> Git Repo - buildroot-mgba.git/commitdiff
package/rtl8821cu: copy modprobe.d config to target
authorChristian Stewart <[email protected]>
Wed, 22 Mar 2023 10:50:46 +0000 (03:50 -0700)
committerThomas Petazzoni <[email protected]>
Sat, 29 Jul 2023 22:12:18 +0000 (00:12 +0200)
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 <[email protected]>
Signed-off-by: Thomas Petazzoni <[email protected]>
package/rtl8821cu/rtl8821cu.mk

index 2a42a0f28ec4a586fbdc9c209b51d7d39e131891..5b21b0440471f93d4ebc0f34b05c3424b4becdd5 100644 (file)
@@ -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))
This page took 0.041559 seconds and 4 git commands to generate.