summaryrefslogtreecommitdiffstats
path: root/meta-networking/recipes-connectivity
diff options
context:
space:
mode:
authorKrzysztof Kozlowski <krzk@kernel.org>2018-07-05 20:58:11 +0200
committerKhem Raj <raj.khem@gmail.com>2018-07-05 17:51:16 -0700
commit20e3c3e2e435526c3666cf0bf6a1d06266337174 (patch)
treecd2d48d563e5fc1d74cb04f3771e5f59bfe96da3 /meta-networking/recipes-connectivity
parente5b51141774fca3eb810421e6da091880695306a (diff)
downloadmeta-openembedded-20e3c3e2e435526c3666cf0bf6a1d06266337174.tar.gz
wireless-regdb: Add wireless-regdb-static package with static regulatory data
Small embedded systems might: 1. Want to get rid of daemons as much as possible (therefore be built without CRDA), 2. Not receive user-space incremental updates but an entire system upgrade (with kernel). Linux kernel since v4.15 allows loading static regulatory data from /lib/firmware/regulatory.db. Add additional package to wireless-regdb recipe which provides such static data. Signed-off-by: Krzysztof Kozlowski <krzk@kernel.org> Signed-off-by: Khem Raj <raj.khem@gmail.com>
Diffstat (limited to 'meta-networking/recipes-connectivity')
-rw-r--r--meta-networking/recipes-connectivity/wireless-regdb/wireless-regdb_2018.05.31.bb13
1 files changed, 13 insertions, 0 deletions
diff --git a/meta-networking/recipes-connectivity/wireless-regdb/wireless-regdb_2018.05.31.bb b/meta-networking/recipes-connectivity/wireless-regdb/wireless-regdb_2018.05.31.bb
index 8bb866ff1..2ae9e8542 100644
--- a/meta-networking/recipes-connectivity/wireless-regdb/wireless-regdb_2018.05.31.bb
+++ b/meta-networking/recipes-connectivity/wireless-regdb/wireless-regdb_2018.05.31.bb
@@ -15,6 +15,19 @@ do_install() {
15 install -d -m0755 ${D}${sysconfdir}/wireless-regdb/pubkeys 15 install -d -m0755 ${D}${sysconfdir}/wireless-regdb/pubkeys
16 install -m 0644 regulatory.bin ${D}${libdir}/crda/regulatory.bin 16 install -m 0644 regulatory.bin ${D}${libdir}/crda/regulatory.bin
17 install -m 0644 sforshee.key.pub.pem ${D}${sysconfdir}/wireless-regdb/pubkeys/sforshee.key.pub.pem 17 install -m 0644 sforshee.key.pub.pem ${D}${sysconfdir}/wireless-regdb/pubkeys/sforshee.key.pub.pem
18
19 install -m 0644 -D regulatory.db ${D}${nonarch_base_libdir}/firmware/regulatory.db
20 install -m 0644 regulatory.db.p7s ${D}${nonarch_base_libdir}/firmware/regulatory.db.p7s
18} 21}
19 22
23# Install static regulatory DB in /lib/firmware for kernel to load.
24# This requires Linux kernel >= v4.15.
25PACKAGES =+ "${PN}-static"
26RCONFLICTS_${PN} = "${PN}-static"
27
28FILES_${PN}-static = " \
29 ${nonarch_base_libdir}/firmware/regulatory.db \
30 ${nonarch_base_libdir}/firmware/regulatory.db.p7s \
31"
32
20RSUGGESTS_${PN} = "crda" 33RSUGGESTS_${PN} = "crda"