From mboxrd@z Thu Jan 1 00:00:00 1970 Return-path: Received: from dude.hi.pengutronix.de ([2001:67c:670:100:1d::7]) by metis.ext.pengutronix.de with esmtps (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1hlvC5-0007K3-0C for ptxdist@pengutronix.de; Fri, 12 Jul 2019 15:02:33 +0200 Received: from str by dude.hi.pengutronix.de with local (Exim 4.92) (envelope-from ) id 1hlvC4-0002Sr-OS for ptxdist@pengutronix.de; Fri, 12 Jul 2019 15:02:32 +0200 From: Steffen Trumtrar Date: Fri, 12 Jul 2019 15:02:29 +0200 Message-Id: <20190712130229.9288-1-s.trumtrar@pengutronix.de> MIME-Version: 1.0 Subject: [ptxdist] [PATCH] rules: kernel: set CROSS_STRIP to kernel toolchain List-Id: PTXdist Development Mailing List List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Reply-To: ptxdist@pengutronix.de Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Errors-To: ptxdist-bounces@pengutronix.de Sender: "ptxdist" To: ptxdist@pengutronix.de 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 --- 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