________________________________________ 发件人: 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 || : ? 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
-=-=-=-=-=-=-=-=-=-=-=- Links: You receive all messages sent to this group. View/Reply Online (#9321): https://lists.yoctoproject.org/g/linux-yocto/message/9321 Mute This Topic: https://lists.yoctoproject.org/mt/79305089/21656 Group Owner: linux-yocto+ow...@lists.yoctoproject.org Unsubscribe: https://lists.yoctoproject.org/g/linux-yocto/unsub [arch...@mail-archive.com] -=-=-=-=-=-=-=-=-=-=-=-