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 313B6C001DC for ; Tue, 11 Jul 2023 15:00:41 +0000 (UTC) Received: from h2850616.stratoserver.net (localhost [IPv6:::1]) by phobos.denx.de (Postfix) with ESMTP id D8DBC868B8; Tue, 11 Jul 2023 16:59:58 +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="eSXFeNsX"; dkim-atps=neutral Received: by phobos.denx.de (Postfix, from userid 109) id 027B7868AE; Tue, 11 Jul 2023 16:59:54 +0200 (CEST) Received: from mail-il1-x136.google.com (mail-il1-x136.google.com [IPv6:2607:f8b0:4864:20::136]) (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 CE50286888 for ; Tue, 11 Jul 2023 16:59:49 +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-il1-x136.google.com with SMTP id e9e14a558f8ab-346392da0d6so19790295ab.3 for ; Tue, 11 Jul 2023 07:59:49 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=chromium.org; s=google; t=1689087588; x=1691679588; 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=bPVACtUwzeBNx6SLT444KyBqyMKd7LNOGFlm3/5BS/o=; b=eSXFeNsXHtcqYgGreg3RHiKRS4dRBMRDtYffe2cj7AeyRIpjTCTeEd8w1rAvD7K7CL WLbXEPZDyAoJZMo5Tb854Z8t5Rhj9H+xzO41udD0A8z/HnDYodYZ3zq9nUgIc/xXbpD6 Nocx+q2FIpTsKHP9YZvS4qo4iTSB11xtc32wE= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20221208; t=1689087588; x=1691679588; 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=bPVACtUwzeBNx6SLT444KyBqyMKd7LNOGFlm3/5BS/o=; b=N796sKTozdQ0pv42czT6Zk51TWxjmQGDaJ4eBecrvT019wiKh3QcbEm2BCyJzVNoq1 MAOp7kq7DmeO8h4RSMFzLPZ00/kR7FGJrzIVBVR2rYdPuY4+KBypR4bobdcn+jVckd1Q JQiOyA23Z+3yQknZrd3iMPaicH5Vx8RltUfFkBZiS4BQ4K4QJvyxs2BTBwo+RMXyQ9jV cTvmbnPhUuy8NwmhP7XX/ErnYwwmV2PeZUP+k+d16TQr2Of7zghNvjXuaBi3fHRrFTb1 PfaJsjLvb/uBQ9X1OYied5Uc40xVsN7eFpdLtY69TCN4l2UxhMMHJN9H/aaphynrXP4G Ok2Q== X-Gm-Message-State: ABy/qLYqa3tpJaTlIbU5EbuxeulMAW4znGtRgJ8xMFiVB5i/qgIDzTLk vab4Au8nZXMkCw8/X09W6WV0xFJgPL8kbpw1R4w= X-Google-Smtp-Source: APBJJlFftjkgpPOEwwax+TgimH7RyMxr9e9SDkr6rF+dFUbTGhPpy/6/UQNOD3wLr6ZkIS3Fg/GRiw== X-Received: by 2002:a05:6e02:4cb:b0:345:7c3a:e68 with SMTP id f11-20020a056e0204cb00b003457c3a0e68mr2752207ils.1.1689087588495; Tue, 11 Jul 2023 07:59:48 -0700 (PDT) Received: from sjg1.lan (c-73-14-173-85.hsd1.co.comcast.net. [73.14.173.85]) by smtp.gmail.com with ESMTPSA id v6-20020a92cd46000000b00338a1272ce1sm658881ilq.52.2023.07.11.07.59.48 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 11 Jul 2023 07:59:48 -0700 (PDT) From: Simon Glass To: U-Boot Mailing List Cc: Marek Vasut , Jan Kiszka , Simon Glass , Alper Nebi Yasak , Neha Malcom Francis , Peng Fan , Philippe Reynes , Stefan Herbrechtsmeier Subject: [PATCH v4 04/20] binman: Read _multiple_data_files in the correct place Date: Tue, 11 Jul 2023 08:59:06 -0600 Message-ID: <20230711145935.2289816-5-sjg@chromium.org> X-Mailer: git-send-email 2.41.0.390.g38632f3daf-goog In-Reply-To: <20230711145935.2289816-1-sjg@chromium.org> References: <20230711145935.2289816-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.8 at phobos.denx.de X-Virus-Status: Clean Move this to the ReadEntries() function where it belongs. Signed-off-by: Simon Glass --- (no changes since v1) tools/binman/etype/mkimage.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/tools/binman/etype/mkimage.py b/tools/binman/etype/mkimage.py index e028c4407081..cb3e10672ad7 100644 --- a/tools/binman/etype/mkimage.py +++ b/tools/binman/etype/mkimage.py @@ -121,7 +121,6 @@ class Entry_mkimage(Entry): """ def __init__(self, section, etype, node): super().__init__(section, etype, node) - self._multiple_data_files = fdt_util.GetBool(self._node, 'multiple-data-files') self._mkimage_entries = OrderedDict() self._imagename = None self._filename = fdt_util.GetString(self._node, 'filename') @@ -129,6 +128,8 @@ class Entry_mkimage(Entry): def ReadNode(self): super().ReadNode() + self._multiple_data_files = fdt_util.GetBool(self._node, + 'multiple-data-files') self._args = fdt_util.GetArgs(self._node, 'args') self._data_to_imagename = fdt_util.GetBool(self._node, 'data-to-imagename') -- 2.41.0.390.g38632f3daf-goog