[OE-core] [meta-networking][rocko][PATCH 1/2] kernel_wireless_regdb: Add class for embedding regulatory data into the kernel

Krzysztof Kozlowski krzk at kernel.org
Wed Apr 25 13:51:24 UTC 2018


On Wed, Apr 25, 2018 at 3:47 PM, Krzysztof Kozlowski <krzk at kernel.org> 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).
>
> Add class kernel_wireless_regdb which allows in such cases to embed the
> wireless regulatory database directly in the Linux kernel during build
> process.
>
> Signed-off-by: Krzysztof Kozlowski <krzk at kernel.org>
> ---
>  meta-networking/classes/kernel_wireless_regdb.bbclass        | 12 ++++++++++++
>  .../wireless-regdb/wireless-regdb_2016.06.10.bb              |  8 ++++++++
>  2 files changed, 20 insertions(+)
>  create mode 100644 meta-networking/classes/kernel_wireless_regdb.bbclass
>
> diff --git a/meta-networking/classes/kernel_wireless_regdb.bbclass b/meta-networking/classes/kernel_wireless_regdb.bbclass
> new file mode 100644
> index 000000000000..6ae90d2d088c
> --- /dev/null
> +++ b/meta-networking/classes/kernel_wireless_regdb.bbclass
> @@ -0,0 +1,12 @@
> +# Copies the regulatory plaintext database to kernel sources before compiling.
> +# Linux kernel must be compiled with CONFIG_CFG80211_INTERNAL_REGDB to use it.
> +
> +DEPENDS += "wireless-regdb-native"
> +
> +SRCTREECOVEREDTASKS += "do_kernel_add_regdb"
> +do_kernel_add_regdb() {
> +    cp ${STAGING_LIBDIR_NATIVE}/crda/db.txt ${S}/net/wireless/db.txt
> +    echo ${S}

Ah, some debugging code slipped in. I'll send v2.

Best regards,
Krzysztof



More information about the Openembedded-core mailing list