[Buildroot] [git commit] wireless-regdb: add regulatory.db[.p7s] to /lib/firmware

Thomas Petazzoni thomas.petazzoni at bootlin.com
Wed Jul 18 11:14:50 UTC 2018

commit: https://git.buildroot.net/buildroot/commit/?id=39e4b467487084b866c1ae35a3e2f74867ba2404
branch: https://git.buildroot.net/buildroot/commit/?id=refs/heads/master

Starting from kernel version 4.15, Linux supports loading
regulatory.db and regulatory.db.p7s files directly from /lib/firmware,
without the need of crda. If the kernel can't load those files it'll
fallback to using crda, but the direct way is preferred.

This patch copies those those files under /lib/firmware. The use of
crda shouldn't be necessary with kernels of 4.15 or later.

Signed-off-by: Christoph Engelbert <me at noctarius.com>
Signed-off-by: Thomas Petazzoni <thomas.petazzoni at bootlin.com>
 package/wireless-regdb/wireless-regdb.mk | 4 ++++
 1 file changed, 4 insertions(+)

diff --git a/package/wireless-regdb/wireless-regdb.mk b/package/wireless-regdb/wireless-regdb.mk
index e9283a00e2..829374edcf 100644
--- a/package/wireless-regdb/wireless-regdb.mk
+++ b/package/wireless-regdb/wireless-regdb.mk
@@ -15,6 +15,10 @@ define WIRELESS_REGDB_INSTALL_TARGET_CMDS
 	$(INSTALL) -m 644 -D -T $(@D)/sforshee.key.pub.pem \
+	$(INSTALL) -m 644 -D -T $(@D)/regulatory.db \
+		$(TARGET_DIR)/lib/firmware/regulatory.db
+	$(INSTALL) -m 644 -D -T $(@D)/regulatory.db.p7s \
+		$(TARGET_DIR)/lib/firmware/regulatory.db.p7s
 $(eval $(generic-package))

More information about the buildroot mailing list