From mboxrd@z Thu Jan 1 00:00:00 1970 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 08DB0C05027 for ; Sun, 19 Feb 2023 22:02:36 +0000 (UTC) Received: from h2850616.stratoserver.net (localhost [IPv6:::1]) by phobos.denx.de (Postfix) with ESMTP id 0502885831; Sun, 19 Feb 2023 23:02:27 +0100 (CET) Authentication-Results: phobos.denx.de; dmarc=pass (p=reject dis=none) header.from=kwiboo.se Authentication-Results: phobos.denx.de; spf=pass smtp.mailfrom=u-boot-bounces@lists.denx.de Authentication-Results: phobos.denx.de; dkim=pass (2048-bit key; unprotected) header.d=kwiboo.se header.i=@kwiboo.se header.b="mL7C35J/"; dkim-atps=neutral Received: by phobos.denx.de (Postfix, from userid 109) id 6BF8D85890; Sun, 19 Feb 2023 23:02:13 +0100 (CET) Received: from xtrwkhkk.outbound-mail.sendgrid.net (xtrwkhkk.outbound-mail.sendgrid.net [167.89.16.17]) (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 E3AA9858D8 for ; Sun, 19 Feb 2023 23:02:06 +0100 (CET) Authentication-Results: phobos.denx.de; dmarc=pass (p=reject dis=none) header.from=kwiboo.se Authentication-Results: phobos.denx.de; spf=pass smtp.mailfrom=bounces+31435339-7456-u-boot=lists.denx.de@em2124.kwiboo.se DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=kwiboo.se; h=from:subject:in-reply-to:references:mime-version:to:cc: content-transfer-encoding:content-type:cc:content-type:from:subject:to; s=s1; bh=hmG0ubfvHtRXAJmnWchmnQiKo3wH5LzZXH6f5wfx25s=; b=mL7C35J/3oDHnIBmdeD2PneeDkhe6Hy4VVw1xYKX/nPSu60fn67U5ruJ/Zmzipqi+6ge H+xl5WHrgXQoQc3tf9bN5kTJjes53VXsIEMPDi4sJgz0mYMu86Jbm4J+l/vrO+1mki9C57 hmvmV+yIgaffLAF1fq4S0eDGIBC4HrTVfIGqt10RXPfRNdpXukeE3WEm1nwejvfIf9xPMI YLB98Z2eN0bQ0BT+8u0mXmuEiGcTDZ7wNv5cUzoebofdVWrIKRI1dnC4vWh6811oD6LJy8 dv3Wr06/maeecNxiFddX/H6oDeku0bJ4I5nmBcAJGMe52QvPrqYpU3hmrFx7Tg3w== Received: by filterdrecv-8dd65bbd4-bvdhz with SMTP id filterdrecv-8dd65bbd4-bvdhz-1-63F29C5C-27 2023-02-19 22:02:04.421682036 +0000 UTC m=+788684.247805713 Received: from bionic.localdomain (unknown) by geopod-ismtpd-canary-0 (SG) with ESMTP id iSAj_CU8RHSdTFWJnfZJPA Sun, 19 Feb 2023 22:02:04.207 +0000 (UTC) From: Jonas Karlman Subject: [PATCH 4/9] binman: Override CheckOptional in fit entry Date: Sun, 19 Feb 2023 22:02:04 +0000 (UTC) Message-Id: <20230219220158.4160763-5-jonas@kwiboo.se> X-Mailer: git-send-email 2.39.2 In-Reply-To: <20230219220158.4160763-1-jonas@kwiboo.se> References: <20230219220158.4160763-1-jonas@kwiboo.se> MIME-Version: 1.0 X-SG-EID: =?us-ascii?Q?TdbjyGynYnRZWhH+7lKUQJL+ZxmxpowvO2O9SQF5CwCVrYgcwUXgU5DKUU3QxA?= =?us-ascii?Q?fZekEeQsTe+RrMu3cja6a0h=2F8BKH77YEdlBHysr?= =?us-ascii?Q?2q7x7EEsN5tjL=2Fny3Jg0ChNt1Os15AVEMvTzezr?= =?us-ascii?Q?268nt6g0Y3BI8L2FgXpU+94Qv3E=2FJiwWbNRKRgC?= =?us-ascii?Q?krvt3Q0UAcyqUk1sW89pc6TvopkPDs9r0xptps5?= =?us-ascii?Q?t7I35=2FT2FYcbmrAzoII0xMkOBPeI9=2FNVzQe+SA?= To: Simon Glass , Alper Nebi Yasak Cc: Pali =?iso-8859-1?b?Um9o4XI=?= , Heinrich Schuchardt , Marek =?iso-8859-1?b?QmVo+m4=?= , Quentin Schulz , Stefan Herbrechtsmeier , u-boot@lists.denx.de, Jonas Karlman X-Entity-ID: P7KYpSJvGCELWjBME/J5tg== Content-Transfer-Encoding: 7bit Content-Type: text/plain; charset=us-ascii 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 Missing optional blobs was not reported for generated entries, e.g. tee-os on rockchip targets. Implement a CheckOptional to fix this. After this the following can be shown: Image 'simple-bin' is missing external blobs but is still functional: tee-os /binman/simple-bin/fit/images/@tee-SEQ/tee-os (tee-os): See the documentation for your board. You may need to build Open Portable Trusted Execution Environment (OP-TEE) with TEE=/path/to/tee.bin Signed-off-by: Jonas Karlman --- tools/binman/etype/fit.py | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/tools/binman/etype/fit.py b/tools/binman/etype/fit.py index 822de7982768..314e03b4a964 100644 --- a/tools/binman/etype/fit.py +++ b/tools/binman/etype/fit.py @@ -828,3 +828,10 @@ class Entry_fit(Entry_section): # missing for entry in self._priv_entries.values(): entry.CheckMissing(missing_list) + + def CheckOptional(self, optional_list): + # We must use our private entry list for this since generator nodes + # which are removed from self._entries will otherwise not show up as + # optional + for entry in self._priv_entries.values(): + entry.CheckOptional(optional_list) -- 2.39.2