Received: by 2002:ac0:a5a7:0:0:0:0:0 with SMTP id m36-v6csp1380738imm; Sat, 4 Aug 2018 02:12:53 -0700 (PDT) X-Google-Smtp-Source: AAOMgpfhBjjpbNDKpxbVQd07xirxtck9bFHauuXtcUO3cajCRuHRFh7DSXbyPNPyZS3H0wthmzmy X-Received: by 2002:a62:1c13:: with SMTP id c19-v6mr8317199pfc.148.1533373973818; Sat, 04 Aug 2018 02:12:53 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1533373973; cv=none; d=google.com; s=arc-20160816; b=l5nEYUGIbv31VWUOe7EtEdhHOokAFR4nR9e8s2gPsl0eiDil3fmv8TmSG6wBTsQD+b yRA2LpwIeLtl4vs6oDZ12NLlDVntSKNDILFGGuyDHz2+iH8ZlulLWtl4AUwVdNbtyK82 8yTyYiZ9/hC+NriEVXycQXQOa/u3LQNhJ6rkXDRW8QxMXyMjY26ZXGqF0ZwhMSK4wQ94 GfD53/0R3yDP/D+2MDVhSxWLU9i2rHPcNtDCCOHwit4/Y1kMmohtdhZecJ2X840/54pa yUlERKzb5cM0+AY2s0qMfgktwHiGzvX2qS8fX4OnpGx9AW3UjJheiEvZbCFhbZVw3MUg rTLQ== 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=k41QyId/3n+PwoeoQFZ8sq5UV/I6v2LusTITFJRTYQc=; b=k4sgIQ6puwmFSuReEx2mKUJwAPo7ShOJxfOmk/tZLa5hhNa2mtuaReUVZmB/Hl7qFM UC2RjpqUMX5yG/nmx4t/inkJgqSccxCdnXiDp8LD1zIj8YnUfBDpqcYIvMnr27wHNuju y37bB7LKaSPGaq22Lrlo2bIU6R7aV+C6noROqEl+Sc6iGrYy5MYhoPCar1RYzZ9P3cSz aS/zcND1KusyChaNnkwdpd9NeeJC8fsFCdtmCaKQbbtUyC7lOEQkhwvVdVT2MyU0iyKR LH4Fq416my3T8sbW1hcuYaBoVN1nR9EOX2jXi5KjJnHJmOqgBFyv91s7/3VTbrfwQ5qE y5Cw== 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 r28-v6si7314789pfb.65.2018.08.04.02.12.39; Sat, 04 Aug 2018 02:12:53 -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 S2389017AbeHDLKq (ORCPT + 99 others); Sat, 4 Aug 2018 07:10:46 -0400 Received: from mail.linuxfoundation.org ([140.211.169.12]:50084 "EHLO mail.linuxfoundation.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1732670AbeHDLKq (ORCPT ); Sat, 4 Aug 2018 07:10:46 -0400 Received: from localhost (D57E6652.static.ziggozakelijk.nl [213.126.102.82]) by mail.linuxfoundation.org (Postfix) with ESMTPSA id 005E6BBF; Sat, 4 Aug 2018 09:10:45 +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.4 087/124] microblaze: Fix simpleImage format generation Date: Sat, 4 Aug 2018 11:01:16 +0200 Message-Id: <20180804082705.753003840@linuxfoundation.org> X-Mailer: git-send-email 2.18.0 In-Reply-To: <20180804082702.434482435@linuxfoundation.org> References: <20180804082702.434482435@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.4-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 @@ -21,17 +21,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