mailarchive of the ptxdist mailing list
 help / color / mirror / Atom feed
From: Steffen Trumtrar <s.trumtrar@pengutronix.de>
To: ptxdist@pengutronix.de
Subject: [ptxdist] [PATCH] rules: kernel: set CROSS_STRIP to kernel toolchain
Date: Fri, 12 Jul 2019 15:02:29 +0200	[thread overview]
Message-ID: <20190712130229.9288-1-s.trumtrar@pengutronix.de> (raw)

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 <s.trumtrar@pengutronix.de>
---
 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
ptxdist@pengutronix.de

             reply	other threads:[~2019-07-12 13:02 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2019-07-12 13:02 Steffen Trumtrar [this message]
2019-07-16 11:01 ` Michael Olbrich

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20190712130229.9288-1-s.trumtrar@pengutronix.de \
    --to=s.trumtrar@pengutronix.de \
    --cc=ptxdist@pengutronix.de \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox