diff options
author | Bruce Ashfield <bruce.ashfield@gmail.com> | 2019-03-07 00:00:19 -0500 |
---|---|---|
committer | Richard Purdie <richard.purdie@linuxfoundation.org> | 2019-03-07 12:27:34 +0000 |
commit | e52a3085aa50e296dc8aef80fabd1b1d063977d5 (patch) | |
tree | 608a78bf07e1758510432dad3d61a6d071864012 /meta/recipes-kernel | |
parent | 7d86a8655bcbd144f8eabf5890b3373925a221c7 (diff) | |
download | poky-e52a3085aa50e296dc8aef80fabd1b1d063977d5.tar.gz |
kernel-devsrc: add files required for on-target build with 5.x
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.
(From OE-Core rev: 124c6bf5a0a5cc20d2ebbf04dc7b577cb4f5153a)
Signed-off-by: Bruce Ashfield <bruce.ashfield@gmail.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'meta/recipes-kernel')
-rw-r--r-- | meta/recipes-kernel/linux/kernel-devsrc.bb | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/meta/recipes-kernel/linux/kernel-devsrc.bb b/meta/recipes-kernel/linux/kernel-devsrc.bb index 8fc0ffdbb3..cf2b476051 100644 --- a/meta/recipes-kernel/linux/kernel-devsrc.bb +++ b/meta/recipes-kernel/linux/kernel-devsrc.bb | |||
@@ -150,6 +150,13 @@ do_install() { | |||
150 | cp -a --parents arch/arm64/kernel/module.lds $kerneldir/build/ | 150 | cp -a --parents arch/arm64/kernel/module.lds $kerneldir/build/ |
151 | fi | 151 | fi |
152 | 152 | ||
153 | if [ "${ARCH}" = "powerpc" ]; then | ||
154 | # 5.0 needs these files, but don't error if they aren't present in the source | ||
155 | cp -a --parents arch/${ARCH}/kernel/syscalls/syscall.tbl $kerneldir/build/ 2>/dev/null || : | ||
156 | cp -a --parents arch/${ARCH}/kernel/syscalls/syscalltbl.sh $kerneldir/build/ 2>/dev/null || : | ||
157 | cp -a --parents arch/${ARCH}/kernel/syscalls/syscallhdr.sh $kerneldir/build/ 2>/dev/null || : | ||
158 | fi | ||
159 | |||
153 | # include the machine specific headers for ARM variants, if available. | 160 | # include the machine specific headers for ARM variants, if available. |
154 | if [ "${ARCH}" = "arm" ]; then | 161 | if [ "${ARCH}" = "arm" ]; then |
155 | cp -a --parents arch/${ARCH}/mach-*/include $kerneldir/build/ | 162 | cp -a --parents arch/${ARCH}/mach-*/include $kerneldir/build/ |
@@ -214,6 +221,9 @@ do_install() { | |||
214 | cp -a --parents kernel/time/timeconst.bc $kerneldir/build | 221 | cp -a --parents kernel/time/timeconst.bc $kerneldir/build |
215 | cp -a --parents kernel/bounds.c $kerneldir/build | 222 | cp -a --parents kernel/bounds.c $kerneldir/build |
216 | cp -a --parents Kbuild $kerneldir/build | 223 | cp -a --parents Kbuild $kerneldir/build |
224 | cp -a --parents arch/mips/kernel/syscalls/*.sh $kerneldir/build | ||
225 | cp -a --parents arch/mips/kernel/syscalls/*.tbl $kerneldir/build | ||
226 | cp -a --parents arch/mips/tools/elf-entry.c $kerneldir/build 2>/dev/null || : | ||
217 | fi | 227 | fi |
218 | 228 | ||
219 | # required to build scripts/selinux/genheaders/genheaders | 229 | # required to build scripts/selinux/genheaders/genheaders |