]> code.ossystems Code Review - openembedded-core.git/commitdiff
kernel-devsrc: fix 32bit ARM devsrc builds
authorBruce Ashfield <bruce.ashfield@gmail.com>
Sat, 26 Dec 2020 21:50:02 +0000 (16:50 -0500)
committerRichard Purdie <richard.purdie@linuxfoundation.org>
Wed, 30 Dec 2020 14:01:00 +0000 (14:01 +0000)
As a follow up to commit: 0fc66a0b64953 [kernel: provide module.lds
for out of tree builds in v5.10+], we must not only copy module.lds
from its new location, we have to not error when it isn't found in
the old location.

With this tweak, we have coverage on all supported arches for the
new location of module.lds, and backwards compatibility through
kernel versions.

Signed-off-by: Bruce Ashfield <bruce.ashfield@gmail.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
meta/recipes-kernel/linux/kernel-devsrc.bb

index 8a900ed18298b0c770e2bfd47651f4bb8bf10dd3..dadeade3aad11aa885453cbcf90ff5363f14b656 100644 (file)
@@ -186,7 +186,7 @@ do_install() {
                cp -a --parents $SYSCALL_TOOLS $kerneldir/build/
             fi
 
-            cp -a --parents arch/arm/kernel/module.lds $kerneldir/build/
+            cp -a --parents arch/arm/kernel/module.lds $kerneldir/build/ 2>/dev/null || :
        fi
 
        if [ -d arch/${ARCH}/include ]; then