[oe] [meta-oe][PATCH 1/2] kernel-selftest: compatible with latest kernel

Khem Raj raj.khem at gmail.com
Tue Aug 21 08:04:13 UTC 2018


On Tue, Aug 21, 2018 at 12:57 AM Hongzhi, Song
<hongzhi.song at windriver.com> wrote:
>
> Hi Raj,
>
> The bpf updates very frequently.
>
> So we suggest skipping the latest kernel version to avoid potential 0day
> build errors.
>
> And meanwhile we'll keep an eye on latest yocto kernel to update the recipe.
>
>
> How do you think about it?
>

If this recipe will not build for qemu reference machines from OE-core
with reference kernel (4.15.18+gitAUTOINC+d35642f0b6_3373c0cf71-r0)
then this recipe should not be in upstream layers. We need to fix it
or limit it to build where it can build

I am concerned that it will end up broken on many combinations.

>
> --Hongzhi
>
>
>
> On 2018年08月21日 15:26, Khem Raj wrote:
> > this is latest master/qemux86_64 linux-yocto
> > On Mon, Aug 20, 2018 at 10:24 PM Hongzhi, Song
> > <hongzhi.song at windriver.com> wrote:
> >> Hi Raj,
> >>
> >> What is the linux version used by you.
> >>
> >> --Hongzhi
> >>
> >>
> >> On 2018年08月21日 12:02, Khem Raj wrote:
> >>> I am still seeing build failures with musl/x86_64 see
> >>>
> >>> http://errors.yoctoproject.org/Errors/Details/186953/
> >>> On Sun, Aug 19, 2018 at 11:05 PM Hongzhi, Song
> >>> <hongzhi.song at windriver.com> wrote:
> >>>> Thank you very much for your work.
> >>>>
> >>>> --Hongzhi
> >>>>
> >>>>
> >>>> On 2018年08月17日 17:44, Martin Jansa wrote:
> >>>>> see
> >>>>> http://lists.openembedded.org/pipermail/openembedded-devel/2018-August/120021.html
> >>>>>
> >>>>> On Fri, Aug 17, 2018 at 11:37 AM Dengke Du <dengke.du at windriver.com> wrote:
> >>>>>
> >>>>>> From: "Hongzhi.Song" <hongzhi.song at windriver.com>
> >>>>>>
> >>>>>> There are some new program added for bpf. So we make corresponding
> >>>>>> modifications.
> >>>>>>
> >>>>>> Signed-off-by: Hongzhi.Song <hongzhi.song at windriver.com>
> >>>>>> ---
> >>>>>>     meta-oe/recipes-kernel/kernel-selftest/kernel-selftest.bb | 7 ++++---
> >>>>>>     1 file changed, 4 insertions(+), 3 deletions(-)
> >>>>>>
> >>>>>> diff --git a/meta-oe/recipes-kernel/kernel-selftest/kernel-selftest.bb
> >>>>>> b/meta-oe/recipes-kernel/kernel-selftest/kernel-selftest.bb
> >>>>>> index 27d98a3..d5ccace 100644
> >>>>>> --- a/meta-oe/recipes-kernel/kernel-selftest/kernel-selftest.bb
> >>>>>> +++ b/meta-oe/recipes-kernel/kernel-selftest/kernel-selftest.bb
> >>>>>> @@ -79,7 +79,7 @@ do_configure() {
> >>>>>>         :
> >>>>>>     }
> >>>>>>
> >>>>>> -do_patch[prefuncs] += "copy_kselftest_source_from_kernel
> >>>>>> remove_clang_related"
> >>>>>> +do_patch[prefuncs] += "copy_kselftest_source_from_kernel remove_unrelated"
> >>>>>>     python copy_kselftest_source_from_kernel() {
> >>>>>>         sources = (d.getVar("KERNEL_SELFTEST_SRC") or "").split()
> >>>>>>         src_dir = d.getVar("STAGING_KERNEL_DIR")
> >>>>>> @@ -94,8 +94,9 @@ python copy_kselftest_source_from_kernel() {
> >>>>>>                 bb.utils.copyfile(src, dest)
> >>>>>>     }
> >>>>>>
> >>>>>> -remove_clang_related() {
> >>>>>> -       sed -i -e '/test_pkt_access/d' -e '/test_pkt_md_access/d'
> >>>>>> ${S}/tools/testing/selftests/bpf/Makefile
> >>>>>> +remove_unrelated() {
> >>>>>> +       sed -i -e '/test_pkt_access/d' -e '/test_pkt_md_access/d' -e
> >>>>>> '/sockmap_verdict_prog/d' ${S}/tools/testing/selftests/bpf/Makefile
> >>>>>> +       sed -i '/llc/d' ${S}/tools/testing/selftests/bpf/Makefile
> >>>>>>     }
> >>>>>>
> >>>>>>     PACKAGE_ARCH = "${MACHINE_ARCH}"
> >>>>>> --
> >>>>>> 2.7.4
> >>>>>>
> >>>>>> --
> >>>>>> _______________________________________________
> >>>>>> Openembedded-devel mailing list
> >>>>>> Openembedded-devel at lists.openembedded.org
> >>>>>> http://lists.openembedded.org/mailman/listinfo/openembedded-devel
> >>>>>>
> >>>> --
> >>>> _______________________________________________
> >>>> Openembedded-devel mailing list
> >>>> Openembedded-devel at lists.openembedded.org
> >>>> http://lists.openembedded.org/mailman/listinfo/openembedded-devel
>



More information about the Openembedded-devel mailing list