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 mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id 8340DC433F5 for ; Thu, 11 Nov 2021 15:04:26 +0000 (UTC) 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 mail.kernel.org (Postfix) with ESMTPS id C3C2061038 for ; Thu, 11 Nov 2021 15:04:25 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.4.1 mail.kernel.org C3C2061038 Authentication-Results: mail.kernel.org; dmarc=none (p=none dis=none) header.from=konsulko.com Authentication-Results: mail.kernel.org; spf=pass smtp.mailfrom=lists.denx.de Received: from h2850616.stratoserver.net (localhost [IPv6:::1]) by phobos.denx.de (Postfix) with ESMTP id 2705B83991; Thu, 11 Nov 2021 16:04:23 +0100 (CET) Authentication-Results: phobos.denx.de; dmarc=none (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="WYM9e/kf"; dkim-atps=neutral Received: by phobos.denx.de (Postfix, from userid 109) id 39A6D83769; Thu, 11 Nov 2021 16:04:21 +0100 (CET) Received: from mail-qv1-xf35.google.com (mail-qv1-xf35.google.com [IPv6:2607:f8b0:4864:20::f35]) (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 5C211834CF for ; Thu, 11 Nov 2021 16:04:17 +0100 (CET) Authentication-Results: phobos.denx.de; dmarc=none (p=none dis=none) header.from=konsulko.com Authentication-Results: phobos.denx.de; spf=pass smtp.mailfrom=trini@konsulko.com Received: by mail-qv1-xf35.google.com with SMTP id m17so4193229qvx.8 for ; Thu, 11 Nov 2021 07:04:17 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=konsulko.com; s=google; h=date:from:to:cc:subject:message-id:references:mime-version :content-disposition:in-reply-to; bh=jrrXrINt2HGJk/fPVUDBpEbne26yGJETPzmwSbHNw5A=; b=WYM9e/kfPAvnI8Q7pR1f9duzUgO6GoBQhl7ktYjqRg3si8EMEPdSjTHQCSGRymobfP tedq/s2AjbZL0iNer2ov0niRfNcO2NAgT/PABUXo6XifpX6wpWPxRlldwABCHSw+nWSC RuaLMbe0r7F/btoHgdD14B3g+c4XjSH77h9mY= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:date:from:to:cc:subject:message-id:references :mime-version:content-disposition:in-reply-to; bh=jrrXrINt2HGJk/fPVUDBpEbne26yGJETPzmwSbHNw5A=; b=jCJXxWhDDTEAeARXAFzo68nSWWSRBhqRAWKvVu7fb/khEb7hBGkylQUwU8+gFPDpGc tks5uFFYChcXZMGkQ+T0tnW+WoI/VZD8pn+TFsQAq0jR5KqBqr1qFxREHNAr45+GXqvJ 66xPB+1raBPc1i0qH5XZfFfyrpwl7QwaWOz2Eg/jfhh3cnnbsujkDFZH9FcCknMf9YAi Pt3e0vZZDpmOeyr6RbdV5mtihOPPPn+BvBbfHWQR45IBUE4K4Y9EU9VdygRfM0QmBZYI efPi9NMDD5+Ww4hfOLiZJi1LvXpW6+CarZN1APSuTMea+jO+wU2PhNC0YvwcitgucqjE lm1A== X-Gm-Message-State: AOAM530h1iB75++aoHzHoKJAWljVL5UZ67dCquVbMJxa2CtTmamsLfDE gcKf+nkANEKhspYdTBsAQm1xWg== X-Google-Smtp-Source: ABdhPJzpxjwpT0msjJ/t4OhGPJ/+xkrvoWk0gbsnb6wjInWDOYYrMt9/3knVfs5KkTY/S86IrU4Xdw== X-Received: by 2002:a0c:eec3:: with SMTP id h3mr7236586qvs.17.1636643055847; Thu, 11 Nov 2021 07:04:15 -0800 (PST) Received: from bill-the-cat (2603-6081-7b01-cbda-45aa-b284-65f8-b590.res6.spectrum.com. [2603:6081:7b01:cbda:45aa:b284:65f8:b590]) by smtp.gmail.com with ESMTPSA id y21sm1653697qtw.10.2021.11.11.07.04.14 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 11 Nov 2021 07:04:15 -0800 (PST) Date: Thu, 11 Nov 2021 10:04:13 -0500 From: Tom Rini To: Wolfgang Denk Cc: Heiko Thiery , u-boot@lists.denx.de, Stefano Babic , Fabio Estevam , Michael Walle , Simon Glass Subject: Re: [RFC 0/2] Do not stop with an error when mkimage fails Message-ID: <20211111150413.GN24579@bill-the-cat> References: <20211104185231.2927-1-heiko.thiery@gmail.com> <729199.1636053161@gemini.denx.de> <963318.1636296486@gemini.denx.de> <20211109194224.GB24579@bill-the-cat> <1289506.1636633642@gemini.denx.de> MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha512; protocol="application/pgp-signature"; boundary="Qv7HKgVaYmBd+Fbb" Content-Disposition: inline In-Reply-To: <1289506.1636633642@gemini.denx.de> X-Clacks-Overhead: GNU Terry Pratchett X-BeenThere: u-boot@lists.denx.de X-Mailman-Version: 2.1.34 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.2 at phobos.denx.de X-Virus-Status: Clean --Qv7HKgVaYmBd+Fbb Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable On Thu, Nov 11, 2021 at 01:27:22PM +0100, Wolfgang Denk wrote: > Dear Tom, >=20 > In message <20211109194224.GB24579@bill-the-cat> you wrote: > >=20 > > > The only reason I want to introduce this is because I want to have my > > > imx8mq board built by CI. This board needs an external HDMI firmware > > > which is used by mkimage. But because this firmware is not available > > > in the CI build, it comes to the abort. With other boards it is also > > > so that in the CI external blobs are not available and these make > > > nevertheless without error a binman run. In this case only a warning > > > is output. > ... > > Unfortunately in these days of needing multiple inputs to create a > > functional image and also needing to have CI be able to be at all > > useful, what we do in many many many cases is yell loudly to the user > > that the resulting file here will NOT work and why. So yes, some "yell > > it won't work but not return non-zero exit status" is the norm. >=20 > This is a terrible degradtion from standard programming style, then. Yes, there's a lot of things to grumble about with firmware for modern SoCs. > > I would be very much open however to some way to handle this > > differently. Some environment variable our tools check for and then > > yell-but-succeed? Some other idea? I'm just thinking out loud here. >=20 > Well, why not fix the root cause? >=20 > Heiko writes that "an external HDMI firmware" is needed - so the fix > is to provide one, or at least a dummy file which is good enough for > the build to succeed. It should be trivial to create a dummy file > in the CI context, no? Yes, generally we provide some dummy file so that we can link and complain to stdout that things won't function. This series is (and it seems like within the confines of "this sucks to have to do as a concept") updating that mechanism to cover yet another case where we need some external blob that we either can't redistribute or it would just be wrong to fork and include some other project within our sources. --=20 Tom --Qv7HKgVaYmBd+Fbb Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- iQGzBAABCgAdFiEEGjx/cOCPqxcHgJu/FHw5/5Y0tywFAmGNMOoACgkQFHw5/5Y0 tyx1GAv6A1PY54g+jEhFyY0mHvcl3s1NzALAAsXCBhebHSgi6o2HD65cdpTqddic kXU02TDSHXiENyHZHTV4MSzxj0mspf63n4COFLUcD9mWhSbAVl0F64SBI2f0ivFd 86X97TwF7YjUsL2PWjVF37itUBwIXRz0gKW1Q2ePTS5dK8wFvwMgnm9QIc2USF3C 9O9qwBMHc4fElGkZgjvcHZs2jxC7w2W8z54ymwmgz4MAgdgYuyniKHdBHHtVdPFD G0Bm41SIAJny7oeITxWjXyl6UbEb+cHwOGh+ZiCJzgSUGJv0fd458czs8gqW2u2h w6uo+l/ClMNtSelKqkNQmp2PQdYyaV3qrExt7IaYj469FdSa4r92hW/ZMmk3nV7E KWzsz5tkv70UZiob0VIfKnpFnyR0mnGyFRNf7j7pNqH9Ib0r6BK4qgtmnLOSYwSJ /qUBRDpNH3UaOE31ynYTmzwg/i3fZnLWwaQEAyc+KNgNsfCzwxWT4kugwvo6maVI a10cHG5c =QafI -----END PGP SIGNATURE----- --Qv7HKgVaYmBd+Fbb--