From: Alexandru Moise <alexandru.t.mo...@gmail.com> I wanted to build kernel modules on my riscv target,
cd /usr/src/kernel/ make scripts prepare <...> CC scripts/mod/devicetable-offsets.s UPD scripts/mod/devicetable-offsets.h HOSTCC scripts/mod/file2alias.o HOSTCC scripts/mod/sumversion.o HOSTLD scripts/mod/modpost CC kernel/bounds.s /bin/sh: line 1: arch/riscv/kernel/asm-offsets.s: No such file or directory make[1]: *** [Kbuild:37: include/generated/asm-offsets.h] Error 1 make: *** [Makefile:1219: prepare0] Error 2 The patch just adds the asm-offsets.s file for riscv targets. With this the prepare target succeeds: make scripts prepare <...> CC kernel/bounds.s CALL scripts/checksyscalls.sh CALL scripts/atomic/check-atomics.sh LDS arch/riscv/kernel/vdso/vdso.lds AS arch/riscv/kernel/vdso/rt_sigreturn.o CC arch/riscv/kernel/vdso/vgettimeofday.o AS arch/riscv/kernel/vdso/getcpu.o AS arch/riscv/kernel/vdso/flush_icache.o AS arch/riscv/kernel/vdso/note.o VDSOLD arch/riscv/kernel/vdso/vdso.so.dbg VDSOSYM include/generated/vdso-offsets.h root@visionfive2:/usr/src/kernel Signed-off-by: Alexandru Moise <alexandru.t.mo...@gmail.com> --- meta/recipes-kernel/linux/kernel-devsrc.bb | 3 +++ 1 file changed, 3 insertions(+) diff --git a/meta/recipes-kernel/linux/kernel-devsrc.bb b/meta/recipes-kernel/linux/kernel-devsrc.bb index 6764598d48..ec14ccf6f2 100644 --- a/meta/recipes-kernel/linux/kernel-devsrc.bb +++ b/meta/recipes-kernel/linux/kernel-devsrc.bb @@ -115,6 +115,9 @@ do_install() { if [ -e arch/${ARCH}/kernel/vdso/vdso.lds ]; then cp -a --parents arch/${ARCH}/kernel/vdso/vdso.lds $kerneldir/build/ fi + if [ -e arch/${ARCH}/kernel/asm-offsets.s ]; then + cp -a --parents arch/${ARCH}/kernel/asm-offsets.s $kerneldir/build/ + fi fi if [ "${ARCH}" = "powerpc" ]; then cp -a --parents arch/powerpc/kernel/vdso32/vdso32.lds $kerneldir/build 2>/dev/null || : -- 2.41.0
-=-=-=-=-=-=-=-=-=-=-=- Links: You receive all messages sent to this group. View/Reply Online (#185852): https://lists.openembedded.org/g/openembedded-core/message/185852 Mute This Topic: https://lists.openembedded.org/mt/100693249/21656 Group Owner: openembedded-core+ow...@lists.openembedded.org Unsubscribe: https://lists.openembedded.org/g/openembedded-core/unsub [arch...@mail-archive.com] -=-=-=-=-=-=-=-=-=-=-=-