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 C24B5C433EF for ; Sun, 6 Feb 2022 21:03:40 +0000 (UTC) Received: from h2850616.stratoserver.net (localhost [IPv6:::1]) by phobos.denx.de (Postfix) with ESMTP id 0A83083C00; Sun, 6 Feb 2022 22:03:19 +0100 (CET) Authentication-Results: phobos.denx.de; dmarc=pass (p=none dis=none) header.from=gmail.com Authentication-Results: phobos.denx.de; spf=pass smtp.mailfrom=u-boot-bounces@lists.denx.de Authentication-Results: phobos.denx.de; dkim=pass (2048-bit key; unprotected) header.d=gmail.com header.i=@gmail.com header.b="ldJPTtz0"; dkim-atps=neutral Received: by phobos.denx.de (Postfix, from userid 109) id 844FB83BF1; Sun, 6 Feb 2022 22:03:15 +0100 (CET) Received: from mail-ej1-x631.google.com (mail-ej1-x631.google.com [IPv6:2a00:1450:4864:20::631]) (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 8E7718319C for ; Sun, 6 Feb 2022 22:03:12 +0100 (CET) Authentication-Results: phobos.denx.de; dmarc=pass (p=none dis=none) header.from=gmail.com Authentication-Results: phobos.denx.de; spf=pass smtp.mailfrom=alpernebiyasak@gmail.com Received: by mail-ej1-x631.google.com with SMTP id h7so36367673ejf.1 for ; Sun, 06 Feb 2022 13:03:12 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=from:to:cc:subject:date:message-id:in-reply-to:references :mime-version:content-transfer-encoding; bh=4svHbGUPRBt2VcrJYkmFjdQHf0+u0MDt4dRCcYxwA1s=; b=ldJPTtz0B+W9oMdUo1PQIhZjAb1caJAca+Du5aDVBpJyNADB8qXzIQlOkaJ4frtGui 78l/qUlQzh6x+tD0PENoOdYpQ1Valzc4tKVFbsqJVrVRsdHo/TWzE2TuBoVGXHaSDxPf SJPLgdOgKavsHFU3LGLp/ORFxpYUZiA4u3UGhPyBuvMAFlhdgzEn/9Isudc7474ouTTl 6zcaAXJYSoZovGFNrUoFDSvEMpL5y223O38uOZ6nDHR+AAmqMTwplf5zVqpB9K3mz03s McPmw//tQBk8EAXFobhkY6KizFZGkdY1WdLl9Sw6Cc4pnGnWm+G3pD17tw+ZibSDmSQU LZeg== 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=4svHbGUPRBt2VcrJYkmFjdQHf0+u0MDt4dRCcYxwA1s=; b=2sry2tAfqTa0gD+7iAwfuSKAo0ZxNOxWNOv+bQnqt/7Him18ugGTlcD0ulA1beOPf5 sLOsCArj6mwck/PUxCdtdDD/j4V98ACelefLFhSANUDpPkVZhmMyW7Sn1BKKdgOk6iZB QKvbI+A1gBf04+Fe8gjUfuSqiiDSRDWmJjiu3Pgo29qGZC7UnFbEwHjUPjA+ibyPt5CU Xy5oWL5yxaFPJb50y/K6gI86OQOXoNB5uevdWqAmDLFMV2k6banIKe751DJ/AzF8IRQh f/GEBVyHmHBCfayxymol0QKkX6emA2VAVx105yxxrpEeEbPJIpwIr04sZJ1zfHbSNtJt oNqQ== X-Gm-Message-State: AOAM532QErOpFadL6vDBVM751YYUo4sQgrEZ+GHudgeqRB/9wcjRFhHi 6OyrSEMfyNhPY2zSNdnoWyzsBjXfT4U= X-Google-Smtp-Source: ABdhPJyKQxE2FJ8HqCWXrt4gE5+JXiwQ9zCHKCaKCP8uglU8h310yjgmybNN/xP8yO06epx0FHxGfQ== X-Received: by 2002:a17:907:7da6:: with SMTP id oz38mr7401312ejc.290.1644181392129; Sun, 06 Feb 2022 13:03:12 -0800 (PST) Received: from localhost.localdomain ([178.233.26.119]) by smtp.gmail.com with ESMTPSA id u4sm2168405ejn.216.2022.02.06.13.03.10 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sun, 06 Feb 2022 13:03:11 -0800 (PST) From: Alper Nebi Yasak To: u-boot@lists.denx.de Cc: Simon Glass , Jan Kiszka , Heiko Thiery , Alper Nebi Yasak Subject: [PATCH 3/5] binman: Check missing bintools of Section subclasses Date: Mon, 7 Feb 2022 00:02:47 +0300 Message-Id: <20220206210250.90406-4-alpernebiyasak@gmail.com> X-Mailer: git-send-email 2.34.1 In-Reply-To: <20220206210250.90406-1-alpernebiyasak@gmail.com> References: <20220206210250.90406-1-alpernebiyasak@gmail.com> 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 Binman can check for missing binary tools and prints warnings if anything required for an image is missing. The implementation of this for the Section entry only checks the subentries, presumably because Section does not use any binary tools itself. However, this means the check is also skipped for subclasses of Section which might need binary tools. Make sure missing binary tools are checked for subclasses of the Section entry type as well, by calling the parent class' implementation in the relevant Section method. Signed-off-by: Alper Nebi Yasak --- This starts being tested by testFitMissing in the next patch when FIT becomes a Section subclass. tools/binman/etype/section.py | 1 + 1 file changed, 1 insertion(+) diff --git a/tools/binman/etype/section.py b/tools/binman/etype/section.py index bb375e9063df..213a510a8d5b 100644 --- a/tools/binman/etype/section.py +++ b/tools/binman/etype/section.py @@ -840,6 +840,7 @@ def check_missing_bintools(self, missing_list): Args: missing_list: List of Bintool objects to be added to """ + super().check_missing_bintools(missing_list) for entry in self._entries.values(): entry.check_missing_bintools(missing_list) -- 2.34.1