Overwrite the CROSS_STRIP environment variable.
This is needed if the kernel is build with a different toolchain
than the userspace. Stripping of kernel modules will fail otherwise,
because the kernel will try to use strip from the userspace toolchain.

Signed-off-by: Steffen Trumtrar <[email protected]>
---
 rules/kernel.make | 2 ++
 1 file changed, 2 insertions(+)

diff --git a/rules/kernel.make b/rules/kernel.make
index 1e445559b490..874198c48e99 100644
--- a/rules/kernel.make
+++ b/rules/kernel.make
@@ -262,6 +262,8 @@ $(STATEDIR)/kernel.targetinstall.post: 
$(IMAGEDIR)/linuximage.lzo
 endif
 endif
 
+$(STATEDIR)/kernel.targetinstall.post: \
+       CROSS_STRIP=$(KERNEL_CROSS_COMPILE)strip
 $(STATEDIR)/kernel.targetinstall.post:
        @$(call targetinfo)
 
-- 
2.20.1


_______________________________________________
ptxdist mailing list
[email protected]

Reply via email to