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 A75C0C3DA7A for ; Mon, 2 Jan 2023 14:35:57 +0000 (UTC) Received: from h2850616.stratoserver.net (localhost [IPv6:::1]) by phobos.denx.de (Postfix) with ESMTP id 535E48535C; Mon, 2 Jan 2023 15:35:54 +0100 (CET) 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="LfpAHl9p"; dkim-atps=neutral Received: by phobos.denx.de (Postfix, from userid 109) id 3E69385003; Mon, 2 Jan 2023 15:35:52 +0100 (CET) Received: from mail-qt1-x82a.google.com (mail-qt1-x82a.google.com [IPv6:2607:f8b0:4864:20::82a]) (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 2B17C85003 for ; Mon, 2 Jan 2023 15:35:49 +0100 (CET) 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-qt1-x82a.google.com with SMTP id v14so19764943qtq.3 for ; Mon, 02 Jan 2023 06:35:49 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=konsulko.com; s=google; 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=/k/2ZcKoxZ7fO9O9BnUNT7DWCt/TVNWnWXxay7AuD7M=; b=LfpAHl9paV3LV4lS3fiAWMZPqemsLNXwbpXlWJ8+jhKIMP35rTaBLP7esjQNtkSAfU Do4sDTQzDneCwZwhRD7XawYpZV0w4q4wP489rXaB71dKU18IiGCQaqGX4WghBiJTxVAu MO7y8/J9ILUsTyxYcCTm7Pw0jVyxhTO6UlvEQ= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; 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=/k/2ZcKoxZ7fO9O9BnUNT7DWCt/TVNWnWXxay7AuD7M=; b=WiuZeKn9Uy686VJQYtrtaZNP0vISoCXe+Mx/y4ylGEfH5QsEoaMjuHraDizpKDCNA3 0PNZFhzl4bD0tUX91fKc9n8Gm8a1NBPhBYWICUbe5UkDiA15k20voAw1L+ul7sb8lyCb F/VGloBrgL2ZqAmZHAi6B1NiSLQ2YYf/cVtCpGY9d9oc/JFadIVqpND834BNmln/8JzD drE5LyvgnmiYVcedoQpDRibvsGdhEynaJCmowKGu48pqk0zVxtW7lza2I9F0rN0q9Ban UiNdBGyKiGoTxx7N53kTN3RbhJjXFPm4t11Qv6L97WauKe8RccrsmK2aWfCPBRJbvvBS kgSA== X-Gm-Message-State: AFqh2kqqbgbxR9K34JOd6DWIFNiwyF33Zju1wKmikSPOyQXIm993yltr tZuhhI/LX/OY2iPviaIPOfOrSw== X-Google-Smtp-Source: AMrXdXviK2yhu/xBwdigXaqGyieW9LB/evujQsLRgXAnD8Vbz7OpcBuB5T4JTT9gDWucS9Ff6jpr3Q== X-Received: by 2002:ac8:43cd:0:b0:3a8:16a9:b343 with SMTP id w13-20020ac843cd000000b003a816a9b343mr48135026qtn.48.1672670147913; Mon, 02 Jan 2023 06:35:47 -0800 (PST) Received: from bill-the-cat (2603-6081-7b00-6400-f07c-6bfd-45cd-2c23.res6.spectrum.com. [2603:6081:7b00:6400:f07c:6bfd:45cd:2c23]) by smtp.gmail.com with ESMTPSA id br24-20020a05622a1e1800b00397e97baa96sm17640131qtb.0.2023.01.02.06.35.47 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 02 Jan 2023 06:35:47 -0800 (PST) Date: Mon, 2 Jan 2023 09:35:45 -0500 From: Tom Rini To: Quentin Schulz Cc: Simon Glass , U-Boot Mailing List , Alper Nebi Yasak , Heiko Thiery , Stefan Herbrechtsmeier Subject: Re: [PATCH] binman: Support optional external blobs Message-ID: <20230102143545.GK3787616@bill-the-cat> References: <20221217212950.90350-1-sjg@chromium.org> <2adfdf8a-d3f8-16a9-0526-66f540bb73a5@theobroma-systems.com> MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha512; protocol="application/pgp-signature"; boundary="QRm5IU2bqTrgTL2M" Content-Disposition: inline In-Reply-To: <2adfdf8a-d3f8-16a9-0526-66f540bb73a5@theobroma-systems.com> 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.6 at phobos.denx.de X-Virus-Status: Clean --QRm5IU2bqTrgTL2M Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable On Mon, Jan 02, 2023 at 11:52:17AM +0100, Quentin Schulz wrote: > Hi Simon, >=20 > On 12/17/22 22:29, Simon Glass wrote: > > Some blobs are actually not necessary for the board to work correctly. = Add > > a property to allow this to be indicated. Missing optional blobs do not > > cause a build failure. > >=20 > > Signed-off-by: Simon Glass > > --- > >=20 > > tools/binman/binman.rst | 9 +++++++++ > > tools/binman/control.py | 11 +++++++++++ > > tools/binman/entry.py | 25 +++++++++++++++++++++---- > > tools/binman/etype/blob.py | 2 +- > > tools/binman/etype/section.py | 14 +++++++++++++- > > tools/binman/ftest.py | 10 ++++++++++ > > tools/binman/test/266_blob_ext_opt.dts | 21 +++++++++++++++++++++ > > 7 files changed, 86 insertions(+), 6 deletions(-) > > create mode 100644 tools/binman/test/266_blob_ext_opt.dts > >=20 > > diff --git a/tools/binman/binman.rst b/tools/binman/binman.rst > > index 1ab6d012b83..391494907ab 100644 > > --- a/tools/binman/binman.rst > > +++ b/tools/binman/binman.rst > > @@ -689,6 +689,15 @@ no-expanded: > > `no-expanded` property disables this just for a single entry. Put= the > > `no-expanded` boolean property in the node to select this behavio= ur. > > +optional: > > + External blobs are normally required to be present for the image t= o be > > + built (but see `External blobs`_). This properly allows an entry t= o be > > + optional, so that when it is cannot be found, this problem is igno= red and > > + an empty file is used for this blob. This should be used only when= the blob > > + is entirely optional and is not needed for correct operation of th= e image. >=20 > Could we provide such an example? The example is the pmic firmware (SCP) for sunxi platforms. That can be omitted safely (which results in some PM features not working). --=20 Tom --QRm5IU2bqTrgTL2M Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- iQGzBAABCgAdFiEEGjx/cOCPqxcHgJu/FHw5/5Y0tywFAmOy674ACgkQFHw5/5Y0 tywc/wv+LBGAif2Pk3YtZyXhAw8lhniYs7rycPwZ8yRvI88xwcKMpxWcWTL/K73y nBlv2/esoesjPTmOUKcefhes9fLsHdFAKjKQDaiE98AU/fRoRy4u3dZJQ+ElViMz 2jtjGl/pHN8xNgUD8fCv5P9HgSqKk98P185mrpkgfscMYvP/NnmSjKVRnTW8HEre Cit7lq71hfNUBmVbdzgbzFiSoNnSgnV5W+nAvzLB8UArBgKfo0IoFoB4tKIlkvIY fkp3SzRBmoDOjcqmlpQqskUgGgkxr6BMbRP3ZFw0NZIKNvVdbIMA7D/M0lytmLT4 LdjG+Oi9mLdecEOTjxwOpLhSiZ1ojig1sdYDipAnLCsD70qSdRjtsT0U2dKP0GDl wfdSzg/OYYiwDHigDBenhGdN2p+EI9foxRGzFRNoTW3akFmGCRVRELTfynbgcfx1 OM3GDrR9pGTcClq933fc4Z4lFQe0PG9On1htwL1RPC1TTD7Rp2hhzNcngNWPD3KJ FdSxs1tq =5gdP -----END PGP SIGNATURE----- --QRm5IU2bqTrgTL2M--