Received: by 2002:ad5:474a:0:0:0:0:0 with SMTP id i10csp10309339imu; Wed, 5 Dec 2018 21:29:28 -0800 (PST) X-Google-Smtp-Source: AFSGD/WXvP15sb1a9JTpeNmrVAhwKbVIIP8xRyg8a3rZPkoAaa26PgZJctfWHAgF1dBSWL+ZumPd X-Received: by 2002:a17:902:848d:: with SMTP id c13mr27216112plo.257.1544074168279; Wed, 05 Dec 2018 21:29:28 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1544074168; cv=none; d=google.com; s=arc-20160816; b=ICx9olWu9ZAXKkvZkOg9zPjUYlsFhOcTg+CZZ4oT5dFiEepyWrGvnKZjNGUa82ci02 ALMq3mWwQe5hTac8yq7xiFniB3UmOHnMe2tOMiwcnVNunwMt5zGlgFL553EHJsbMhbsx 7ZjftkR8bGsvuRKsJQnfGluR7q5ra1wctA/cqAsT4X0LNFjJaAauJrj+px1taPf6Tbf8 LGPj+URPX8MU8VjZl4HjKdrm3hucuZ2JFTpRYYCmqzW7/9uKka8Z4Qy9KUnqGqRuWt9Q +U8PL3tuRRJCN+zJW1JlvsXoMrqdinOj2t4Ks/bVkn67C15zWSvcuGUpxllzTljFlPdF 2J1w== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version:dkim-signature:dkim-filter; bh=kzOtbb4tpevJktViBvDn68r+SLqFyOEmV1kscoO1tEw=; b=A+11k4Pr/5LuQPWbauSCPSPf3E6AccBiTXRlA1LTEtCmLNtwfmf2gXfdnElp4HD2LI t4LQQVF25HSDp4XsMKwDqc5XfpZb40MbSWdCf6fhwqh5CtrC7XGWspbcf6g5lhxalVFV a2wJPliHUuw+xtwmIR73mExarCossSCi6XNXpUbKxFh4DxwT5rE9+9llTmRR2i4WkLmK g8jQKBEE02OO2jk0yscTNRluMCsn81BmMTLF5EZyDqZ+JYmp8fq7m0UjZGhePtWBY4Le li887q9x4kc5HNhOZsCyAFH+2PLZ+nzNcY6Tyc2yKaiiPOALHeIdRIm3CfRdVZ5N6ZEd 0UZA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@nifty.com header.s=dec2015msa header.b=qiVN8Weu; 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 l5si21378385plt.5.2018.12.05.21.29.11; Wed, 05 Dec 2018 21:29:28 -0800 (PST) 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=pass header.i=@nifty.com header.s=dec2015msa header.b=qiVN8Weu; 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 S1728909AbeLFF2g (ORCPT + 99 others); Thu, 6 Dec 2018 00:28:36 -0500 Received: from conssluserg-02.nifty.com ([210.131.2.81]:27082 "EHLO conssluserg-02.nifty.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1728294AbeLFF2f (ORCPT ); Thu, 6 Dec 2018 00:28:35 -0500 Received: from mail-vk1-f178.google.com (mail-vk1-f178.google.com [209.85.221.178]) (authenticated) by conssluserg-02.nifty.com with ESMTP id wB65SQNt007698; Thu, 6 Dec 2018 14:28:27 +0900 DKIM-Filter: OpenDKIM Filter v2.10.3 conssluserg-02.nifty.com wB65SQNt007698 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=nifty.com; s=dec2015msa; t=1544074107; bh=kzOtbb4tpevJktViBvDn68r+SLqFyOEmV1kscoO1tEw=; h=References:In-Reply-To:From:Date:Subject:To:Cc:From; b=qiVN8Weuqpe4mLmoq/haZ2oC3ZTdHR9uDs5wjKEXf23wjXYUb7Xfd2z0V1+TDOByS W/GDWHpm91i84QQQ0YuoBZ5L2+4f0tnB7prEMPBAZlinexfwLUNRocSXzG1YeByjzg dqWkodbIi/VssmrC6wOtGrKtWrXhibtVenKhRdlkTtokGzV81TyLL80zVr44OjDDn2 pAo6p7yzTnOA8arX8M2ySFbQhnNDRQtzxOWErQ+H6r98r2iUWl0odIZXlxgv4HxYJY XnEHJE3r/yPSNXVDl7i1/R9xYx6mpDdxyf0QzVyeuoupToXB7+uIqP9IOK0Ntud1XH KKQ9tOhG8/rEw== X-Nifty-SrcIP: [209.85.221.178] Received: by mail-vk1-f178.google.com with SMTP id v70so5227735vkv.7; Wed, 05 Dec 2018 21:28:27 -0800 (PST) X-Gm-Message-State: AA+aEWZ6w33e4NQm3wgSzXCdZbVxZ21hVR1PhttnE5dd4uh8JiHcwV5L OQQ4CUw8aIg6lTF7rmItWXqkcK7SmeqfG/R7zaY= X-Received: by 2002:a1f:6bc8:: with SMTP id k69mr11618110vki.84.1544074106175; Wed, 05 Dec 2018 21:28:26 -0800 (PST) MIME-Version: 1.0 References: <1543823457-32478-1-git-send-email-yamada.masahiro@socionext.com> <1543823457-32478-3-git-send-email-yamada.masahiro@socionext.com> <80bf0f6e-8f1f-314e-b22d-6e786cf15e45@monstr.eu> In-Reply-To: <80bf0f6e-8f1f-314e-b22d-6e786cf15e45@monstr.eu> From: Masahiro Yamada Date: Thu, 6 Dec 2018 14:27:50 +0900 X-Gmail-Original-Message-ID: Message-ID: Subject: Re: [PATCH 2/7] microblaze: adjust the help to the real behavior To: Michal Simek Cc: Linux Kbuild mailing list , Linux Kernel Mailing List 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 Hi Michal, On Thu, Dec 6, 2018 at 12:41 AM Michal Simek wrote: > > On 03. 12. 18 8:50, Masahiro Yamada wrote: > > "make ARCH=microblaze help" mentions simpleImage.
.unstrip, > > but it never works because Makefile assumes "system.unstrip" is > > the name of DT. > > > > $ make ARCH=microblaze CROSS_COMPILE=microblaze-linux- simpleImage.system.unstrip > > [ snip ] > > make[1]: *** No rule to make target 'arch/microblaze/boot/dts/system.unstrip.dtb', needed by 'arch/microblaze/boot/dts/system.dtb'. Stop. > > make: *** [Makefile;1060: arch/microblaze/boot/dts] Error 2 > > make: *** Waiting for unfinished jobs.... > > > > Rip off the never-working target. > > > > In my understanding, simpleImage.
works like a phony target that > > generates multiple images. Reflect the behavior to the help message. > > > > Signed-off-by: Masahiro Yamada > > --- > > > > arch/microblaze/Makefile | 4 +--- > > 1 file changed, 1 insertion(+), 3 deletions(-) > > > > diff --git a/arch/microblaze/Makefile b/arch/microblaze/Makefile > > index 0823d29..97e1384 100644 > > --- a/arch/microblaze/Makefile > > +++ b/arch/microblaze/Makefile > > @@ -89,9 +89,7 @@ define archhelp > > echo '* linux.bin - Create raw binary' > > echo ' linux.bin.gz - Create compressed raw binary' > > echo ' linux.bin.ub - Create U-Boot wrapped raw binary' > > - echo ' simpleImage.
- ELF image with $(arch)/boot/dts/
.dts linked in' > > - echo ' - stripped elf with fdt blob' > > - echo ' simpleImage.
.unstrip - full ELF image with fdt blob' > > + echo ' simpleImage.
- Create images with $(arch)/boot/dts/
.dts linked in' > > echo ' *_defconfig - Select default config from arch/microblaze/configs' > > echo '' > > echo ' Targets with
embed a device tree blob inside the image' > > > > I understand what you are trying to say but I would still like to keep > information about unstrip file. > It is correct that it is not build target. It is just generated file and > message above was used for description what it is. > Definitely agree that this should be the part of targets but it should > be in description. > The same is for missing description for simpleImage.
.strip and > simpleImage.
.ub files. > > Thanks, > Michal > If we want to be precise to the current behavior, we could describe more. (Is it too much?) Architecture specific targets (microblaze): * linux.bin - Create raw binary linux.bin.gz - Create compressed raw binary linux.bin.ub - Create U-Boot wrapped raw binary simpleImage.
- Create the following images with arch/macroblaze/boot/dts/
.dts linked in simpleImage.
: raw image simpleImage.
.ub : raw image with U-Boot header simpleImage.
.unstrip: ELF (identical to vmlinux) simpleImage.
.strip : stripped ELF *_defconfig - Select default config from arch/microblaze/configs If you want to modify as you like, I will not touch it though. BTW, "make ARCH=microblaze help" looks like follows: * linux.bin - Create raw binary linux.bin.gz - Create compressed raw binary linux.bin.ub - Create U-Boot wrapped raw binary simpleImage.
- ELF image with /boot/dts/
.dts linked in - stripped elf with fdt blob simpleImage.
.unstrip - full ELF image with fdt blob *_defconfig - Select default config from arch/microblaze/configs Since "arch" is not set anywhere, $(arch) is empty, "ELF image with /boot/dts/
.dts linked in" looks strange. -- Best Regards Masahiro Yamada