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 92277C54EBC for ; Sat, 7 Jan 2023 21:08:23 +0000 (UTC) Received: from h2850616.stratoserver.net (localhost [IPv6:::1]) by phobos.denx.de (Postfix) with ESMTP id 300D2854EE; Sat, 7 Jan 2023 22:08:08 +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="d/MhctXC"; dkim-atps=neutral Received: by phobos.denx.de (Postfix, from userid 109) id 075E285558; Sat, 7 Jan 2023 22:07:43 +0100 (CET) Received: from mail-il1-x135.google.com (mail-il1-x135.google.com [IPv6:2607:f8b0:4864:20::135]) (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 6827F85413 for ; Sat, 7 Jan 2023 22:07:34 +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-x135.google.com with SMTP id u8so2790199ilq.13 for ; Sat, 07 Jan 2023 13:07:34 -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=d/MhctXCYNb08/ktO4fWmkFVc8YVZpcl9Wk6yGxJam59oZQygMp+iqhosRFJXi4iU7 zLyIXmV/DzKCBrI/9Rw9H6nO++06m4UvmHA1duy2hkyWh2VWZy6sDgLojShxCXkscoYD rqpS7P4s6YrMfQca8ZPuhLLHOHgHl1wQ/Ps4Q= 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=4MiDycswbLY+qRYNUOO4boowVrLtKVnQL45BpA4W5BGxbLxRs63rtlD4/0/b8Lu83r gqS/4o3j06JLBFLbY0YobyeWEU1uab/JMoG6K3oLZYQDz/RkC6u7J5pN9RWvIQHGvc4o dyGhTfhQMuW32CMT50FsugkXrJCCmdTeR/8NGskRrPbqX3Pb3ActRkKV0eBgI3qlrsIN 19qo2pz5/YpaQsbfKilK1E+TwGnHzWsEb8wWfTHMgCFYRgIqxhGMYTKSAYbikUxcd2Hs CQbwHJ+TJZDR9v9FNrgbBn/QGN2TW/FTcDMoUuTr6TWfEH6DvI97uL6wZiGyUL2VTrri BVxA== X-Gm-Message-State: AFqh2koIlaJ8zlGYhDSicl/u4S08abBPRmkvHfTGospBR4XzofqFDaf2 1jpkZaZd6tTZAwKSHREryUHweQ0PzKAsgXsX X-Google-Smtp-Source: AMrXdXvFndiB2Kt+/tL0un8FsczVyrwQMD5yxCEAoroqCuUOndtN3kISQKx9YqMEYSbVG3bRE+ghDw== X-Received: by 2002:a05:6e02:d94:b0:30d:9349:65b1 with SMTP id i20-20020a056e020d9400b0030d934965b1mr3235503ilj.29.1673125652893; Sat, 07 Jan 2023 13:07:32 -0800 (PST) Received: from sjg1.roam.corp.google.com (c-71-56-217-229.hsd1.co.comcast.net. [71.56.217.229]) by smtp.gmail.com with ESMTPSA id l10-20020a92d94a000000b0030c00897497sm1465825ilq.19.2023.01.07.13.07.32 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sat, 07 Jan 2023 13:07:32 -0800 (PST) From: Simon Glass To: U-Boot Mailing List Cc: Roger Quadros , Tom Rini , Alper Nebi Yasak , Peter Geis , Jerome Forissier , huang lin , Jeffy Chen , Simon Glass , Kever Yang , Philipp Tomsich , Ivan Mikhaylov , Quentin Schulz , Philippe Reynes Subject: [PATCH v9 02/14] binman: Tidy up comment in fit _gen_node Date: Sat, 7 Jan 2023 14:07:09 -0700 Message-Id: <20230107210721.478062-3-sjg@chromium.org> X-Mailer: git-send-email 2.39.0.314.g84b9a713c41-goog In-Reply-To: <20230107210721.478062-1-sjg@chromium.org> References: <20230107210721.478062-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