Received: by 2002:ad5:474a:0:0:0:0:0 with SMTP id i10csp9635368imu; Wed, 5 Dec 2018 07:58:20 -0800 (PST) X-Google-Smtp-Source: AFSGD/UMEBk15QDlrWwD5JzrzYAnF6A9sInouQybYijdv2ZvCGPyKU88YIsEWtwuFJr08czq647A X-Received: by 2002:a17:902:bd0a:: with SMTP id p10mr23931174pls.322.1544025500537; Wed, 05 Dec 2018 07:58:20 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1544025500; cv=none; d=google.com; s=arc-20160816; b=DkTqoZwKBN8sFmbS1TgTOQQGKCigfGJOwfQEXbhFBbH/MkxKxoRhsnj8w9ktrRgACp DrTz2MkrNxJugTZ99BfcdN7sEMqe99qCau2K16KsLqpHIl75lQUcqazA/9f55E2E7w7J 2IY/ZCCDEBfjnkbtsBRFBx8rTwFi4Lsy3GH9nNKmPU92L+c4NjB5viLFI5dsU4rGZL+s KmFW8OP26BMdAlUxWn98kibH7GAf95+wyleampQrmHRJ3iKJiXgdNc9meQBOxdcnUV4H 5ihyBSMb+t4j1H5/hFdWCArAQeEin31gDKfsX/R7vvnv38oVRruimrdWvHc5S0ZnTvLL losQ== 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=4NXw887chQRoabO02HsWs+ax0iCGKLUtt8S88sudDxY=; b=TBgvMi+x211VacJ8d/oSQGtTLS6u2w9oL+oA3Gw0iFXz4jISLRMPesp1+Lth+78nq/ 0KBAvnzjF8d9VLDfpcRcjSyPLJBcVlYNXaG0tm6bJNb2aKB/bcXJsMV+H29f45swWXN0 J8ESFmeaMq/y8UdS1suPXfRh42VD4oniFgAZfK2WvFk8TAowJSFDKDahRIcRdto4IemY xBaCnQg+JMl+UzWA2NZ2MVinXX3ziMvU5y3oLqYvsvAoZHgTIuHIrZ7b9ihaEdS0PLPb VxaiXjh+kdJMhirmiAl+Z7RiNF50SG1H9SxUq3mNPhWm1ifHb+3ExmlsJqKHg5QAxUOG YsdA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@monstr-eu.20150623.gappssmtp.com header.s=20150623 header.b=qNMLCOeS; 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 v185si20490838pfb.65.2018.12.05.07.58.05; Wed, 05 Dec 2018 07:58:20 -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=qNMLCOeS; 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 S1728145AbeLEP5Q (ORCPT + 99 others); Wed, 5 Dec 2018 10:57:16 -0500 Received: from mail-wr1-f68.google.com ([209.85.221.68]:34623 "EHLO mail-wr1-f68.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1728060AbeLEP5P (ORCPT ); Wed, 5 Dec 2018 10:57:15 -0500 Received: by mail-wr1-f68.google.com with SMTP id j2so20248748wrw.1 for ; Wed, 05 Dec 2018 07:57:13 -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=4NXw887chQRoabO02HsWs+ax0iCGKLUtt8S88sudDxY=; b=qNMLCOeSOzKNHlRdnEKYIRDKRG8RQ/mkfow9B4dqY1uy2XSNopubt6dgEpf0YI0tKJ GYU4S28eLzrYU5Kjz0nxdGxvFOeV/lf/xkRHEFdbGQ81+QDtB/n0HwguUOOhdOj/jTlF 0UJEA3S9IR2G2wGDWmCFR8RgqBlWIlV/Mdi2UjSrf5+Y8AYv06qwhTe7qaFiiS67sq8g H2QjdX12tGZOHZrCZg6NhRvcbtFkf8VvKXKvRIN3E1JVgA5N5CMzSljhRzAv+RcQkgn0 IkDOopgEiLvR38KSaRLTRYKAQVbpx0dGqGpOqaqDZefcCZOf9+yqYwd2qphc2tHCbAyY ltCQ== 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=4NXw887chQRoabO02HsWs+ax0iCGKLUtt8S88sudDxY=; b=X4nWcklbvPdzpIo/hYSPAqnxLhCL/r3VlLZ4kYOuYD/zdHo5JJ3w3yJUfqSzICCded kgBxmERrv20QSh5zJkBaErwHkGlg78xr62vw3fYvGtbi6tdnfwb0Rhy5Kk8kuxkJvXfY doDFK+YMaP+l7FjiHZgiPJGTZZV9SGiqOq0jZCLxDj02wPsq15md7PpgtmsBv5CLDgZB f1DaCoCMBZtBQAeN2udypwfoCV0anItjKvyXFWLCLuj2kbHO8Em4FibkAPBPMj7hHAw2 +8vT//QejMI1wfoZ4kCKyBOZfdrfRs/sIIcsSNaAMfGZMPwajof2BX6lTG253LBkaSf+ f2og== X-Gm-Message-State: AA+aEWZvt9rWUvmh4xD/fcw4pPM9nZ26iC3GNOQv1BjHQvIH6rtq9Kn+ ZbtOfZ7Whe2FZwandyWogR/hOIiyDmpkRQ== X-Received: by 2002:a5d:4a0c:: with SMTP id m12mr22039502wrq.38.1544025432978; Wed, 05 Dec 2018 07:57:12 -0800 (PST) Received: from [74.125.71.109] ([149.199.62.131]) by smtp.gmail.com with ESMTPSA id f187sm11590246wma.4.2018.12.05.07.57.10 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Wed, 05 Dec 2018 07:57:12 -0800 (PST) Reply-To: monstr@monstr.eu Subject: Re: [PATCH 4/7] microblaze: fix multiple bugs in arch/microblaze/boot/Makefile To: Masahiro Yamada Cc: linux-kbuild@vger.kernel.org, linux-kernel@vger.kernel.org References: <1543823457-32478-1-git-send-email-yamada.masahiro@socionext.com> <1543823457-32478-5-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 ZWsgPG1vbnN0ckBtb25zdHIuZXU+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ggSVn53IRVPB4MzTXVm/Q03c5YXPqgP4bPIF624HAPRnUxCWY1yrZuE4zNPG5dfY0PN RmzhqoTJlA== Message-ID: <16f2f621-d051-a2e3-c2f3-e69c82140c46@monstr.eu> Date: Wed, 5 Dec 2018 16:57:08 +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-5-git-send-email-yamada.masahiro@socionext.com> Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="BnUkCeNLXoVlnWtd6lIn4oDFv7lu0YjFw" 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) --BnUkCeNLXoVlnWtd6lIn4oDFv7lu0YjFw Content-Type: multipart/mixed; boundary="PCP2oxlQHJk1kGZWltWivnfGenSpx3ymf"; protected-headers="v1" From: Michal Simek Reply-To: monstr@monstr.eu To: Masahiro Yamada Cc: linux-kbuild@vger.kernel.org, linux-kernel@vger.kernel.org Message-ID: <16f2f621-d051-a2e3-c2f3-e69c82140c46@monstr.eu> Subject: Re: [PATCH 4/7] microblaze: fix multiple bugs in arch/microblaze/boot/Makefile References: <1543823457-32478-1-git-send-email-yamada.masahiro@socionext.com> <1543823457-32478-5-git-send-email-yamada.masahiro@socionext.com> In-Reply-To: <1543823457-32478-5-git-send-email-yamada.masahiro@socionext.com> --PCP2oxlQHJk1kGZWltWivnfGenSpx3ymf 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 Makefile is wrong in multiple ways. >=20 > The first issue is the breakage of 'linux.bin.ub' target since commit > ece97f3a5fb5 ("microblaze: Fix simpleImage format generation") > because the addition of UIMAGE_{IN,OUT} obviously affected it. >=20 > make ARCH=3Dmicroblaze CROSS_COMPILE=3Dmicroblaze-linux- linux.bin.ub > [ snip ] > OBJCOPY arch/microblaze/boot/linux.bin > UIMAGE arch/microblaze/boot/linux.bin.ub.ub > /usr/bin/mkimage: Can't open arch/microblaze/boot/linux.bin.ub: No such= file or directory > make[1]: *** [arch/microblaze/boot/Makefile;14: arch/microblaze/boot/li= nux.bin.ub] Error 1 > make: *** [arch/microblaze/Makefile;83: linux.bin.ub] Error 2 >=20 > The second issue is the use of the "if_changed" multiple times for > the same target. >=20 > As commit 92a4728608a8 ("x86/boot: Fix if_changed build flip/flop bug")= > pointed out, this never works properly. Moreover, generating multiple > images as a side-effect is extremely confusing and wrong. >=20 > As far as I understood, "simpleImage.
" works like a phony target > to generate the following four images. >=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 Your understanding is correct. It always worked like that simpleImage.
was generating 4 files. I have wired that long time ago because I wanted to boot image in U-Boot that's why .ub was also generated. Definitely simpleImage.
.ub can be another target and not automatically generated by simpleImage.
Acked-by: Michal Simek 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 --PCP2oxlQHJk1kGZWltWivnfGenSpx3ymf-- --BnUkCeNLXoVlnWtd6lIn4oDFv7lu0YjFw 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) iEYEARECAAYFAlwH9VQACgkQykllyylKDCGLuwCgmViAYSvhdEOBuYUZqq0/eRcY RSgAnA8W8k7xFoUbE5vFy6JD1ipy3BbV =qR2K -----END PGP SIGNATURE----- --BnUkCeNLXoVlnWtd6lIn4oDFv7lu0YjFw--