mirror of
https://git.yoctoproject.org/poky
synced 2026-03-16 04:09:39 +01:00
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>
This commit is contained in:
committed by
Richard Purdie
parent
adcc017443
commit
88132f047a
@@ -185,14 +185,14 @@ do_install() {
|
||||
cp -a --parents tools/include/tools/be_byteshift.h $kerneldir/build/
|
||||
|
||||
# required for generate missing syscalls prepare phase
|
||||
cp -a --parents arch/x86/entry/syscalls/syscall_32.tbl $kerneldir/build
|
||||
cp -a --parents $(find arch/x86 -type f -name "syscall_32.tbl") $kerneldir/build
|
||||
|
||||
if [ "${ARCH}" = "x86" ]; then
|
||||
# files for 'make prepare' to succeed with kernel-devel
|
||||
cp -a --parents arch/x86/entry/syscalls/syscall_32.tbl $kerneldir/build/
|
||||
cp -a --parents arch/x86/entry/syscalls/syscalltbl.sh $kerneldir/build/
|
||||
cp -a --parents arch/x86/entry/syscalls/syscallhdr.sh $kerneldir/build/
|
||||
cp -a --parents arch/x86/entry/syscalls/syscall_64.tbl $kerneldir/build/
|
||||
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 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/
|
||||
|
||||
Reference in New Issue
Block a user