[oe-commits] [openembedded-core] 01/17: kernel-devsrc: restore compatibility with kernel < v4.10

git at git.openembedded.org git at git.openembedded.org
Wed Feb 6 08:29:43 UTC 2019

This is an automated email from the git hooks/post-receive script.

rpurdie pushed a commit to branch master
in repository openembedded-core.

commit 7b4d77d7f909c0ae27553fd9c480f069f12e468f
Author: S. Lockwood-Childs <sjl at vctlabs.com>
AuthorDate: Mon Feb 4 16:39:01 2019 -0800

    kernel-devsrc: restore compatibility with kernel < v4.10
    The kernel commit that added the syscall table generation tools
    for ARM platform (ARM: convert to generated system call tables)
    wasn't merged until kernel release v4.10.
    Current assumption in kernel-devsrc recipe is that these syscall
    scripts exist, which breaks the build for external board layers that are
    still using 4.9.x kernels:
      cp: cannot stat ‘arch/arm/tools/syscall*’: No such file or directory
    so only try to install the scripts when they actually exist.
    Signed-off-by: S. Lockwood-Childs <sjl at vctlabs.com>
    Signed-off-by: Richard Purdie <richard.purdie at linuxfoundation.org>
 meta/recipes-kernel/linux/kernel-devsrc.bb | 7 ++++++-
 1 file changed, 6 insertions(+), 1 deletion(-)

diff --git a/meta/recipes-kernel/linux/kernel-devsrc.bb b/meta/recipes-kernel/linux/kernel-devsrc.bb
index 87347fa..8fc0ffd 100644
--- a/meta/recipes-kernel/linux/kernel-devsrc.bb
+++ b/meta/recipes-kernel/linux/kernel-devsrc.bb
@@ -157,7 +157,12 @@ do_install() {
 	    # include a few files for 'make prepare'
 	    cp -a --parents arch/arm/tools/gen-mach-types $kerneldir/build/
 	    cp -a --parents arch/arm/tools/mach-types $kerneldir/build/
-	    cp -a --parents arch/arm/tools/syscall* $kerneldir/build/
+	    # ARM syscall table tools only exist for kernels v4.10 or later
+            SYSCALL_TOOLS=$(find arch/arm/tools -name "syscall*")
+            if [ -n "$SYSCALL_TOOLS" ] ; then
+	        cp -a --parents $SYSCALL_TOOLS $kerneldir/build/
+            fi
             cp -a --parents arch/arm/kernel/module.lds $kerneldir/build/

To stop receiving notification emails like this one, please contact
the administrator of this repository.

More information about the Openembedded-commits mailing list