mirror of
https://github.com/openembedded/meta-openembedded.git
synced 2026-06-02 13:59:59 +00:00
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:
committed by
Khem Raj
parent
e5b5114177
commit
20e3c3e2e4
@@ -15,6 +15,19 @@ do_install() {
|
|||||||
install -d -m0755 ${D}${sysconfdir}/wireless-regdb/pubkeys
|
install -d -m0755 ${D}${sysconfdir}/wireless-regdb/pubkeys
|
||||||
install -m 0644 regulatory.bin ${D}${libdir}/crda/regulatory.bin
|
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 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"
|
RSUGGESTS_${PN} = "crda"
|
||||||
|
|||||||
Reference in New Issue
Block a user