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