]> git.ipfire.org Git - thirdparty/openembedded/openembedded-core-contrib.git/commitdiff
kernel-devsrc: Fixed missing loongarch64 kernel source code when test_kernelmodules
authorZang Ruochen <zangruochen@loongson.cn>
Wed, 6 Sep 2023 01:28:38 +0000 (09:28 +0800)
committerRichard Purdie <richard.purdie@linuxfoundation.org>
Thu, 7 Sep 2023 13:42:28 +0000 (14:42 +0100)
Signed-off-by: Zang Ruochen <zangruochen@loongson.cn>
Signed-off-by: Alexandre Belloni <alexandre.belloni@bootlin.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
meta/recipes-kernel/linux/kernel-devsrc.bb

index 6764598d488323881ed4181bee606ace0a9df2c9..ce5777fbe9e2454a799edfb4a76d8358091bb30c 100644 (file)
@@ -318,6 +318,15 @@ do_install() {
            cp -a --parents arch/mips/kernel/syscalls/*.tbl $kerneldir/build 2>/dev/null || :
            cp -a --parents arch/mips/tools/elf-entry.c $kerneldir/build 2>/dev/null || :
        fi
+       
+       if [ "${ARCH}" = "loongarch" ]; then
+           cp -a --parents arch/loongarch/kernel/asm-offsets.c $kerneldir/build
+           cp -a --parents Kbuild $kerneldir/build
+           cp -a --parents arch/loongarch/vdso/*.S $kerneldir/build 2>/dev/null || :
+           cp -a --parents arch/loongarch/vdso/*gettimeofday.* $kerneldir/build 2>/dev/null || :
+           cp -a --parents arch/loongarch/vdso/*getcpu.* $kerneldir/build 2>/dev/null || :
+           cp -a --parents arch/loongarch/vdso/gen_vdso*_offsets.sh $kerneldir/build/ 2>/dev/null || :
+       fi
 
         # required to build scripts/selinux/genheaders/genheaders
         cp -a --parents security/selinux/include/* $kerneldir/build/