summaryrefslogtreecommitdiffstats
path: root/meta/recipes-kernel
diff options
context:
space:
mode:
authorPeter Bergin <peter@berginkonsult.se>2019-11-28 07:14:24 +0100
committerRichard Purdie <richard.purdie@linuxfoundation.org>2019-12-28 23:25:41 +0000
commit88132f047add45ceb560d6cf180a231aa1e80d20 (patch)
tree9eca7f33d3dbea528fee2665fe7bfbef1c658737 /meta/recipes-kernel
parentadcc017443f3e580a0246938f89a45e47d96b0f0 (diff)
downloadpoky-88132f047add45ceb560d6cf180a231aa1e80d20.tar.gz
kernel-devsrc: fix error with old (<4.2) x86 kernels
When using kernel-devsrc for older kernels do_install fails with: | cp: failed to get attributes of 'arch/x86/entry': No such file or directory In the Linux kernel commit 1f57d5d85 "x86/asm/entry: Move the arch/x86/syscalls/ definitions to arch/x86/entry/syscalls/" moved some files copied in the kernel-devsrc recipe. Commit 1f57d5d85 was added in v4.2. To be able to use kernel-devsrc for kernels older than v4.2 this commit make use of find for the files that shall be copied. (From OE-Core rev: 53cccd5b5145c23cac3e227ef71edaf4609c11b5) Signed-off-by: Peter Bergin <peter@berginkonsult.se> Signed-off-by: Ross Burton <ross.burton@intel.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.bb10
1 files changed, 5 insertions, 5 deletions
diff --git a/meta/recipes-kernel/linux/kernel-devsrc.bb b/meta/recipes-kernel/linux/kernel-devsrc.bb
index b68d945a8f..b6f2dbc2b0 100644
--- a/meta/recipes-kernel/linux/kernel-devsrc.bb
+++ b/meta/recipes-kernel/linux/kernel-devsrc.bb
@@ -185,14 +185,14 @@ do_install() {
185 cp -a --parents tools/include/tools/be_byteshift.h $kerneldir/build/ 185 cp -a --parents tools/include/tools/be_byteshift.h $kerneldir/build/
186 186
187 # required for generate missing syscalls prepare phase 187 # required for generate missing syscalls prepare phase
188 cp -a --parents arch/x86/entry/syscalls/syscall_32.tbl $kerneldir/build 188 cp -a --parents $(find arch/x86 -type f -name "syscall_32.tbl") $kerneldir/build
189 189
190 if [ "${ARCH}" = "x86" ]; then 190 if [ "${ARCH}" = "x86" ]; then
191 # files for 'make prepare' to succeed with kernel-devel 191 # files for 'make prepare' to succeed with kernel-devel
192 cp -a --parents arch/x86/entry/syscalls/syscall_32.tbl $kerneldir/build/ 192 cp -a --parents $(find arch/x86 -type f -name "syscall_32.tbl") $kerneldir/build/
193 cp -a --parents arch/x86/entry/syscalls/syscalltbl.sh $kerneldir/build/ 193 cp -a --parents $(find arch/x86 -type f -name "syscalltbl.sh") $kerneldir/build/
194 cp -a --parents arch/x86/entry/syscalls/syscallhdr.sh $kerneldir/build/ 194 cp -a --parents $(find arch/x86 -type f -name "syscallhdr.sh") $kerneldir/build/
195 cp -a --parents arch/x86/entry/syscalls/syscall_64.tbl $kerneldir/build/ 195 cp -a --parents $(find arch/x86 -type f -name "syscall_64.tbl") $kerneldir/build/
196 cp -a --parents arch/x86/tools/relocs_32.c $kerneldir/build/ 196 cp -a --parents arch/x86/tools/relocs_32.c $kerneldir/build/
197 cp -a --parents arch/x86/tools/relocs_64.c $kerneldir/build/ 197 cp -a --parents arch/x86/tools/relocs_64.c $kerneldir/build/
198 cp -a --parents arch/x86/tools/relocs.c $kerneldir/build/ 198 cp -a --parents arch/x86/tools/relocs.c $kerneldir/build/