Received: by 2002:ad5:474a:0:0:0:0:0 with SMTP id i10csp10793133imu; Thu, 6 Dec 2018 06:55:32 -0800 (PST) X-Google-Smtp-Source: AFSGD/XgIr6CbswbmGHWUCTtR4LibkFmoyUwb1rnOaXCsN6EIwm8o2iDwMI1RcmvZvFBtJUPR13p X-Received: by 2002:a63:1c61:: with SMTP id c33mr23771235pgm.354.1544108132388; Thu, 06 Dec 2018 06:55:32 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1544108132; cv=none; d=google.com; s=arc-20160816; b=H5b+BwXqM8P4ovCbrHHNnOO0AARcV3IW7GmDfrnLmbs5lqwNMBHCPgOWHJ2Y/2mr5G 9xIFt8k1YH/EIYpyK48Jbb+vkGqp1I7X0jD7i4qdmAKv3GnMWCSLi467QttOLWaJYGJM Nt4jGykNnPWbSd3wzofnP2Pq2mvjf189ODQXdh7KnmMQlyuPUbSJM+uSAjq4VKHkbTPr XXBi3wtaf1qhnRS/D8H9g3Wr5J78/F/NFenvgs7BOsPDpILLePfO1MYNm4BF1vBeflC/ 8LHAEEi3VkizrJIgmrBIekYhqsloo779KDAnU4TnZ4dIF+BQyl/UaVQsjoE+AKyySnKQ zCwg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:in-reply-to:mime-version:user-agent:date :message-id:autocrypt:openpgp:from:references:cc:to:subject:reply-to :dkim-signature; bh=ld4hbY7lsJjA1Sx0peaBnIruK6hz1flRyJPy66q+Esw=; b=wgppbiIt2UHk6BIBZOc9WAHbWSHY6P4gcifwn3hBoTVTP1rVECeQQ/3/mXf8vHfSkq 88jaD2+Oqj7myVZqDrq5pr707he2gFnjsN5vSHK5zS79F0VBmseTmrfcgHkib314cBEj rReQ22zaFT3pMo36Xd29WJFF/iwG2h98JeUxALDmHSbDg0a7/sdJiZpCgtP5bGzaIPRS hH6FrkAvAJ7Qf5T3ARUgwDov9/fmkJrictUldGoSqfaFeYm7l8WL/7DYMm5c1dkGYrIf xWjCeuepU5kanbS3MUul/xUAciRoUxItA5w3zyUUpWGtETKCdbirIhDt8FljeoK1lJxI 70gw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@monstr-eu.20150623.gappssmtp.com header.s=20150623 header.b=L0SB4FIi; 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 t5si422494pgc.369.2018.12.06.06.55.16; Thu, 06 Dec 2018 06:55:32 -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=@monstr-eu.20150623.gappssmtp.com header.s=20150623 header.b=L0SB4FIi; 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 S1726872AbeLFOyQ (ORCPT + 99 others); Thu, 6 Dec 2018 09:54:16 -0500 Received: from mail-wr1-f68.google.com ([209.85.221.68]:46573 "EHLO mail-wr1-f68.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1730941AbeLFOow (ORCPT ); Thu, 6 Dec 2018 09:44:52 -0500 Received: by mail-wr1-f68.google.com with SMTP id l9so695620wrt.13 for ; Thu, 06 Dec 2018 06:44:51 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=monstr-eu.20150623.gappssmtp.com; s=20150623; h=reply-to:subject:to:cc:references:from:openpgp:autocrypt:message-id :date:user-agent:mime-version:in-reply-to; bh=ld4hbY7lsJjA1Sx0peaBnIruK6hz1flRyJPy66q+Esw=; b=L0SB4FIiF3CBimVE8oVU9fUwzUL/5ZoG44I3LAsU68rLj7hm9vHUpr+1wYGj0WWHyd 9aHiVyoodAN2qvjIg7NSmOblQEiLuUMHDlZ3A5bJQb5qI3sb9ctonyJM/zs6ew0iLX7F 934vKa5wbqGsC0Rr7gSR57Lx/fbxComKe3Mk5JNiHp2XCUlLXfpOx33recGjCbXV3ZC7 Iyn6VwyhzyHwuFzFgAZObrkNd/dOnO0jdSb7rAda++fuP5ofQvdzRiMu5FT9uEKoTs+i 5bTVB6zrDjP7Krrjte/ORaAEjx8ivZiPOTQyElM0XwlTjRiecc1Ep7tC4DmtKUbjbD66 TIuw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:reply-to:subject:to:cc:references:from:openpgp :autocrypt:message-id:date:user-agent:mime-version:in-reply-to; bh=ld4hbY7lsJjA1Sx0peaBnIruK6hz1flRyJPy66q+Esw=; b=Lzwjw9+U3gAf4YxgirzY+Ysf/7DBXJCDxzLBoy/nmZoWZff2CKsx5KZJMEeGEeI7BU AkouUafI2aN0MNamrA2iwiWKfr780oXwCtzgWD9EHsP2EW5/2K3LQXtkms2R3xE3D0UW Y7Gcib8U5IlYbjL4l081PW48uUA3dc0kbzeRJUFsE1/WIQ8sWWaKdz2NJxNndvTtxoZz GBBiGvbR4nyjrmeCXc4B89uYw+rClnj8F+JkvuO/pNSMmEVYyTq5TnyB6Ea7pjGlGTKK rmZSnXE4IZjyn9KQAtLoEENwfce0Zy3hzOcyzH0RGYFxp/HTJmbye3D4iWRfZ0/622q+ Ro0Q== X-Gm-Message-State: AA+aEWYL6RdBK5UGO11xl9xpvINIXAC4IuBT37TerEzXQZ/smC0Y7AkZ 2mRwShKL7xDVhmgjZ31lOMIeou1SgA9ocg== X-Received: by 2002:a5d:4c8a:: with SMTP id z10mr24884002wrs.75.1544107490652; Thu, 06 Dec 2018 06:44:50 -0800 (PST) Received: from [173.194.76.108] ([149.199.62.129]) by smtp.gmail.com with ESMTPSA id z9sm839217wrs.63.2018.12.06.06.44.46 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Thu, 06 Dec 2018 06:44:49 -0800 (PST) Reply-To: monstr@monstr.eu Subject: Re: [PATCH 0/7] microblaze: fix various problems in building boot images To: Masahiro Yamada Cc: linux-kbuild@vger.kernel.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, Rob Herring , Mark Rutland , Michal Simek References: <1543823457-32478-1-git-send-email-yamada.masahiro@socionext.com> From: Michal Simek Openpgp: preference=signencrypt Autocrypt: addr=monstr@monstr.eu; prefer-encrypt=mutual; keydata= xsFNBFFuvDEBEAC9Amu3nk79+J+4xBOuM5XmDmljuukOc6mKB5bBYOa4SrWJZTjeGRf52VMc howHe8Y9nSbG92obZMqsdt+d/hmRu3fgwRYiiU97YJjUkCN5paHXyBb+3IdrLNGt8I7C9RMy svSoH4WcApYNqvB3rcMtJIna+HUhx8xOk+XCfyKJDnrSuKgx0Svj446qgM5fe7RyFOlGX/wF Ae63Hs0RkFo3I/+hLLJP6kwPnOEo3lkvzm3FMMy0D9VxT9e6Y3afe1UTQuhkg8PbABxhowzj SEnl0ICoqpBqqROV/w1fOlPrm4WSNlZJunYV4gTEustZf8j9FWncn3QzRhnQOSuzTPFbsbH5 WVxwDvgHLRTmBuMw1sqvCc7CofjsD1XM9bP3HOBwCxKaTyOxbPJh3D4AdD1u+cF/lj9Fj255 Es9aATHPvoDQmOzyyRNTQzupN8UtZ+/tB4mhgxWzorpbdItaSXWgdDPDtssJIC+d5+hskys8 B3jbv86lyM+4jh2URpnL1gqOPwnaf1zm/7sqoN3r64cml94q68jfY4lNTwjA/SnaS1DE9XXa XQlkhHgjSLyRjjsMsz+2A4otRLrBbumEUtSMlPfhTi8xUsj9ZfPIUz3fji8vmxZG/Da6jx/c a0UQdFFCL4Ay/EMSoGbQouzhC69OQLWNH3rMQbBvrRbiMJbEZwARAQABzR9NaWNoYWwgU2lt ZWsgPG1vbnN0ckBtb25zdHIuZX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oMggSVn53IRVPB4MzTXVm/Q03c5YXPqgP4bPIF624HAPRnUxCWY1yrZuE4zNPG5dfY0PN RmzhqoTJlA== Message-ID: <19c7bdab-8df8-f7c6-7921-9a4d43dbca64@monstr.eu> Date: Thu, 6 Dec 2018 15:44:43 +0100 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:60.0) Gecko/20100101 Thunderbird/60.2.1 MIME-Version: 1.0 In-Reply-To: <1543823457-32478-1-git-send-email-yamada.masahiro@socionext.com> Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="UP8ZW8Nv7kiW1DZP44Zi1z8HAdOAL0H6o" Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org This is an OpenPGP/MIME signed message (RFC 4880 and 3156) --UP8ZW8Nv7kiW1DZP44Zi1z8HAdOAL0H6o Content-Type: multipart/mixed; boundary="lV6F0GdKRGkgCXZZwIqBeKMUFRsl7PH7E"; protected-headers="v1" From: Michal Simek Reply-To: monstr@monstr.eu To: Masahiro Yamada Cc: linux-kbuild@vger.kernel.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, Rob Herring , Mark Rutland , Michal Simek Message-ID: <19c7bdab-8df8-f7c6-7921-9a4d43dbca64@monstr.eu> Subject: Re: [PATCH 0/7] microblaze: fix various problems in building boot images References: <1543823457-32478-1-git-send-email-yamada.masahiro@socionext.com> In-Reply-To: <1543823457-32478-1-git-send-email-yamada.masahiro@socionext.com> --lV6F0GdKRGkgCXZZwIqBeKMUFRsl7PH7E Content-Type: text/plain; charset=utf-8 Content-Language: en-US Content-Transfer-Encoding: quoted-printable On 03. 12. 18 8:50, Masahiro Yamada wrote: > This patch set fixes various issues in microblaze Makefiles. >=20 > BTW, "simpleImage.
" works like a phony target to generate the > following four images, where the first three are just aliases. >=20 > - arch/microblaze/boot/simpleImage.
: > identical to arch/microblaze/boot/linux.bin >=20 > - arch/microblaze/boot/simpleImage.
.unstrip: > identical to vmlinux >=20 > - arch/microblaze/boot/simpleImage.
.ub: > identical to arch/microblaze/boot/linux.bin.ub >=20 > - arch/microblaze/boot/simpleImage.
.strip: > stripped vmlinux >=20 > I am not sure how much useful those copies are, > but, I tried my best to keep the same behavior. >=20 > IMHO, I guess DTB=3D
would be more sensible, > but it is up to Michal. >=20 >=20 >=20 > Masahiro Yamada (7): > microblaze: fix cleaning of boot images > microblaze: adjust the help to the real behavior > microblaze: move "... is ready" message to arch/microblaze/Makefile > microblaze: fix multiple bugs in arch/microblaze/boot/Makefile > microblaze: add linux.bin* and simpleImage.* to PHONY > microblaze: fix race condition in building boot images > microblaze: remove the unneeded code just in case file copy fails >=20 > arch/microblaze/Makefile | 14 +++++++++----- > arch/microblaze/boot/Makefile | 33 +++++++++++++++++--------------= -- > arch/microblaze/boot/dts/Makefile | 5 +---- > 3 files changed, 27 insertions(+), 25 deletions(-) >=20 One more thing I have in my mind for a while is that will be good to configure kernel build flags from DT and completely get rid of these symbols. XILINX_MICROBLAZE0_USE_MSR_INSTR XILINX_MICROBLAZE0_USE_PCMP_INSTR XILINX_MICROBLAZE0_USE_BARREL XILINX_MICROBLAZE0_USE_DIV XILINX_MICROBLAZE0_USE_HW_MUL XILINX_MICROBLAZE0_USE_FPU It means setup CPUFLAGS based on extracting that values from DT that it all the time match the hardware. It will also simplify all the CPUFLAGS logic which is in arch/microblaze/Makefile. Do you have any idea how this can be done? (I have the same issue in U-Boot too) Thanks, Michal --=20 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 --lV6F0GdKRGkgCXZZwIqBeKMUFRsl7PH7E-- --UP8ZW8Nv7kiW1DZP44Zi1z8HAdOAL0H6o Content-Type: application/pgp-signature; name="signature.asc" Content-Description: OpenPGP digital signature Content-Disposition: attachment; filename="signature.asc" -----BEGIN PGP SIGNATURE----- Version: GnuPG v2.0.22 (GNU/Linux) iEYEARECAAYFAlwJNdsACgkQykllyylKDCGXHwCeMRhtfvZHX8Izhg7CVUrZYzSs 3hkAoJrNgHbAe/LP7naopXGcHGixk/HB =yW57 -----END PGP SIGNATURE----- --UP8ZW8Nv7kiW1DZP44Zi1z8HAdOAL0H6o--