* [Buildroot] [PATCH 1/1] package/rtl8821cu: copy modprobe.d config to target
@ 2023-03-22 10:50 Christian Stewart via buildroot
2023-07-29 22:12 ` Thomas Petazzoni via buildroot
0 siblings, 1 reply; 2+ messages in thread
From: Christian Stewart via buildroot @ 2023-03-22 10:50 UTC (permalink / raw)
To: buildroot
Cc: Giulio Benetti, Christian Stewart, Yann E . MORIN,
Thomas Petazzoni
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>
---
package/rtl8821cu/rtl8821cu.mk | 6 ++++++
1 file changed, 6 insertions(+)
diff --git a/package/rtl8821cu/rtl8821cu.mk b/package/rtl8821cu/rtl8821cu.mk
index 5a93376c20..4e35d15f28 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))
--
2.40.0
_______________________________________________
buildroot mailing list
buildroot@buildroot.org
https://lists.buildroot.org/mailman/listinfo/buildroot
^ permalink raw reply related [flat|nested] 2+ messages in thread
end of thread, other threads:[~2023-07-29 22:13 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2023-03-22 10:50 [Buildroot] [PATCH 1/1] package/rtl8821cu: copy modprobe.d config to target Christian Stewart via buildroot
2023-07-29 22:12 ` Thomas Petazzoni via buildroot
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox