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 7C1CDC433F5 for ; Mon, 7 Feb 2022 22:08:56 +0000 (UTC) Received: from h2850616.stratoserver.net (localhost [IPv6:::1]) by phobos.denx.de (Postfix) with ESMTP id 9E27D83C0D; Mon, 7 Feb 2022 23:08:37 +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="CJ3jDkxW"; dkim-atps=neutral Received: by phobos.denx.de (Postfix, from userid 109) id 7CD5F83BBF; Mon, 7 Feb 2022 23:08:33 +0100 (CET) Received: from mail-ed1-x52c.google.com (mail-ed1-x52c.google.com [IPv6:2a00:1450:4864:20::52c]) (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 316F083BCD for ; Mon, 7 Feb 2022 23:08:30 +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-ed1-x52c.google.com with SMTP id cn6so10524289edb.5 for ; Mon, 07 Feb 2022 14:08:30 -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=ChScpN9bEhXbpWZpgBQO7KfdXp8pL/sv2gXK2aNdTsk=; b=CJ3jDkxWVE2vnuL9gU5XErCmbPHUcXuagOmXsr5INdbGK+E8o5Kqf/RncQxJSC7ye7 sTfsi34CyJ1ScejC81A2BTksa68lC8LQqn9F1YC0LQUP/iU8GsnJKF60eGRveFtKMsTb gYVxQNx1sehAxdgzxQZTk9ZZcGvnyg9ZEQeRh6DlteGTxeEhwJR68uBSFssRNZiDI2p+ vNsysfyEk9Lih6GG2IkmaEd8JH7Iw8KYz4IkKdJ9UWErjC3iZs7FWbsg5IY6lSq0cFOy 1xA96HwX8gfJZvKcZ42jJ7Fi7Tz1xA/Qbv9KoNhHYwKp84yGcSaQxqobtQ5wlqadz1xp i+rg== 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=ChScpN9bEhXbpWZpgBQO7KfdXp8pL/sv2gXK2aNdTsk=; b=JS6jaFmJE7KvdAWxHybpsezMYATbrpcvwbXuWOjtZtvoC7/eW034AAPKDawMEDV7Zl WuBNGFCw47QNVk0LZLJ7yZeQ0PotxBMZFvXuQD6RRPQA86ggoytCuaFQ66nGPw4j/H+u rV8RiXAQallPzwpgxuTTSfdNc8oRZYbyzix7SJl/b0s5cmwS3Is0mhA75ERBMKEXTLrR kNumEALx4D68v9YYD75R1f0y9R9T7FX0FljRDvB4OBlhydVR6J7sWptfooQDFCtuhoen iHhZVJpE+j3OzqHwOyO9+uBErf7ORVKPaI998nLzQWXOs7w/DOSynkSPG3+4m25MvegI PH7g== X-Gm-Message-State: AOAM533oRf4QHnR48irpci5v3bfivk0yiTL42gq+K26hDwLgW8m9FQcr Yn3OZXrJtyAolc6V31O/0s8VtYgVVCI= X-Google-Smtp-Source: ABdhPJxhldvVkrLP3BsDViCSa0xJ7OOXYBDjlMTn8a+UKEiTiD5xqwUMhY98HWLnzOqDIt20c33+FQ== X-Received: by 2002:a05:6402:3489:: with SMTP id v9mr1274195edc.249.1644271709796; Mon, 07 Feb 2022 14:08:29 -0800 (PST) Received: from localhost.localdomain ([178.233.26.119]) by smtp.gmail.com with ESMTPSA id v16sm4081300ejo.156.2022.02.07.14.08.27 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 07 Feb 2022 14:08:29 -0800 (PST) From: Alper Nebi Yasak To: u-boot@lists.denx.de Cc: Heiko Thiery , Jan Kiszka , Simon Glass , Alper Nebi Yasak Subject: [PATCH v2 3/5] binman: Check missing bintools of Section subclasses Date: Tue, 8 Feb 2022 01:08:06 +0300 Message-Id: <20220207220809.4497-4-alpernebiyasak@gmail.com> X-Mailer: git-send-email 2.34.1 In-Reply-To: <20220207220809.4497-1-alpernebiyasak@gmail.com> References: <20220207220809.4497-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 Reviewed-by: Simon Glass --- This starts being tested by testFitMissing in the next patch when FIT becomes a Section subclass. Changes in v2: - Add tag: "Reviewed-by: Simon Glass " 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