On Tue, Dec 29, 2020 at 8:52 PM Zhang, Qiang <qiang.zh...@windriver.com> wrote:
>
>
>
> ________________________________________
> 发件人: Bruce Ashfield <bruce.ashfi...@gmail.com>
> 发送时间: 2020年12月29日 21:49
> 收件人: Zhang, Qiang
> 抄送: Linux Yocto
> 主题: Re: [linux-yocto] [oe-core] [yocto-next] [PATCH] kernel-devsrc: fix 
> module.lds not exist in v5.10+
>
> >I already sent a patch for this several days ago.
> >
> >Also, you do not need to test before copying, that's exactly what >the
> >2>/dev/null || : is for.
>
> Hello Bruce
>
> cp -a --parents arch/arm/kernel/module.lds $kerneldir/build/
>
> Is this order to be added  2>/dev/null || :   ?
>

With this patch:

https://lists.openembedded.org/g/openembedded-core/message/146220?p=,,,20,0,0,0::Created,,kernel-devsrc%3A+fix+32bit+ARM+devsrc+builds,20,2,0,79240336

32 bit ARM builds are fine.

Bruce

> Cherrs
> Qiang
>
> >
> >Cheers,
> >
> >Bruce
> >
> >On Tue, Dec 29, 2020 at 8:12 AM <qiang.zh...@windriver.com> >wrote:
> >
> > From: Zqiang <qiang.zh...@windriver.com>
> >
> > Due to the upstream commit 596b0474d3d [kbuild: preprocess
> > module linker script], do_install will trigger error:
> >
> > cp: cannot stat 'arch/arm/kernel/module.lds': No
> > such file or directory.
> >
> > determine whether the file exists before copying.
> >
> > Signed-off-by: Zqiang <qiang.zh...@windriver.com>
> > ---
> >  meta/recipes-kernel/linux/kernel-devsrc.bb | 8 ++++++--
> >  1 file changed, 6 insertions(+), 2 deletions(-)
> >
> > diff --git a/meta/recipes-kernel/linux/kernel-devsrc.bb 
> > b/meta/recipes-kernel/linux/kernel-devsrc.bb
> > index 8a900ed182..0c10051be3 100644
> > --- a/meta/recipes-kernel/linux/kernel-devsrc.bb
> > +++ b/meta/recipes-kernel/linux/kernel-devsrc.bb
> > @@ -162,7 +162,9 @@ do_install() {
> >              cp -a --parents arch/arm64/kernel/vdso/note.S $kerneldir/build/
> >              cp -a --parents arch/arm64/kernel/vdso/gen_vdso_offsets.sh 
> > $kerneldir/build/
> >
> > -            cp -a --parents arch/arm64/kernel/module.lds $kerneldir/build/ 
> > 2>/dev/null || :
> > +            if [ -f "arch/arm64/kernel/module.lds" ]; then
> > +               cp -a --parents arch/arm64/kernel/module.lds 
> > $kerneldir/build/ 2>/dev/null || :
> > +            fi
> >         fi
> >
> >         if [ "${ARCH}" = "powerpc" ]; then
> > @@ -186,7 +188,9 @@ do_install() {
> >                 cp -a --parents $SYSCALL_TOOLS $kerneldir/build/
> >              fi
> >
> > -            cp -a --parents arch/arm/kernel/module.lds $kerneldir/build/
> > +            if [ -f "arch/arm/kernel/module.lds" ]; then
> > +               cp -a --parents arch/arm/kernel/module.lds $kerneldir/build/
> > +            fi
> >         fi
> >
> >         if [ -d arch/${ARCH}/include ]; then
> > --
> > 2.26.2
> >
>
>
> --
> - Thou shalt not follow the NULL pointer, for chaos and madness await
> thee at its end
> - "Use the force Harry" - Gandalf, Star Trek II
>
> 
>


-- 
- Thou shalt not follow the NULL pointer, for chaos and madness await
thee at its end
- "Use the force Harry" - Gandalf, Star Trek II
-=-=-=-=-=-=-=-=-=-=-=-
Links: You receive all messages sent to this group.
View/Reply Online (#9322): 
https://lists.yoctoproject.org/g/linux-yocto/message/9322
Mute This Topic: https://lists.yoctoproject.org/mt/79306909/21656
Group Owner: linux-yocto+ow...@lists.yoctoproject.org
Unsubscribe: https://lists.yoctoproject.org/g/linux-yocto/unsub 
[arch...@mail-archive.com]
-=-=-=-=-=-=-=-=-=-=-=-

Reply via email to