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>
This commit is contained in:
Krzysztof Kozlowski 2018-07-05 20:58:11 +02:00 committed by Khem Raj
parent e5b5114177
commit 20e3c3e2e4

View File

@ -15,6 +15,19 @@ do_install() {
install -d -m0755 ${D}${sysconfdir}/wireless-regdb/pubkeys
install -m 0644 regulatory.bin ${D}${libdir}/crda/regulatory.bin
install -m 0644 sforshee.key.pub.pem ${D}${sysconfdir}/wireless-regdb/pubkeys/sforshee.key.pub.pem
install -m 0644 -D regulatory.db ${D}${nonarch_base_libdir}/firmware/regulatory.db
install -m 0644 regulatory.db.p7s ${D}${nonarch_base_libdir}/firmware/regulatory.db.p7s
}
# Install static regulatory DB in /lib/firmware for kernel to load.
# This requires Linux kernel >= v4.15.
PACKAGES =+ "${PN}-static"
RCONFLICTS_${PN} = "${PN}-static"
FILES_${PN}-static = " \
${nonarch_base_libdir}/firmware/regulatory.db \
${nonarch_base_libdir}/firmware/regulatory.db.p7s \
"
RSUGGESTS_${PN} = "crda"