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 D22B7C4332F for ; Wed, 21 Dec 2022 23:08:22 +0000 (UTC) Received: from h2850616.stratoserver.net (localhost [IPv6:::1]) by phobos.denx.de (Postfix) with ESMTP id 2882385282; Thu, 22 Dec 2022 00:07:59 +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="kQiynKrS"; dkim-atps=neutral Received: by phobos.denx.de (Postfix, from userid 109) id 3DAD8852E7; Thu, 22 Dec 2022 00:07:44 +0100 (CET) Received: from mail-io1-xd33.google.com (mail-io1-xd33.google.com [IPv6:2607:f8b0:4864:20::d33]) (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 0550D85278 for ; Thu, 22 Dec 2022 00:07:40 +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-io1-xd33.google.com with SMTP id z144so192904iof.3 for ; Wed, 21 Dec 2022 15:07:39 -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=kQiynKrSOHcOl6fIkN4cxYBpwXzv/qRPIfuSCk6c43sW0a8qxIhQ7t3+v+AHx8DH5+ csQt9cU/C9KDWEuWK6e72rN8TeMHdKMNnhD92oK039mqlqNDrDNhBSc5FPp6xI2NAWxM hubvQlss7i9ZT8XdtWi+4IEd7dNBAxnfBEIl0= 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=2bHNVX05gXocaI8qlkui+LiPw/WnWYlLsyzIrNthYOME9m/zQXImlYA4a6om42rEWr +sgeeCookVeVnR7lFjDqoldK6W/dtLUer1dqFzhaxSBIVngwo2rFsfJ9VGXUhtNj/sSQ OfuJOtT6qqJ7czdNkGohbIjVA/KUjAB4mdlFNfHVo0UrIrYZpiRIT7MUXdfR6hdzuxZB /KXUEiTvrflOkzywUkvS8DdyQ6AsJMuoPqm9soUfFYRKkuMn/dbw1XVYvpMaBk42rrKV HizFVUSymmt5a57ExeXinrFYWjZTpWI7Sbi/UysSTtit3+cYC/5VQgyRNYTVIu442Ieq HYCQ== X-Gm-Message-State: AFqh2kpRDbDTM5Gly8YxHwEUhsMo9OvbrCWYGIqGnPI65A1bOhAOePOK hsRTKio4bsjb1Z6OjOyCapZTjsTsiJfVBUqv X-Google-Smtp-Source: AMrXdXtB6szfZwjLI6EMYStj8fW35C6B0ig50C1/BPxFH4aXRtIN1X0ZbqHawTVtHWjIauK/qQ6SBA== X-Received: by 2002:a6b:5010:0:b0:6bc:d70f:8b2f with SMTP id e16-20020a6b5010000000b006bcd70f8b2fmr8496702iob.9.1671664058589; Wed, 21 Dec 2022 15:07:38 -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 c2-20020a5ea802000000b006a175fe334dsm6499433ioa.1.2022.12.21.15.07.37 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 21 Dec 2022 15:07:38 -0800 (PST) From: Simon Glass To: U-Boot Mailing List Cc: Tom Rini , huang lin , Jeffy Chen , Simon Glass , Kever Yang , Philipp Tomsich , Ivan Mikhaylov , Quentin Schulz , Roger Quadros , Philippe Reynes , Alper Nebi Yasak , Jerome Forissier , Peter Geis Subject: [PATCH v8 02/13] binman: Tidy up comment in fit _gen_node Date: Wed, 21 Dec 2022 16:07:15 -0700 Message-Id: <20221221230726.638740-3-sjg@chromium.org> X-Mailer: git-send-email 2.39.0.314.g84b9a713c41-goog In-Reply-To: <20221221230726.638740-1-sjg@chromium.org> References: <20221221230726.638740-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