diff options
author | Khem Raj <raj.khem@gmail.com> | 2022-04-11 09:59:02 -0700 |
---|---|---|
committer | Richard Purdie <richard.purdie@linuxfoundation.org> | 2022-04-14 09:47:00 +0100 |
commit | 32276b968ece37b4d66195c470d78aed7896d5c6 (patch) | |
tree | 1cf73d4b1e42f1dd6ea477dfd58a9c0eb3c8785c /meta | |
parent | 4dbd32ccee73d1dcdf075e9c5b11a779e6665730 (diff) | |
download | poky-32276b968ece37b4d66195c470d78aed7896d5c6.tar.gz |
kernel-devsrc: Check for gen_vdso_offsets.sh before copying on riscv
This file is introduced in newer kernels >= 5.15 but some RISCV machines
still use 5.13 kernels, this ensures that kernel-devsrc can build on
older kernels for RISCV
(From OE-Core rev: b4d3c2c03495730a2253669ad8a438288629a1c8)
Signed-off-by: Khem Raj <raj.khem@gmail.com>
Signed-off-by: Alexandre Belloni <alexandre.belloni@bootlin.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'meta')
-rw-r--r-- | meta/recipes-kernel/linux/kernel-devsrc.bb | 8 |
1 files changed, 6 insertions, 2 deletions
diff --git a/meta/recipes-kernel/linux/kernel-devsrc.bb b/meta/recipes-kernel/linux/kernel-devsrc.bb index 8d360ed3f3..9654488a54 100644 --- a/meta/recipes-kernel/linux/kernel-devsrc.bb +++ b/meta/recipes-kernel/linux/kernel-devsrc.bb | |||
@@ -112,7 +112,9 @@ do_install() { | |||
112 | fi | 112 | fi |
113 | 113 | ||
114 | if [ "${ARCH}" = "arm64" -o "${ARCH}" = "riscv" ]; then | 114 | if [ "${ARCH}" = "arm64" -o "${ARCH}" = "riscv" ]; then |
115 | cp -a --parents arch/${ARCH}/kernel/vdso/vdso.lds $kerneldir/build/ | 115 | if [ -e arch/${ARCH}/kernel/vdso/vdso.lds ]; then |
116 | cp -a --parents arch/${ARCH}/kernel/vdso/vdso.lds $kerneldir/build/ | ||
117 | fi | ||
116 | fi | 118 | fi |
117 | if [ "${ARCH}" = "powerpc" ]; then | 119 | if [ "${ARCH}" = "powerpc" ]; then |
118 | cp -a --parents arch/powerpc/kernel/vdso32/vdso32.lds $kerneldir/build 2>/dev/null || : | 120 | cp -a --parents arch/powerpc/kernel/vdso32/vdso32.lds $kerneldir/build 2>/dev/null || : |
@@ -190,7 +192,9 @@ do_install() { | |||
190 | if [ "${ARCH}" = "riscv" ]; then | 192 | if [ "${ARCH}" = "riscv" ]; then |
191 | cp -a --parents arch/riscv/kernel/vdso/*gettimeofday.* $kerneldir/build/ | 193 | cp -a --parents arch/riscv/kernel/vdso/*gettimeofday.* $kerneldir/build/ |
192 | cp -a --parents arch/riscv/kernel/vdso/note.S $kerneldir/build/ | 194 | cp -a --parents arch/riscv/kernel/vdso/note.S $kerneldir/build/ |
193 | cp -a --parents arch/riscv/kernel/vdso/gen_vdso_offsets.sh $kerneldir/build/ | 195 | if [ -e arch/riscv/kernel/vdso/gen_vdso_offsets.sh ]; then |
196 | cp -a --parents arch/riscv/kernel/vdso/gen_vdso_offsets.sh $kerneldir/build/ | ||
197 | fi | ||
194 | cp -a --parents arch/riscv/kernel/vdso/* $kerneldir/build/ 2>/dev/null || : | 198 | cp -a --parents arch/riscv/kernel/vdso/* $kerneldir/build/ 2>/dev/null || : |
195 | fi | 199 | fi |
196 | 200 | ||