[Buildroot] [git commit] package/rtl8821cu: copy modprobe.d config to target
Thomas Petazzoni
thomas.petazzoni at bootlin.com
Sat Jul 29 22:12:18 UTC 2023
commit: https://git.buildroot.net/buildroot/commit/?id=5d615c17eec5dd22aacd86e3c2bf2dca6ed401bb
branch: https://git.buildroot.net/buildroot/commit/?id=refs/heads/master
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 at paral.in>
Signed-off-by: Thomas Petazzoni <thomas.petazzoni at bootlin.com>
---
package/rtl8821cu/rtl8821cu.mk | 6 ++++++
1 file changed, 6 insertions(+)
diff --git a/package/rtl8821cu/rtl8821cu.mk b/package/rtl8821cu/rtl8821cu.mk
index 2a42a0f28e..5b21b04404 100644
--- a/package/rtl8821cu/rtl8821cu.mk
+++ b/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))
More information about the buildroot
mailing list