On 7/5/18 9:55 AM, Krzysztof Kozlowski wrote: > 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 <[email protected]> > --- > .../wireless-regdb/wireless-regdb_2018.05.31.bb | 14 > ++++++++++++++ > 1 file changed, 14 insertions(+) > > 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 8bb866ff1281..d40756ff2bbf 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,20 @@ 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 -d -m0755 ${D}${nonarch_base_libdir}/firmware/
This is not needed if you add -D to both the lines below.
> + install -m 0644 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"
>
Do we still need the rsuggest for crda ?
signature.asc
Description: OpenPGP digital signature
-- _______________________________________________ Openembedded-devel mailing list [email protected] http://lists.openembedded.org/mailman/listinfo/openembedded-devel
