Received: by 2002:ac0:a5a7:0:0:0:0:0 with SMTP id m36-v6csp1113084imm; Wed, 1 Aug 2018 10:23:34 -0700 (PDT) X-Google-Smtp-Source: AAOMgpcfhjkICNKPodr+tJnHAFG2WupyDawp7YUTeWODUfE64gQjsVTtRq2D44wAUB5yt2wk9EOX X-Received: by 2002:a17:902:7896:: with SMTP id q22-v6mr25599237pll.47.1533144214339; Wed, 01 Aug 2018 10:23:34 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1533144214; cv=none; d=google.com; s=arc-20160816; b=aBEHqFhkuOQdDDehTIoByFc3/d78UdjlGIVFMqDWT4xcT3B+FAh8AeSJCKmVyuhSJe LrMllJTxySMD0xoPk+1e4DQHNaZeOMkAOEh1kguo2XD+otsWjV4qKVhq/vsJ/b7zbbxJ A0Cp9ZoQGLoLO/na+LL5SuWhdSKiZsRcDiOYgVRbQXq4dKOCzVmORtnYQtKFrpKWGqF6 FyuwL/0mwsgKQhzsUoTwDsGUuUdzL2+ABoZad9muzpsMrdX3DzfIAwCLwIypd3GdM8a6 Iw2ra9VIS1INi130RNkr5UVkF337crUHSWNRR6dkN3xkCWyRjog8GRBiXWgFus2Kifi6 QX5w== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:mime-version:user-agent:references :in-reply-to:message-id:date:subject:cc:to:from :arc-authentication-results; bh=ADivnGkFx754E1Ge19JZSn6KqExYHse3rlQNvWjfquE=; b=lVLhZLXLoz0AanAVRDKpElz9PTF5SP1oJOVm3whg3Jyec+FG4Y8HBoQSlWrdc3zd/E uiLgTywIMtfoq3mXZSVpnBteBaE1p1eY7SQS6RXvpWOelCU5kvQjP4yvKDGmrsgGm85O Gnrj+5GADLz+K87+vRO+k13989ZDeNfFvbZ5vsk3rpTp95nRKhBCoZ8kPjz7bt2c1Ndx YWmnM4UUfly8eJsJlHEG18/885lFdoz+kovBFCc8X/u1a5PqFWWDy9qSHs1dfY5QSYBG vj2hRalbMsjtkSFMGRzauz7Txk/Ak17y3s4c92sH1bvU8UW1ZcdgOKSjyJKVNaCHH6zA B7Xg== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id o84-v6si17290201pfa.15.2018.08.01.10.23.20; Wed, 01 Aug 2018 10:23:34 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S2405619AbeHATIW (ORCPT + 99 others); Wed, 1 Aug 2018 15:08:22 -0400 Received: from mail.linuxfoundation.org ([140.211.169.12]:49400 "EHLO mail.linuxfoundation.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S2404973AbeHATIW (ORCPT ); Wed, 1 Aug 2018 15:08:22 -0400 Received: from localhost (D57E6652.static.ziggozakelijk.nl [213.126.102.82]) by mail.linuxfoundation.org (Postfix) with ESMTPSA id 5A09DCE6; Wed, 1 Aug 2018 17:21:40 +0000 (UTC) From: Greg Kroah-Hartman To: linux-kernel@vger.kernel.org Cc: Greg Kroah-Hartman , stable@vger.kernel.org, Michal Simek , Sasha Levin Subject: [PATCH 4.14 198/246] microblaze: Fix simpleImage format generation Date: Wed, 1 Aug 2018 18:51:48 +0200 Message-Id: <20180801165021.200134624@linuxfoundation.org> X-Mailer: git-send-email 2.18.0 In-Reply-To: <20180801165011.700991984@linuxfoundation.org> References: <20180801165011.700991984@linuxfoundation.org> User-Agent: quilt/0.65 X-stable: review MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org 4.14-stable review patch. If anyone has any objections, please let me know. ------------------ From: Michal Simek [ Upstream commit ece97f3a5fb50cf5f98886fbc63c9665f2bb199d ] simpleImage generation was broken for some time. This patch is fixing steps how simpleImage.*.ub file is generated. Steps are objdump of vmlinux and create .ub. Also make sure that there is striped elf version with .strip suffix. Signed-off-by: Michal Simek Signed-off-by: Sasha Levin Signed-off-by: Greg Kroah-Hartman --- arch/microblaze/boot/Makefile | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) --- a/arch/microblaze/boot/Makefile +++ b/arch/microblaze/boot/Makefile @@ -22,17 +22,19 @@ $(obj)/linux.bin.gz: $(obj)/linux.bin FO quiet_cmd_cp = CP $< $@$2 cmd_cp = cat $< >$@$2 || (rm -f $@ && echo false) -quiet_cmd_strip = STRIP $@ +quiet_cmd_strip = STRIP $< $@$2 cmd_strip = $(STRIP) -K microblaze_start -K _end -K __log_buf \ - -K _fdt_start vmlinux -o $@ + -K _fdt_start $< -o $@$2 UIMAGE_LOADADDR = $(CONFIG_KERNEL_BASE_ADDR) +UIMAGE_IN = $@ +UIMAGE_OUT = $@.ub $(obj)/simpleImage.%: vmlinux FORCE $(call if_changed,cp,.unstrip) $(call if_changed,objcopy) $(call if_changed,uimage) - $(call if_changed,strip) - @echo 'Kernel: $@ is ready' ' (#'`cat .version`')' + $(call if_changed,strip,.strip) + @echo 'Kernel: $(UIMAGE_OUT) is ready' ' (#'`cat .version`')' clean-files += simpleImage.*.unstrip linux.bin.ub dts/*.dtb