[yocto] [meta-raspberrypi][PATCH] linux-raspberrypi-base.bbclass: allow -rt kernels

Khem Raj raj.khem at gmail.com
Mon Nov 28 15:16:11 PST 2016


> On Nov 28, 2016, at 11:07 AM, Trevor Woerner <twoerner at gmail.com> wrote:
> 
> If the PREEMPT_RT patch is applied, the kernel version becomes, say,
> 4.4.32-rt43 (instead of 4.4.32). This confuses the version handling code in
> this class. Update how the version string is processed so that trailing rt-
> strings are properly handled, in addition to handling the existing cases.
> 

This probably will solve the issue I see with 4.9-rcX recipes that are in my tree on kraj/master

> Signed-off-by: Trevor Woerner <twoerner at gmail.com>
> ---
> classes/linux-raspberrypi-base.bbclass | 2 +-
> 1 file changed, 1 insertion(+), 1 deletion(-)
> 
> diff --git a/classes/linux-raspberrypi-base.bbclass b/classes/linux-raspberrypi-base.bbclass
> index 3a6e33d..fecac30 100644
> --- a/classes/linux-raspberrypi-base.bbclass
> +++ b/classes/linux-raspberrypi-base.bbclass
> @@ -15,7 +15,7 @@ def get_dts(d, ver=None):
>         ver = get_kernelversion_file(staging_dir)
> 
>     if ver is not None:
> -        min_ver = ver.split('.', 3)
> +        min_ver = re.split(r'[.-]+', ver, maxsplit=3)
>     else:
>         return dts
> 
> -- 
> 2.10.2
> 
> -- 
> _______________________________________________
> yocto mailing list
> yocto at yoctoproject.org
> https://lists.yoctoproject.org/listinfo/yocto




More information about the yocto mailing list