aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGravatar Christoph Engelbert <me@noctarius.com>2018-07-16 18:13:03 +0300
committerGravatar Peter Korsgaard <peter@korsgaard.com>2018-07-19 23:42:44 +0200
commit6eeb197947b70014d7522de79fefd6b56959387e (patch)
treed4d5aff51f21d8322813b38c8008a0282061e6d6
parent69575d3289a03a3c46c5f17907c305bb8d630d71 (diff)
downloadbuildroot-6eeb197947b70014d7522de79fefd6b56959387e.tar.gz
buildroot-6eeb197947b70014d7522de79fefd6b56959387e.tar.bz2
wireless-regdb: add regulatory.db[.p7s] to /lib/firmware
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@noctarius.com> Signed-off-by: Thomas Petazzoni <thomas.petazzoni@bootlin.com> (cherry picked from commit 39e4b467487084b866c1ae35a3e2f74867ba2404) Signed-off-by: Peter Korsgaard <peter@korsgaard.com>
-rw-r--r--package/wireless-regdb/wireless-regdb.mk4
1 files changed, 4 insertions, 0 deletions
diff --git a/package/wireless-regdb/wireless-regdb.mk b/package/wireless-regdb/wireless-regdb.mk
index 9d7a375461..e3381adefc 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
$(TARGET_DIR)/usr/lib/crda/regulatory.bin
$(INSTALL) -m 644 -D -T $(@D)/sforshee.key.pub.pem \
$(TARGET_DIR)/etc/wireless-regdb/pubkeys/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
endef
$(eval $(generic-package))