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 DA9CFEB64D7 for ; Wed, 28 Jun 2023 11:42:02 +0000 (UTC) Received: from h2850616.stratoserver.net (localhost [IPv6:::1]) by phobos.denx.de (Postfix) with ESMTP id E37C58631B; Wed, 28 Jun 2023 13:41:59 +0200 (CEST) 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="R3tIWpYU"; dkim-atps=neutral Received: by phobos.denx.de (Postfix, from userid 109) id ED474865B9; Wed, 28 Jun 2023 13:41:57 +0200 (CEST) Received: from mail-ed1-x529.google.com (mail-ed1-x529.google.com [IPv6:2a00:1450:4864:20::529]) (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 F26B7862F1 for ; Wed, 28 Jun 2023 13:41:53 +0200 (CEST) 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-ed1-x529.google.com with SMTP id 4fb4d7f45d1cf-51d9865b8a2so3993261a12.3 for ; Wed, 28 Jun 2023 04:41:53 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=chromium.org; s=google; t=1687952513; x=1690544513; h=content-transfer-encoding:mime-version:message-id:date:subject:cc :to:from:from:to:cc:subject:date:message-id:reply-to; bh=J3fCXuZxswcmQDhhHXP0B2fP2u2I6MAR6fPt8D4fAFk=; b=R3tIWpYUjM7IbcynYydSaP3Y2AAPJLoCS+CqJWUe+An7GY47ZhLkcUGyOxe8NhPirx VwcLvlaJlUhzcZLUg9NdBeeJFQTVetF8Ryno6ZuNzT1HWsllb+e96NQEMv1tjU7LWLcA 44ySlOGWq1kV1XuF2JieLmdp9ct6xPcGm/zWo= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20221208; t=1687952513; x=1690544513; h=content-transfer-encoding:mime-version:message-id:date:subject:cc :to:from:x-gm-message-state:from:to:cc:subject:date:message-id :reply-to; bh=J3fCXuZxswcmQDhhHXP0B2fP2u2I6MAR6fPt8D4fAFk=; b=M5tajJSMVL7hmElIEKxnD7zS3lnYwb4DEGAuSd4Z0OBO35g30sEEoCUKS+aF4WE9y6 yVwYwH5KcXg0mQncEYtBv252/ITuXB6U1eS7/jUhp3P4o5U7QzCK6JUFkKNmDiS4HVk9 r8PdU+5Mypqkbh+3L/YsHCdX+lKEw6Oc7i0w/PG3fT2W/DidnrORxSrJjgtjyhIUj7la Q5lNfW7D5Q/Vm0PWaB2WelloskxX+y90xo/7sgYSaSjBf7sbVmXY2SrhcDdAfQ/Epw8T 5o9/9ZqYi6ERHs1u6Cnfcc30iejCmEXixpaKiQY1FAildaIfz40V+8i/ZUanWYMzCxSS 7HtQ== X-Gm-Message-State: AC+VfDxxhAovUWs7Z8rtNlc4koe0HFjJmoJ/7BJB9SazaFWgy2x6J5ts FPet476cAE0lHoLzGIm7HhX14CD22z59OUT078I= X-Google-Smtp-Source: ACHHUZ7LYFB9+usECirmh5WHYUn8lCNMwpBOb5PZ991g9ElFXWkbjXQ+n21dSwetl1gbB/PX1nXdAw== X-Received: by 2002:aa7:c685:0:b0:51d:d2c7:70e3 with SMTP id n5-20020aa7c685000000b0051dd2c770e3mr569073edq.42.1687952513092; Wed, 28 Jun 2023 04:41:53 -0700 (PDT) Received: from sjg1.praguecc.cz ([193.85.242.128]) by smtp.gmail.com with ESMTPSA id r18-20020aa7cb92000000b0051bec856cb4sm4676423edt.50.2023.06.28.04.41.52 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 28 Jun 2023 04:41:52 -0700 (PDT) From: Simon Glass To: U-Boot Mailing List Cc: Jan Kiszka , Simon Glass , Alper Nebi Yasak , Heinrich Schuchardt , Ivan Mikhaylov , Jonas Karlman , Kever Yang , Marek Vasut , Neha Malcom Francis , Patrice Chotard , Patrick Delaunay , Peng Fan , Philippe Reynes , Quentin Schulz , Stefan Herbrechtsmeier , uboot-stm32@st-md-mailman.stormreply.com Subject: [PATCH 00/12] binman: Simple templating feature and mkimage conversion Date: Wed, 28 Jun 2023 12:41:33 +0100 Message-ID: <20230628114149.439723-1-sjg@chromium.org> X-Mailer: git-send-email 2.41.0.162.gfafddb0af9-goog 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.8 at phobos.denx.de X-Virus-Status: Clean This series converts the mkimage entry type to be a section, i.e. based on the entry_Section class. This makes it more consistent in its behaviour, e.g. allowing symbol writing and expanded entries. A simple templating feature is also introduced, to reduce duplication when a set of entries must be used in multiple images. The templating implementation works by appending the template nodes to the target node. It is probably better to insert the template nodes before any subnodes in the target, so that the ordering of nodes in the template is preserved. But that involves rewriting the Fdt classs, since it can currently only add a subnode after the existing ones. This is left for later. Marek Vasut (1): binman: Convert mkimage to Entry_section Simon Glass (11): binman: Init align_default in entry_Section binman: Use GetEntries() to obtain section contents binman: Read _multiple_data_files in the correct place binman: Allow disabling symbol writing stm32mp15: Avoid writing symbols in SPL binman: Provide a way to specific the fdt-list directly binman: Drop __bss_size variable in bss_data.c binman: Correct handling of zero bss size dtoc: Support copying the contents of a node into another dtoc: Allow inserting a list of nodes into another binman: Support simple templates arch/arm/dts/stm32mp15-u-boot.dtsi | 1 + tools/binman/binman.rst | 87 ++++++++++++++++++ tools/binman/control.py | 9 ++ tools/binman/elf_test.py | 5 ++ tools/binman/entries.rst | 6 ++ tools/binman/entry.py | 10 +-- tools/binman/etype/blob_phase.py | 5 ++ tools/binman/etype/fit.py | 9 ++ tools/binman/etype/mkimage.py | 79 ++++++++++------- tools/binman/etype/section.py | 22 ++--- tools/binman/etype/u_boot_spl_bss_pad.py | 2 +- tools/binman/etype/u_boot_tpl_bss_pad.py | 2 +- tools/binman/etype/u_boot_vpl_bss_pad.py | 2 +- tools/binman/ftest.py | 103 +++++++++++++++++++++- tools/binman/test/282_symbols_disable.dts | 25 ++++++ tools/binman/test/283_mkimage_special.dts | 24 +++++ tools/binman/test/284_fit_fdt_list.dts | 58 ++++++++++++ tools/binman/test/285_spl_expand.dts | 13 +++ tools/binman/test/286_entry_template.dts | 42 +++++++++ tools/binman/test/Makefile | 5 +- tools/binman/test/bss_data.c | 3 +- tools/binman/test/bss_data_zero.c | 16 ++++ tools/binman/test/bss_data_zero.lds | 15 ++++ tools/binman/test/embed_data.lds | 1 + tools/dtoc/fdt.py | 38 ++++++++ tools/dtoc/test/dtoc_test_simple.dts | 13 ++- tools/dtoc/test_fdt.py | 61 +++++++++++++ 27 files changed, 599 insertions(+), 57 deletions(-) create mode 100644 tools/binman/test/282_symbols_disable.dts create mode 100644 tools/binman/test/283_mkimage_special.dts create mode 100644 tools/binman/test/284_fit_fdt_list.dts create mode 100644 tools/binman/test/285_spl_expand.dts create mode 100644 tools/binman/test/286_entry_template.dts create mode 100644 tools/binman/test/bss_data_zero.c create mode 100644 tools/binman/test/bss_data_zero.lds -- 2.41.0.162.gfafddb0af9-goog