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 157C7C433EF for ; Tue, 8 Feb 2022 18:53:36 +0000 (UTC) Received: from h2850616.stratoserver.net (localhost [IPv6:::1]) by phobos.denx.de (Postfix) with ESMTP id EB9BE83E1B; Tue, 8 Feb 2022 19:51:17 +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="CD+PAA1h"; dkim-atps=neutral Received: by phobos.denx.de (Postfix, from userid 109) id 0899783D8B; Tue, 8 Feb 2022 19:50:53 +0100 (CET) Received: from mail-io1-xd36.google.com (mail-io1-xd36.google.com [IPv6:2607:f8b0:4864:20::d36]) (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 B292983D95 for ; Tue, 8 Feb 2022 19:50:43 +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-xd36.google.com with SMTP id r144so198321iod.9 for ; Tue, 08 Feb 2022 10:50:43 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=chromium.org; s=google; h=from:to:cc:subject:date:message-id:in-reply-to:references :mime-version:content-transfer-encoding; bh=E18LE/i1Z0IfTKqSDUg3bHTX3Y3cZQPdnBeF5eY1nJ8=; b=CD+PAA1hZckU+MKAkpuvhJ57BbcuelMMsyk+ppshlY4UjigIhD6T8kbOZ4Dl7Z1rtQ DEoqo7UBZWm5hzGW4V1h7Du6nArp/v/7/xgY5CjOgpytkYL1rij7V7Of7hf+vetu3F0n neLCoBTlcUSbrDyfFJ9aJSzH4iVPAaMAy3zVQ= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references:mime-version:content-transfer-encoding; bh=E18LE/i1Z0IfTKqSDUg3bHTX3Y3cZQPdnBeF5eY1nJ8=; b=vNaAMDYTyF09qdIE4cEWzsmrtAnyi1TU4LzCP+SCwIKHF34GCXTK1KyUFnu6b5kapr rdxGfVfOTAVxEHutgJw2PCUZtUREX9YVHQT5M0otI6knQ+jpI/94x9RB+iwdGUUcROcZ QaN+K5w8Obdt/A5DP1rVdYmaaiLPHjRq3IsH/mrqU8uK85RPs6MRJfpZEuZi4Dml0pfp a52KtG0OSC9srn7Wj8gS9Jhc2l3YljcgwWkrQ2DHWttRG5dPrfAwzve4KIWFPQrMR6oV a5txl0Rd06IHIb9FssUsoMKiXNuByxWNUh4XIgFD4G/z2S+cfA/bQyWXUBJJE1g11kF7 DtNg== X-Gm-Message-State: AOAM531a1Iei821iM1gTD+VZetGOm13cRVcdICd8ubRRhhg800Jehfch So7NM4C9+06PkSUBtHORL5mKp49yhG+ChA== X-Google-Smtp-Source: ABdhPJye9/Ag9z5xuDZ6QtO/D7NF+xppAaUjJOQYpokp3QIm6O7bVyFYN/jlDfMvLIPKwR5mMkceIA== X-Received: by 2002:a02:9569:: with SMTP id y96mr2839480jah.18.1644346242054; Tue, 08 Feb 2022 10:50:42 -0800 (PST) Received: from kiwi.bld.corp.google.com (c-67-190-101-114.hsd1.co.comcast.net. [67.190.101.114]) by smtp.gmail.com with ESMTPSA id q2sm2911844ilt.33.2022.02.08.10.50.41 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 08 Feb 2022 10:50:41 -0800 (PST) From: Simon Glass To: U-Boot Mailing List Cc: huang lin , Jeffy Chen , Simon Glass , Kever Yang , Philipp Tomsich , Alper Nebi Yasak , Tom Rini , Roger Quadros , Philippe Reynes , Ivan Mikhaylov , Jan Kiszka Subject: [PATCH 18/24] binman: Tidy up the docs a little with fit Date: Tue, 8 Feb 2022 11:50:02 -0700 Message-Id: <20220208185008.35843-15-sjg@chromium.org> X-Mailer: git-send-email 2.35.0.263.gb82422642f-goog In-Reply-To: <20220208185008.35843-1-sjg@chromium.org> References: <20220208185008.35843-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.5 at phobos.denx.de X-Virus-Status: Clean Add a few quotes and clarify the data property. Signed-off-by: Simon Glass --- tools/binman/entries.rst | 15 ++++++++------- tools/binman/etype/fit.py | 15 ++++++++------- 2 files changed, 16 insertions(+), 14 deletions(-) diff --git a/tools/binman/entries.rst b/tools/binman/entries.rst index b32dc58933..d4a1f333dc 100644 --- a/tools/binman/entries.rst +++ b/tools/binman/entries.rst @@ -554,10 +554,10 @@ For example, this creates an image containing a FIT with U-Boot SPL:: }; U-Boot supports creating fdt and config nodes automatically. To do this, -pass an of-list property (e.g. -a of-list=file1 file2). This tells binman -that you want to generates nodes for two files: file1.dtb and file2.dtb -The fit,fdt-list property (see above) indicates that of-list should be used. -If the property is missing you will get an error. +pass an `of-list` property (e.g. `-a of-list=file1 file2`). This tells +binman that you want to generates nodes for two files: `file1.dtb` and +`file2.dtb`. The `fit,fdt-list` property (see above) indicates that +`of-list` should be used. If the property is missing you will get an error. Then add a 'generator node', a node with a name starting with '@':: @@ -569,10 +569,11 @@ Then add a 'generator node', a node with a name starting with '@':: }; }; -This tells binman to create nodes fdt-1 and fdt-2 for each of your two +This tells binman to create nodes `fdt-1` and `fdt-2` for each of your two files. All the properties you specify will be included in the node. This node acts like a template to generate the nodes. The generator node itself does not appear in the output - it is replaced with what binman generates. +A 'data' property is created with the contents of the FDT file. You can create config nodes in a similar way:: @@ -586,8 +587,8 @@ You can create config nodes in a similar way:: }; }; -This tells binman to create nodes config-1 and config-2, i.e. a config for -each of your two files. +This tells binman to create nodes `config-1` and `config-2`, i.e. a config +for each of your two files. Available substitutions for '@' nodes are: diff --git a/tools/binman/etype/fit.py b/tools/binman/etype/fit.py index b159844960..bf84246904 100644 --- a/tools/binman/etype/fit.py +++ b/tools/binman/etype/fit.py @@ -47,10 +47,10 @@ class Entry_fit(Entry): }; U-Boot supports creating fdt and config nodes automatically. To do this, - pass an of-list property (e.g. -a of-list=file1 file2). This tells binman - that you want to generates nodes for two files: file1.dtb and file2.dtb - The fit,fdt-list property (see above) indicates that of-list should be used. - If the property is missing you will get an error. + pass an `of-list` property (e.g. `-a of-list=file1 file2`). This tells + binman that you want to generates nodes for two files: `file1.dtb` and + `file2.dtb`. The `fit,fdt-list` property (see above) indicates that + `of-list` should be used. If the property is missing you will get an error. Then add a 'generator node', a node with a name starting with '@':: @@ -62,10 +62,11 @@ class Entry_fit(Entry): }; }; - This tells binman to create nodes fdt-1 and fdt-2 for each of your two + This tells binman to create nodes `fdt-1` and `fdt-2` for each of your two files. All the properties you specify will be included in the node. This node acts like a template to generate the nodes. The generator node itself does not appear in the output - it is replaced with what binman generates. + A 'data' property is created with the contents of the FDT file. You can create config nodes in a similar way:: @@ -79,8 +80,8 @@ class Entry_fit(Entry): }; }; - This tells binman to create nodes config-1 and config-2, i.e. a config for - each of your two files. + This tells binman to create nodes `config-1` and `config-2`, i.e. a config + for each of your two files. Available substitutions for '@' nodes are: -- 2.35.0.263.gb82422642f-goog