Skip to contentSkip to conversation

kernel-devsrc: fix 32bit ARM devsrc builds

PATCH New Bruce Ashfield 1 participant 1 message Dec 26, 2020

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 kernel-devsrc: fix 32bit ARM devsrc builds

From: Bruce Ashfield <[email protected]>

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.

---
 meta/recipes-kernel/linux/kernel-devsrc.bb | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
meta/recipes-kernel/linux/kernel-devsrc.bb +1 -1
index 35bd0ed5c3..23f090bf71 100644
@@ -200,7 +200,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
Signature · 1 line
2.19.1