[oe] [meta-networking][PATCH v4 2/3] wireless-regdb: Add wireless-regdb-static package with static regulatory data

Khem Raj raj.khem at gmail.com
Thu Jul 5 17:03:44 UTC 2018


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 <krzk at kernel.org>
> ---
>  .../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 ?


-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 195 bytes
Desc: OpenPGP digital signature
URL: <http://lists.openembedded.org/pipermail/openembedded-devel/attachments/20180705/6521292e/attachment-0002.sig>


More information about the Openembedded-devel mailing list