summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorKhem Raj <raj.khem@gmail.com>2022-04-11 16:59:02 (GMT)
committerRichard Purdie <richard.purdie@linuxfoundation.org>2022-04-13 21:23:50 (GMT)
commite54d6623a2c845872f5aec511660b4fbe155dfab (patch)
treea195f127873b1cfcb8a7611319f02c4bad199e58
parent3da3bf730b55e143f514bad119b446202ff0cc91 (diff)
downloadpoky-e54d6623a2c845872f5aec511660b4fbe155dfab.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: 53120bf5f7eefec4bfe105c8518f13b8d29da005) 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>
-rw-r--r--meta/recipes-kernel/linux/kernel-devsrc.bb8
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 8d360ed..9654488 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