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 E4B05C4332F for ; Sat, 17 Dec 2022 21:28:46 +0000 (UTC) Received: from h2850616.stratoserver.net (localhost [IPv6:::1]) by phobos.denx.de (Postfix) with ESMTP id E5CCC85397; Sat, 17 Dec 2022 22:28:29 +0100 (CET) Authentication-Results: phobos.denx.de; dmarc=pass (p=none dis=none) header.from=chromium.org 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=chromium.org header.i=@chromium.org header.b="R4hEJigV"; dkim-atps=neutral Received: by phobos.denx.de (Postfix, from userid 109) id 1E6B085237; Sat, 17 Dec 2022 22:28:26 +0100 (CET) Received: from mail-il1-x12c.google.com (mail-il1-x12c.google.com [IPv6:2607:f8b0:4864:20::12c]) (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 976BD8537A for ; Sat, 17 Dec 2022 22:28:23 +0100 (CET) Authentication-Results: phobos.denx.de; dmarc=pass (p=none dis=none) header.from=chromium.org Authentication-Results: phobos.denx.de; spf=pass smtp.mailfrom=sjg@chromium.org Received: by mail-il1-x12c.google.com with SMTP id z9so3019494ilu.10 for ; Sat, 17 Dec 2022 13:28:23 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=chromium.org; s=google; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:from:to:cc:subject:date :message-id:reply-to; bh=rQAuw4RrRFQakkUWajF/SdV5sge1eegoJuJ0jSnZTjQ=; b=R4hEJigVaQrKLwvu7xNIx18AhJaeqsLXUjHNjK1R4+m9+j/pji01CSX8mf3DldQE0b GhToi8vzqWCZyMOTT3HiBmNMxlwWwbZywfbyO5vWLXTC0RTEX9PovweM9NWA3ZjBSPbf skE0QzVIqv7Fq1qBkO4NPv+PldaRLCK9xBR0U= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=rQAuw4RrRFQakkUWajF/SdV5sge1eegoJuJ0jSnZTjQ=; b=xYW1v3nRm8bREqLRK/neyxoL/5dZjRT/qMBbrCVyPlUOEfKEs7P9xzzUwIULOtFZqK XlV90l3GUzz3uG4NDe/6e/BRqSxznzshx3loyrdvL9fJP9ftw3t3IHHnmjh3XLYkrEoE tWfIvgnV/0A/n5xx4ik/VDsbPaOmq+bQP8cOVsfATOIPi9GS74+7QXjExm65p1tSRViM Mag7eVDdrqsvb9oOpVrwVMLZehzn0/nt1jxbsMHFqSPTlktqawu0vRqfvOBFAftWm/DL 3NpwP7v4To9nsfOJG4q+3JtQUE1fkVBIVUpqMDGlqXuGES4GXuhHKE1CPL80dTp6RZ5s zKeg== X-Gm-Message-State: ANoB5pnh1usgYPoRvVRhanXSCkiPwJv/TSqbPCElAouOpdA+wCWZil/x dUGxmdT4gr0Pjje9myFoVWWysdp8WCZ6pL2J X-Google-Smtp-Source: AA0mqf4SGwXTzExyzch6fauY0uJWdG/ESYbea/MJZBJhnrDFgWEWWoc4mtSbZeaBq94Ma7X9KntpMw== X-Received: by 2002:a92:d792:0:b0:303:8cff:983b with SMTP id d18-20020a92d792000000b003038cff983bmr22523906iln.14.1671312501974; Sat, 17 Dec 2022 13:28:21 -0800 (PST) Received: from sjg1.roam.corp.google.com (c-67-190-102-125.hsd1.co.comcast.net. [67.190.102.125]) by smtp.gmail.com with ESMTPSA id e2-20020a02a502000000b00370decbbff3sm1949886jam.148.2022.12.17.13.28.21 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sat, 17 Dec 2022 13:28:21 -0800 (PST) From: Simon Glass To: U-Boot Mailing List Cc: huang lin , Jeffy Chen , Simon Glass , Kever Yang , Philipp Tomsich , Peter Geis , Quentin Schulz , Alper Nebi Yasak , Ivan Mikhaylov , Philippe Reynes , Tom Rini , Jerome Forissier , Roger Quadros Subject: [PATCH v7 02/12] binman: Tidy up comment in fit _gen_node Date: Sat, 17 Dec 2022 14:28:03 -0700 Message-Id: <20221217212813.89914-3-sjg@chromium.org> X-Mailer: git-send-email 2.39.0.314.g84b9a713c41-goog In-Reply-To: <20221217212813.89914-1-sjg@chromium.org> References: <20221217212813.89914-1-sjg@chromium.org> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit 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 Expand this comment to cover both cases that are supported. Signed-off-by: Simon Glass --- (no changes since v1) tools/binman/etype/fit.py | 16 +++++++++++----- 1 file changed, 11 insertions(+), 5 deletions(-) diff --git a/tools/binman/etype/fit.py b/tools/binman/etype/fit.py index 7860e2aeea3..8ad4f3a8a83 100644 --- a/tools/binman/etype/fit.py +++ b/tools/binman/etype/fit.py @@ -579,11 +579,17 @@ class Entry_fit(Entry_section): def _gen_node(base_node, node, depth, in_images, entry): """Generate nodes from a template - This creates one node for each member of self._fdts using the - provided template. If a property value contains 'NAME' it is - replaced with the filename of the FDT. If a property value contains - SEQ it is replaced with the node sequence number, where 1 is the - first. + This creates one or more nodes depending on the fit,operation being + used. + + For OP_GEN_FDT_NODES it creates one node for each member of + self._fdts using the provided template. If a property value contains + 'NAME' it is replaced with the filename of the FDT. If a property + value contains SEQ it is replaced with the node sequence number, + where 1 is the first. + + For OP_SPLIT_ELF it emits one node for each section in the ELF file. + If the file is missing, nothing is generated. Args: base_node (Node): Base Node of the FIT (with 'description' -- 2.39.0.314.g84b9a713c41-goog