]> code.ossystems Code Review - openembedded-core.git/commitdiff
kernel-devsrc: add files required for on-target build with 5.x
authorBruce Ashfield <bruce.ashfield@gmail.com>
Thu, 7 Mar 2019 05:00:19 +0000 (00:00 -0500)
committerRichard Purdie <richard.purdie@linuxfoundation.org>
Thu, 7 Mar 2019 12:27:28 +0000 (12:27 +0000)
Both powerpc and mips require a few new files for the scripts
and prepare targets to work with a 5.0 kernel. We add the required
files to the architecture specific blocks, with appropriate
backwards compatibility considerations.

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 8fc0ffdbb343a59cb1187285371553648d352c2e..cf2b4760510e6355acc30723b1b6057fe4543036 100644 (file)
@@ -150,6 +150,13 @@ do_install() {
             cp -a --parents arch/arm64/kernel/module.lds $kerneldir/build/
        fi
 
+       if [ "${ARCH}" = "powerpc" ]; then
+           # 5.0 needs these files, but don't error if they aren't present in the source
+           cp -a --parents arch/${ARCH}/kernel/syscalls/syscall.tbl $kerneldir/build/ 2>/dev/null || :
+           cp -a --parents arch/${ARCH}/kernel/syscalls/syscalltbl.sh $kerneldir/build/ 2>/dev/null || :
+           cp -a --parents arch/${ARCH}/kernel/syscalls/syscallhdr.sh $kerneldir/build/ 2>/dev/null || :
+       fi
+
        # include the machine specific headers for ARM variants, if available.
        if [ "${ARCH}" = "arm" ]; then
            cp -a --parents arch/${ARCH}/mach-*/include $kerneldir/build/
@@ -214,6 +221,9 @@ do_install() {
            cp -a --parents kernel/time/timeconst.bc $kerneldir/build
            cp -a --parents kernel/bounds.c $kerneldir/build
            cp -a --parents Kbuild $kerneldir/build
+           cp -a --parents arch/mips/kernel/syscalls/*.sh $kerneldir/build
+           cp -a --parents arch/mips/kernel/syscalls/*.tbl $kerneldir/build
+           cp -a --parents arch/mips/tools/elf-entry.c $kerneldir/build 2>/dev/null || :
        fi
 
         # required to build scripts/selinux/genheaders/genheaders