[poky] [PATCH] kernel-module-split: use license provided by module for kernel-module-*
Frederik Sdun
frederik_sdun at mentor.com
Thu Nov 3 08:50:54 PDT 2016
* Burton, Ross <ross.burton at intel.com> [03.11.2016 15:49]:
> This patch should go to openembedded-core at lists.openembedded.org, not
> poky at . It's also wise to CC Bruce Ashfield to ensure he sees it.
> On 3 November 2016 at 07:25, Frederik Sdun <frederik_sdun at mentor.com>
> wrote:
>
> ---
> meta/classes/kernel-module-split.bbclass | 10 ++++++++++
> 1 file changed, 10 insertions(+)
>
> diff --git a/meta/classes/kernel-module-split.bbclass
> b/meta/classes/kernel-module-split.bbclass
> index 08d2262..8d2aaea 100644
> --- a/meta/classes/kernel-module-split.bbclass
> +++ b/meta/classes/kernel-module-split.bbclass
> @@ -29,6 +29,12 @@ do_install_append() {
> PACKAGESPLITFUNCS_prepend = "split_kernel_module_packages "
>
> KERNEL_MODULES_META_PACKAGE ?= "kernel-modules"
> +KERNEL_MODULE_LICENSE_MAP[GPL] = "GPL-2.0"
> +KERNEL_MODULE_LICENSE_MAP[GPL_v2] = "GPL-2.0"
> +KERNEL_MODULE_LICENSE_MAP[GPL_and_additional_rights] = "GPL-2.0"
> +KERNEL_MODULE_LICENSE_MAP[Dual_BSD_GPL] = "BSD|GPL-2.0"
> +KERNEL_MODULE_LICENSE_MAP[Dual_MIT_GPL] = "MIT|GPL-2.0"
> +KERNEL_MODULE_LICENSE_MAP[Dual_MPL_GPL] = "MPL|GPL-2.0
>
> license.bbclass has some mapping functions already, maybe this should
> extend and use that instead?
> Ross
These are the licenses accepted by the kernel listed in include/linux/module.h so I wanted to keep it in kernel class:
/*
* The following license idents are currently accepted as indicating
* free software modules
*
* "GPL" [GNU Public License v2 or later]
* "GPL v2" [GNU Public License v2]
* "GPL and additional rights" [GNU Public License v2 rights and more]
* "Dual BSD/GPL" [GNU Public License v2 or BSD license choice]
* "Dual MIT/GPL" [GNU Public License v2 or MIT license choice]
* "Dual MPL/GPL" [GNU Public License v2 or Mozilla license choice]
*
* The following other idents are available
*
* "Proprietary" [Non free products]
*
I don't know if we want to support all licenses if the kernel does not.
Regards,
Fred
More information about the poky
mailing list