Received: by 2002:ad5:474a:0:0:0:0:0 with SMTP id i10csp10298167imu; Wed, 5 Dec 2018 21:10:34 -0800 (PST) X-Google-Smtp-Source: AFSGD/UyF1859fD7+lE/5WJbe1JxR09gZj3jNRS3tRQwIpfEAA1TqCzn5dKPu/JoV16Z5jaYDvV/ X-Received: by 2002:a17:902:28e6:: with SMTP id f93mr26557415plb.239.1544073034514; Wed, 05 Dec 2018 21:10:34 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1544073034; cv=none; d=google.com; s=arc-20160816; b=U16HT9MhVtG7O/IMYEJrQk1kYy3DphsrTaPB1PfwkiZCztusNqe2EENyvycgVjxGrc QuLJ8zWaxZ1xfFYRbWbLci6UO6rU4t39hfZA08pxkLJLETQB0kbkEXItoB7PDAOMA9pV HtBdKzT6Dyjl20w+ofHJ4PXUK4kq1tZg1vr5LvryaUh3gLUbLGtaE9f0gqiSw2RmiMaS nM5xfZu0yxy9q54xKeHHJDoxyPg1OpMRTmno1Rt7fz/J1HOYIwq8POYIEpzIfPrn/yct 98iNugF6v/vjsn11oLenFCFIjxFgm/Biq0eNLnqNN6QiDCNGts43ZquGeVUdC4CI5IbU 2PoA== 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=Q14TTszRC0hOLLnvUnoEJ8pXkxxnNqLH9l7LvryZJCo=; b=pFGqTHWtDNSf8EJlAHCogGVm1QBZg2fzd0ojY224r46Gm8jDOvQuOCq2njXm+y3sXR Cq5xSkg6YrOAB/exwjSPYJT6VXE+Oi6p2CNKJ4DP9Q/ve1Ayf5mOVIIsVvPgtUU96sR7 hlEEu3Iq9ZM2Xcyq+Rp5Amlg/wM97MkUf3qCIIdQz+Ppc3yVxPa14MGzw6ri3Yn2GiIy 0amwZZ48tOXuxFNN3DcGqNtYD4HaS2P9KYr/vKCpexY1WG/CaU0ITlEj4++7AGdxuzab fuYhymwQq6kinGSqUw7/a9uDtYezSnCVtt2BqWLSRZy3YCYJY3WRBdhmaGibKKo3nO8k MhPA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@nifty.com header.s=dec2015msa header.b=2mIdiaBi; 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 t20si18745606pgl.211.2018.12.05.21.10.17; Wed, 05 Dec 2018 21:10:34 -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=2mIdiaBi; 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 S1728930AbeLFFJn (ORCPT + 99 others); Thu, 6 Dec 2018 00:09:43 -0500 Received: from conssluserg-01.nifty.com ([210.131.2.80]:17092 "EHLO conssluserg-01.nifty.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1728489AbeLFFJm (ORCPT ); Thu, 6 Dec 2018 00:09:42 -0500 Received: from mail-vs1-f47.google.com (mail-vs1-f47.google.com [209.85.217.47]) (authenticated) by conssluserg-01.nifty.com with ESMTP id wB659POx024823; Thu, 6 Dec 2018 14:09:25 +0900 DKIM-Filter: OpenDKIM Filter v2.10.3 conssluserg-01.nifty.com wB659POx024823 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=nifty.com; s=dec2015msa; t=1544072965; bh=Q14TTszRC0hOLLnvUnoEJ8pXkxxnNqLH9l7LvryZJCo=; h=References:In-Reply-To:From:Date:Subject:To:Cc:From; b=2mIdiaBiYNtd62bc1o+8my7DrieDtcb5j587v23GD7gVqu/aXC6OUWYSVd5hMiMs1 mtTmIgpRT1XWi+cN99k9HH9jN9idtymKqHrUAYHiYOhcwUh07XGiJ7kY3Xro1Rlvup Vug7QjvVvG1xueNy2i3TkYEWXeSvhlqN//pV2zNKcKW7BPCUsCwx40z3swDRf9oJBM Ntas2pr5TjzFlGHlKEuv6nZCMQ1TYtrhUguVBk9mJPOqOoYUU3vxSfbn49CwkXKRgU EcpMrASOv4bgFTYCmBppv//rNFQr/gBEJSdwXiroC+jeTFz7DusmugAkKD8aW/BqRC 9rTwDzVRQVjPA== X-Nifty-SrcIP: [209.85.217.47] Received: by mail-vs1-f47.google.com with SMTP id h18so13567010vsj.4; Wed, 05 Dec 2018 21:09:25 -0800 (PST) X-Gm-Message-State: AA+aEWaWWrxxD0dhA1jiLpSlg/z66TL+Lw4xN+jfGrO6eWbk6df2tqRD 5Vwf26G5Tdaik3ifIqgMjsVrxSP7Z22Pn5DnzzE= X-Received: by 2002:a67:a858:: with SMTP id r85mr11718186vse.215.1544072964462; Wed, 05 Dec 2018 21:09:24 -0800 (PST) MIME-Version: 1.0 References: <1543823457-32478-1-git-send-email-yamada.masahiro@socionext.com> In-Reply-To: From: Masahiro Yamada Date: Thu, 6 Dec 2018 14:08:48 +0900 X-Gmail-Original-Message-ID: Message-ID: Subject: Re: [PATCH 0/7] microblaze: fix various problems in building boot images To: Michal Simek Cc: Linux Kbuild mailing list , DTML , Linux Kernel Mailing List , Rob Herring , Mark Rutland 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 1:41 AM Michal Simek wrote: > > On 03. 12. 18 8:50, Masahiro Yamada wrote: > > This patch set fixes various issues in microblaze Makefiles. > > > > BTW, "simpleImage.
" works like a phony target to generate the > > following four images, where the first three are just aliases. > > > > - arch/microblaze/boot/simpleImage.
: > > identical to arch/microblaze/boot/linux.bin > > It is not - fdt section should be empty. > simpleImage has this section filled. > > > > > - arch/microblaze/boot/simpleImage.
.unstrip: > > identical to vmlinux > > The same here with filled section. vmlinux is built anyway for whatever target you are building. What is the point of making a copy of vmlinux? They are the same. You can confirm it by 'diff' $ export CROSS_COMPILE=microblaze-linux- $ make ARCH=microblaze defconfig $ make -j8 ARCH=microblaze simpleImage.system $ diff arch/microblaze/boot/simpleImage.system.unstrip vmlinux > > > > - arch/microblaze/boot/simpleImage.
.ub: > > identical to arch/microblaze/boot/linux.bin.ub > > as above. > > > > > - arch/microblaze/boot/simpleImage.
.strip: > > stripped vmlinux > > And this is there because unstrip version is quite huge and for early > issues you need to know only some symbols that's why debugger is not > overflow with stuff which none needs. > Maybe this is not an issue now but that strip version is used a lot. > > > > > > I am not sure how much useful those copies are, > > but, I tried my best to keep the same behavior. > > > > IMHO, I guess DTB=
would be more sensible, > > but it is up to Michal. > > What do you mean by this exactly? As I showed above, arch/microblaze/boot/simpleImage.system.unstrip is exactly the same as vmlinux. arch/microblaze/boot/simpleImage.
is objcopy'ed binary of vmlinux. arch/microblaze/boot/simpleImage.
.ub is objcopy'ed binary of vmlinux, with u-boot header prepended. You have already build-rules for them. It is true that the stripped image only exist in simpleImage, but I think "arch/microblaze/boot/vmlinux.strip" is a more sensible name. What I want to point out is: "Which file should be compiled in", is a part of the configuration. We generally do not change the final target name just for the difference of configuration. For example, ARM just uses "vmlinux", "Image", "zImage", etc. Never duplicate target-specific copies depending on configuration. Why does microblaze create copies for each DT instead of using generic image like linux.bin, linux.bin.ub, etc. ? If using generic image names is acceptable, "make simpleImage.
" is just a shorthand of "make DTB=
vmlinux linux.bin linux.bin.ub vmlinux.strip" Only the benefit of this approach is, you can keep all images for multiple boards at the same time. $ make ARCH=microblaze simpleImage.board1 $ make ARCH=microblaze simpleImage.board2 $ make ARCH=microblaze simpleImage.board3 Since I do not know how many users rely on this usage, I said "it is up to you". > Definitely thanks for looking at this. > Michal > > > > -- > Michal Simek, Ing. (M.Eng), OpenPGP -> KeyID: FE3D1F91 > w: www.monstr.eu p: +42-0-721842854 > Maintainer of Linux kernel - Xilinx Microblaze > Maintainer of Linux kernel - Xilinx Zynq ARM and ZynqMP ARM64 SoCs > U-Boot custodian - Xilinx Microblaze/Zynq/ZynqMP/Versal SoCs > > -- Best Regards Masahiro Yamada