Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from phobos.denx.de (phobos.denx.de [85.214.62.61]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by smtp.lore.kernel.org (Postfix) with ESMTPS id CC354C83F2F for ; Thu, 31 Aug 2023 19:24:39 +0000 (UTC) Received: from h2850616.stratoserver.net (localhost [IPv6:::1]) by phobos.denx.de (Postfix) with ESMTP id 4442986590; Thu, 31 Aug 2023 21:24:38 +0200 (CEST) Authentication-Results: phobos.denx.de; dmarc=pass (p=none dis=none) header.from=konsulko.com Authentication-Results: phobos.denx.de; spf=pass smtp.mailfrom=u-boot-bounces@lists.denx.de Authentication-Results: phobos.denx.de; dkim=pass (1024-bit key; unprotected) header.d=konsulko.com header.i=@konsulko.com header.b="LBGy6eOz"; dkim-atps=neutral Received: by phobos.denx.de (Postfix, from userid 109) id 122D086703; Thu, 31 Aug 2023 21:24:37 +0200 (CEST) Received: from mail-yw1-x112f.google.com (mail-yw1-x112f.google.com [IPv6:2607:f8b0:4864:20::112f]) (using TLSv1.3 with cipher TLS_AES_128_GCM_SHA256 (128/128 bits)) (No client certificate requested) by phobos.denx.de (Postfix) with ESMTPS id 38D4A86590 for ; Thu, 31 Aug 2023 21:24:34 +0200 (CEST) Authentication-Results: phobos.denx.de; dmarc=pass (p=none dis=none) header.from=konsulko.com Authentication-Results: phobos.denx.de; spf=pass smtp.mailfrom=trini@konsulko.com Received: by mail-yw1-x112f.google.com with SMTP id 00721157ae682-592976e5b6dso13069697b3.2 for ; Thu, 31 Aug 2023 12:24:34 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=konsulko.com; s=google; t=1693509873; x=1694114673; darn=lists.denx.de; h=in-reply-to:content-disposition:mime-version:references:message-id :subject:cc:to:from:date:from:to:cc:subject:date:message-id:reply-to; bh=L7KGnvV/GX3EmNiFtO0bHX5zD8fuHRQVRhTs6bukjVc=; b=LBGy6eOznlwizN5rb1+kKnmlum2U6JkU88WWjnjJyatqD7x2Jy5sUyd2PXZ7JnL8qq 4z2hnCHMMXHWJ2qE1/AftxbJodRqgSEPD3Zm6fdQYohFxmVoAMy+7k6QpkZsswFX823z mawF8g2hp03BuEjnhrwsER1igW0uuAUOYCWkI= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20221208; t=1693509873; x=1694114673; h=in-reply-to:content-disposition:mime-version:references:message-id :subject:cc:to:from:date:x-gm-message-state:from:to:cc:subject:date :message-id:reply-to; bh=L7KGnvV/GX3EmNiFtO0bHX5zD8fuHRQVRhTs6bukjVc=; b=Svx+gjHCfyMngV7w6nn7uoIPKhgxDdmI/0qcd+9eJ3hb5SRUFrPu6mxihbLWS5/BB2 h/ljy4X9AH9kj5uMQKGjcgPNgk8f13+0fzf+paK1Jsb7ThgqxHVmHYRM468zD/2hXfc7 yj0KhgCCY7F2voy46rjz2Gclyw6UPLAS8xsTPNtR3em4xttsX3UA1HEKcLn4mFnkO3wR zcOnsjBjdY5nMQi88HwKTyQ+M6fDf4TxheCMDo2Fl/yv7ts3gPFyhU9KcLrJGPMsEF6C HIXfSQsznP3sYUTd/CrtGgUvEFtlBh+thqaWzN3q6qNEt5Joon8dVEaw4CKVN6XT69Dt 3XfA== X-Gm-Message-State: AOJu0Yw+kdvXe05p+XEb58BNQmg8bCOqFyKiDrZn/lENlMfD7SVWE0mE D1j/ArcV4TPiNYZDQBM9meXTWg== X-Google-Smtp-Source: AGHT+IG+uB36+eJbMYr39+3iDRQCzGIjcql7JVh8NsqlQHR/oteBx7poor7c5BGMuxtr6oKDjtpaqA== X-Received: by 2002:a81:528a:0:b0:583:d6bb:4e96 with SMTP id g132-20020a81528a000000b00583d6bb4e96mr441798ywb.8.1693509872874; Thu, 31 Aug 2023 12:24:32 -0700 (PDT) Received: from bill-the-cat (2603-6081-7b00-6400-1cd4-1a46-fd5d-6cab.res6.spectrum.com. [2603:6081:7b00:6400:1cd4:1a46:fd5d:6cab]) by smtp.gmail.com with ESMTPSA id w191-20020a8149c8000000b00570253fc3e5sm601562ywa.105.2023.08.31.12.24.31 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 31 Aug 2023 12:24:32 -0700 (PDT) Date: Thu, 31 Aug 2023 15:24:30 -0400 From: Tom Rini To: Simon Glass Cc: Alper Nebi Yasak , Dillon Min , Ivan Mikhaylov , Jonas Karlman , Kamil Lulko , Marek Vasut , Michael Walle , Neha Malcom Francis , Patrice Chotard , Patrick Delaunay , Peng Fan , Philippe Reynes , Stefan Herbrechtsmeier , Vikas Manocha , u-boot@dh-electronics.com, uboot-stm32@st-md-mailman.stormreply.com, U-Boot Mailing List Subject: Re: [PATCH 0/6] Attempt to enforce standard extensions for build output Message-ID: <20230831192430.GP3101304@bill-the-cat> References: <20230824030304.1555547-1-sjg@chromium.org> <40d6d839-6eaf-4950-bf37-aaad0f2d5e03@gmail.com> <20230831190709.GO3101304@bill-the-cat> MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha512; protocol="application/pgp-signature"; boundary="r+xHhn8itHORRzIp" Content-Disposition: inline In-Reply-To: X-Clacks-Overhead: GNU Terry Pratchett X-BeenThere: u-boot@lists.denx.de X-Mailman-Version: 2.1.39 Precedence: list List-Id: U-Boot discussion List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: u-boot-bounces@lists.denx.de Sender: "U-Boot" X-Virus-Scanned: clamav-milter 0.103.8 at phobos.denx.de X-Virus-Status: Clean --r+xHhn8itHORRzIp Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable On Thu, Aug 31, 2023 at 01:22:13PM -0600, Simon Glass wrote: > Hi Tom, >=20 > On Thu, 31 Aug 2023 at 13:07, Tom Rini wrote: > > > > On Thu, Aug 31, 2023 at 01:01:59PM -0600, Simon Glass wrote: > > > Hi Alper, > > > > > > On Thu, 31 Aug 2023 at 04:20, Alper Nebi Yasak wrote: > > > > > > > > On 2023-08-28 20:54 +03:00, Simon Glass wrote: > > > > > Hi Alper, > > > > > > > > > > On Sun, 27 Aug 2023 at 13:17, Alper Nebi Yasak wrote: > > > > >> > > > > >> On 2023-08-24 06:02 +03:00, Simon Glass wrote: > > > > >>> In this early stage of using binman to produce output files, we= are mostly > > > > >>> seeing people using common extensions such as '.bin' and '.rom' > > > > >>> > > > > >>> But unusual extensions appear in some places. > > > > >>> > > > > >>> We would like 'buildman -k' to keep the build outputs, but this= is hard if > > > > >>> there is no consistency as to the extension used. > > > > >>> > > > > >>> This series adjusts binman to enforce just 4 extensions for out= put images: > > > > >>> > > > > >>> .bin > > > > >>> .rom > > > > >>> .itb > > > > >>> .img > > > > >>> > > > > >>> Other extensions will produce an error. With this rule observed= , buildman > > > > >>> can keep the required files. > > > > >> > > > > >> I dislike this limitation. We know what files we will generate, = they are > > > > >> listed in binman dtb, so we can add something like `binman build= --ls` > > > > >> to print their names/paths for buildman to preserve them. > > > > > > > > > > Yes, it would be good to have that... > > > > > > > > > > But why do you dislike the limitation? Do you think extensions pr= ovide > > > > > useful information? I suppose one problem is that *.bin might pic= k up > > > > > private blobs that happen to be in the source directory? > > > > > > > > I guess my strongest argument is that people already/will have work= flows > > > > that depend on certain filenames or extensions, and shouldn't have = to > > > > modify binman code (consider that people may be using the PyPI whee= ls) > > > > to accommodate those when we are already putting the name in the dt= b. > > > > > > > > I do want some standardization to the U-Boot build outputs though, = but > > > > more like a global binman.dts with like u-boot.rom, u-boot-sdmmc.img > > > > images with well-defined TPL, SPL, U-Boot sections that arch-dtsi f= iles > > > > can fill in. > > > > > > > > >> Regarding the output directory suggestion, I think the binman ou= tputs > > > > >> (not temporary/intermediate files) should be in the same directo= ry as > > > > >> make outputs > > > > > > > > > > Agreed > > > > > > > > > >> , and the Makefile should default to O=3Dbuild to achieve the > > > > >> "output dir". I'm not sure if that's going to happen. > > > > > > > > > > I would quite like the 'non-output' file (i.e. things that are no= t a > > > > > binman image) to appear in a 'binman-work' subdir of the output d= ir. > > > > > What do you think? > > > > > > > > I'd prefer them to go in a tempfile.TemporaryDirectory() and discar= ded > > > > at the end of a binman run, and a "--tmpdir " option to use a > > > > given directory instead and preserve things for debugging. > > > > > > Actually, that was the original purpose of the output directory in the > > > u_boot_pylib.tools module. But with all the files binman creates, that > > > has been lost. I think we should restore that purpose (with an output > > > dir as a temp dir) and then I think what you have written here will > > > work. > > > > Just please note the rest of the feedback that's been given to this > > series too. >=20 > Yes. It is a bit hard to know what to do. I suppose we need binman to > publish a list of the image files it writes, so buildman can use that > to save them. Or we could just add some more special cases to the rule > in buildman? Extend the list of files that we do keep today, so that at least more cases could work, set aside the "everything else is an error" notion for now. --=20 Tom --r+xHhn8itHORRzIp Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- iQGzBAABCgAdFiEEGjx/cOCPqxcHgJu/FHw5/5Y0tywFAmTw6OIACgkQFHw5/5Y0 tyxjLgwApbXcpp3Z50FxHe3+rZzGJVLTnVPBjqbueixbj3H1E16qLSPTrUJJTrU9 HFucJBTdGXXqDJIXyyFwNN+lg5gbpZUg+GsrpYPyjjxP7YeTLyYvCPCzRigcn0IP NAvUjsWcDUqSiacJqqqyoeu8I1LTjdi8iKbnXo1AFuTfJ2bF3ROQknjWpN4rYqS0 7IZlMjfPTB3bFXs49/Qbgs6Tz7dvSMypKBHQffJwZZDuGJ35TtEjfcN74tDHVIvw alGI74w6yt8i6lHWjpoI7Z0uLkJ78KR+71TM6bCZSI+oNAR2L4Vr7xlqkxwVlB50 7Eiqnl62fNJLcDaAodUT7LD0TNCNie26UQ7VKERfEh7du49vCCURc2IxFPaKc/O/ mbdflLb0yVkssNGkzH7SNOJI7XQsBHfYoK78gvzOWNYegIlxMza75cF9fBtpVgag Do9HyvtciTR6NeqK1bB/yqJ8PlokWCLEdVOIQCQ0jRpOCI2VdIsT8BnSzIpo52+g m7+nzd8k =7pkv -----END PGP SIGNATURE----- --r+xHhn8itHORRzIp--