]> code.ossystems Code Review - openembedded-core.git/commitdiff
kernel-devsrc: 5.14+ updates
authorBruce Ashfield <bruce.ashfield@gmail.com>
Tue, 17 Aug 2021 15:27:31 +0000 (11:27 -0400)
committerRichard Purdie <richard.purdie@linuxfoundation.org>
Wed, 18 Aug 2021 16:00:16 +0000 (17:00 +0100)
commit 6218d0f6b8dec [x86/syscalls: Switch to generic syscalltbl.sh]
means that x86 no longer has a syscall script to copy, which causes
a build error.

We already copy the generic syscall script (in scripts), so we just
catch errors for the copies to support older and 5.14+ kernels in
the same devsrc recipe.

Signed-off-by: Bruce Ashfield <bruce.ashfield@gmail.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
meta/recipes-kernel/linux/kernel-devsrc.bb

index 3b5fdda7734dc307a525f9ebd9b3e50c41928e09..23de1a49177098dba0d56fc80cdbea079b4009ff 100644 (file)
@@ -220,10 +220,10 @@ do_install() {
 
        if [ "${ARCH}" = "x86" ]; then
            # files for 'make prepare' to succeed with kernel-devel
-           cp -a --parents $(find arch/x86 -type f -name "syscall_32.tbl") $kerneldir/build/
-           cp -a --parents $(find arch/x86 -type f -name "syscalltbl.sh") $kerneldir/build/
-           cp -a --parents $(find arch/x86 -type f -name "syscallhdr.sh") $kerneldir/build/
-           cp -a --parents $(find arch/x86 -type f -name "syscall_64.tbl") $kerneldir/build/
+           cp -a --parents $(find arch/x86 -type f -name "syscall_32.tbl") $kerneldir/build/ 2>/dev/null || :
+           cp -a --parents $(find arch/x86 -type f -name "syscalltbl.sh") $kerneldir/build/ 2>/dev/null || :
+           cp -a --parents $(find arch/x86 -type f -name "syscallhdr.sh") $kerneldir/build/ 2>/dev/null || :
+           cp -a --parents $(find arch/x86 -type f -name "syscall_64.tbl") $kerneldir/build/ 2>/dev/null || :
            cp -a --parents arch/x86/tools/relocs_32.c $kerneldir/build/
            cp -a --parents arch/x86/tools/relocs_64.c $kerneldir/build/
            cp -a --parents arch/x86/tools/relocs.c $kerneldir/build/