Received: by 10.213.65.68 with SMTP id h4csp3949568imn; Tue, 10 Apr 2018 07:05:00 -0700 (PDT) X-Google-Smtp-Source: AIpwx4+U1feJC37fHfkx/M1rns3Ngp3fbYzlV7gAHOsHEK8EoJ4YmXz2P++4MoFYjCDDVo5+FTU7 X-Received: by 2002:a17:902:b105:: with SMTP id q5-v6mr574520plr.173.1523369099983; Tue, 10 Apr 2018 07:04:59 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1523369099; cv=none; d=google.com; s=arc-20160816; b=a5hpCptkC1k1qU3rrE3tg4djSoVPrCAKv1M+s2cVC8L3JCGSDCO8iemGRbuv1f+RBi x/164RQWMQKchMs6A3gbiY4gyPcxg11GpHf+OExV5bTNO3xqyfi4vTXnTEoqMdlJegFL 8Wv7KUWkvL5No4fJdI1YQNMQDypsf6wOx8lw1QQ8dsu2TNKnRg2SUycWjHCjN008TFTY L6zhXPXsmg3OK5tyseNFvA59T5jT/YX4HVAsJ+H4rBtnM0i5EQvcp86F+eUoIBTTG3Ct wC3Wlcd0FSapXbJaOUp0ovaw7mTJKnoojwWqpBORvNmpLEqoBAszesRiyHPBeMekgWqm o0tw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:message-id:date:subject:cc:to:from :dkim-signature:arc-authentication-results; bh=XceanB33lgKu2mE1fbaQbTI19XeLbC9l6iR/ljDQk80=; b=mrfc3ENeYWc2vGuvgeBsoPYnpsceG/7nAszVDBDcnZ792emg5LcaBWy5wJ89r5un0A n1c92WpYF7LvZt6latVcqqZyCJgdvxCbFqlx4i7sOuhAaERuUujmf5l4C5Z/WGUm41mD VfG17nwV89IAFv+v1YONCi9N1Xy9EXby2u+LeUKT98ruAhJTDNEh+FYUFAnJtDuyafe1 fQp4WlXpQNGWyc1X+qc6J5AaNNgDODXGpxCj5MPS01sPbwzZVUxQTS40ZA0E6a8OGay/ K3hdXRPkNeXO8I8MbJ/XyrCGAF+PjLtPOEIvPfBesyFWCWrT+MVMTgVZd/8AOBLT5iUD 8Wmg== ARC-Authentication-Results: i=1; mx.google.com; dkim=fail header.i=@monstr-eu.20150623.gappssmtp.com header.s=20150623 header.b=wMIbGqzu; 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 z63si1869259pgb.28.2018.04.10.07.04.21; Tue, 10 Apr 2018 07:04:59 -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; dkim=fail header.i=@monstr-eu.20150623.gappssmtp.com header.s=20150623 header.b=wMIbGqzu; 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 S1753301AbeDJOAu (ORCPT + 99 others); Tue, 10 Apr 2018 10:00:50 -0400 Received: from mail-wr0-f196.google.com ([209.85.128.196]:36560 "EHLO mail-wr0-f196.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752888AbeDJOAt (ORCPT ); Tue, 10 Apr 2018 10:00:49 -0400 Received: by mail-wr0-f196.google.com with SMTP id y55so12941224wry.3 for ; Tue, 10 Apr 2018 07:00:49 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=monstr-eu.20150623.gappssmtp.com; s=20150623; h=sender:from:to:cc:subject:date:message-id; bh=XceanB33lgKu2mE1fbaQbTI19XeLbC9l6iR/ljDQk80=; b=wMIbGqzuiM0E07wdPc/XNis02gwLvd+XyuiJty3+VqB4UoT8ZnljBUNCHIJYGa1Mfk PrWKE0o84VfWL0LqMS7d/Y6pj9NU/U2UGFz+FLe7Ymg6+SEEuasKp78DMTdelJbHTo1m aG2h6iD6OlVfq1N00HsjtRPThRkLeaNUblJ8pYnmhmHiwMQHA4stetIkiTQcDWdBFDsJ EiXnqWi5Hrk3fcOqk3nRDJkJA8iP31CxgQ6Yo4B7Uq9n8PrpeqO9zKNdXyPLHF3tmvx6 pkxC9ZBtemRWsnBg/WxjFIevoga/fIFq7OabrXqRwPUae/wUo/KK0ZmApQQSvRQvYp2x VAGw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:sender:from:to:cc:subject:date:message-id; bh=XceanB33lgKu2mE1fbaQbTI19XeLbC9l6iR/ljDQk80=; b=XkBz0KCcQONueRL6J0CWVPQcaaLyXZWchbjx3mHdyz1Jt0eAJJfVBgx7qrfUEf2LYf eQx93Ktns1KpCJsbFgzz34wLV2XGSr3Z0vhqs/cQn5BJPcmBh+JHk8tBNfkYF4rOQx9Y wlZDzhQ4maa3zlB6/hLORF234JIMI7au2Y6nxvLGXpjCddvpx3AsVhILXBbsMMhB/WNT RZuaxe+yXxhiZQZeydqkROYtDFkkImMJymDW29OTH2Wga3tWDp3zDJ2e/ZVg7LAv4znZ vvcoQ9HsPX8k8Ja+wgmKdkdklIp/Ln8ljV2cwbJ2ZB/EdK94+FhsjjflFd1mRsndxAjU 1wgQ== X-Gm-Message-State: ALQs6tCfgSdIgmyUuPuuTpaYM1cQzxYV6jIrNwx483QpfY4UrybuLWds Vikn0dMJVVVg19BqhhzvN8BJk1GS X-Received: by 10.223.173.72 with SMTP id p66mr420576wrc.191.1523368848099; Tue, 10 Apr 2018 07:00:48 -0700 (PDT) Received: from localhost (nat-35.starnet.cz. [178.255.168.35]) by smtp.gmail.com with ESMTPSA id k35sm2256186wre.55.2018.04.10.07.00.47 (version=TLS1_2 cipher=AES128-SHA bits=128/128); Tue, 10 Apr 2018 07:00:47 -0700 (PDT) From: Michal Simek To: linux-kernel@vger.kernel.org, monstr@monstr.eu Cc: Masahiro Yamada , Philippe Ombredanne , Kate Stewart , Greg Kroah-Hartman Subject: [PATCH] microblaze: Fix simpleImage format generation Date: Tue, 10 Apr 2018 16:00:46 +0200 Message-Id: X-Mailer: git-send-email 1.9.1 Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org 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 --- arch/microblaze/boot/Makefile | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/arch/microblaze/boot/Makefile b/arch/microblaze/boot/Makefile index fd46385a4c97..600e5a198bd2 100644 --- a/arch/microblaze/boot/Makefile +++ b/arch/microblaze/boot/Makefile @@ -22,17 +22,19 @@ $(obj)/linux.bin.gz: $(obj)/linux.bin FORCE 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 -- 1.9.1