From patchwork Sun May 9 13:20:23 2021 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Bin Meng X-Patchwork-Id: 1475962 Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@bilbo.ozlabs.org Authentication-Results: ozlabs.org; spf=pass (sender SPF authorized) smtp.mailfrom=lists.denx.de (client-ip=85.214.62.61; helo=phobos.denx.de; envelope-from=u-boot-bounces@lists.denx.de; receiver=) Authentication-Results: ozlabs.org; dkim=pass (2048-bit key; unprotected) header.d=gmail.com header.i=@gmail.com header.a=rsa-sha256 header.s=20161025 header.b=kqlFfm2o; dkim-atps=neutral Received: from phobos.denx.de (phobos.denx.de [85.214.62.61]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (No client certificate requested) by ozlabs.org (Postfix) with ESMTPS id 4FdPxN2QCjz9tkD for ; Sun, 9 May 2021 23:22:32 +1000 (AEST) Received: from h2850616.stratoserver.net (localhost [IPv6:::1]) by phobos.denx.de (Postfix) with ESMTP id D31F182EBF; Sun, 9 May 2021 15:21:22 +0200 (CEST) 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="kqlFfm2o"; dkim-atps=neutral Received: by phobos.denx.de (Postfix, from userid 109) id D2E1F82EB7; Sun, 9 May 2021 15:21:03 +0200 (CEST) X-Spam-Checker-Version: SpamAssassin 3.4.2 (2018-09-13) on phobos.denx.de X-Spam-Level: X-Spam-Status: No, score=-2.0 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,FREEMAIL_FROM,SPF_HELO_NONE autolearn=ham autolearn_force=no version=3.4.2 Received: from mail-pj1-x1032.google.com (mail-pj1-x1032.google.com [IPv6:2607:f8b0:4864:20::1032]) (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 20D4B82AD2 for ; Sun, 9 May 2021 15:20:58 +0200 (CEST) Authentication-Results: phobos.denx.de; dmarc=pass (p=none dis=none) header.from=gmail.com Authentication-Results: phobos.denx.de; spf=pass smtp.mailfrom=bmeng.cn@gmail.com Received: by mail-pj1-x1032.google.com with SMTP id gq14-20020a17090b104eb029015be008ab0fso8588851pjb.1 for ; Sun, 09 May 2021 06:20:58 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=from:to:cc:subject:date:message-id:in-reply-to:references :mime-version:content-transfer-encoding; bh=EQCqiynwfq2dbq6eABSECJtWPOXYAg269hJr9UtmqoE=; b=kqlFfm2oZpR8r6HAMK7Xj0vOxVEXoWNxb8JxWJCvBmwe6dtgBdTCgpgefWV/rbDB8m Ll5qX00vkiP6gKUbryOMNyym2jv4WdI6HTvJWJ8+uOCi8ubPEQ7wqg+xjAfVXGsw6MKo bQsNxR9k/xqOecxE1iAaRwo32GI2PhT5Sk60j5JZX0ayDsLeKt638Kr96kV00aASCxEo aGvHY2eSFueBLVn+DPmF6fXQ3xd44Mr+CJZWfODg1X+6ptN3e5abxG0bQ/UutI78AY+k GpTy/C3rDFJaBe1rP3m0lAK6AsSk40AlATF4bPRK8yX0WgfxXDonRAFuK//5w1nempqu zBbQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references:mime-version:content-transfer-encoding; bh=EQCqiynwfq2dbq6eABSECJtWPOXYAg269hJr9UtmqoE=; b=HveP47aN+EfsMiQ0BN6rfifmR9+TNji0ClW3WxbFMvkJQNrPkVVUjbkh9J0YEs1h97 xJof0zg9vl0jW0kxrrjYJF9/V+hJbxqVXKqCu84qIi0zBPhJnWX2ZL78CElxL8gFs0UT SRzFQnnZ4Wo/yM5DogdIREmEW0AXxe6F8A8kBEt8AQI73NUekwPZw+WpBcrbxjPfuLen 3BVLf6Kd1D7/TpT1Y+BLNE0NGUPMrPiciCW1ZZUsDQKfrOUGd7Enjkys+AwYa2s4+gjY y4e/Ds55dwcNMzuHXp0Bwb89qGB0lfyIVy61JlNVSyBlV8xSf/eHTo4zhHBj9LyzUgW6 O3xw== X-Gm-Message-State: AOAM531LwL5vcFtfD/5HKIqop+oHwFg5H2UrtWDtdF/puezYEEmDilcM pliXWEyA2gXsevMqYSjy4Y2qdH2J5l4= X-Google-Smtp-Source: ABdhPJzPtk8JW0tHURzznnVnY95qNxftehMlErAHKo1LPP4oNMTaqIo2P6M17svhpS6vNr5DJlM5vw== X-Received: by 2002:a17:902:b10d:b029:ec:b5c2:5724 with SMTP id q13-20020a170902b10db02900ecb5c25724mr19963179plr.2.1620566456663; Sun, 09 May 2021 06:20:56 -0700 (PDT) Received: from i9-aorus-gtx1080.localdomain (144.168.56.201.16clouds.com. [144.168.56.201]) by smtp.gmail.com with ESMTPSA id a7sm8678112pfo.211.2021.05.09.06.20.54 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sun, 09 May 2021 06:20:56 -0700 (PDT) From: Bin Meng To: Simon Glass , Rick Chen , u-boot@lists.denx.de Cc: Bin Meng Subject: [PATCH v3 08/13] lib: kconfig: Limit BINMAN_FDT for OF_SEPARATE or OF_EMBED Date: Sun, 9 May 2021 21:20:23 +0800 Message-Id: <20210509132028.12794-9-bmeng.cn@gmail.com> X-Mailer: git-send-email 2.25.1 In-Reply-To: <20210509132028.12794-1-bmeng.cn@gmail.com> References: <20210509132028.12794-1-bmeng.cn@gmail.com> MIME-Version: 1.0 X-BeenThere: u-boot@lists.denx.de X-Mailman-Version: 2.1.34 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.102.4 at phobos.denx.de X-Virus-Status: Clean Generally speaking BINMAN_FDT makes sense for OF_SEPARATE or OF_EMBED. For the other OF_CONTROL methods, it's quite possible binman node is not available as binman is invoked during the build phase instead of runtime. Let's only turn it on for OF_SEPARATE or OF_EMBED by default. Signed-off-by: Bin Meng --- Changes in v3: - new patch: "lib: kconfig: Limit BINMAN_FDT for OF_SEPARATE or OF_EMBED" lib/Kconfig | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/Kconfig b/lib/Kconfig index 6d2d41de30..7d5990c940 100644 --- a/lib/Kconfig +++ b/lib/Kconfig @@ -25,7 +25,7 @@ config BCH config BINMAN_FDT bool "Allow access to binman information in the device tree" depends on BINMAN && DM && OF_CONTROL - default y + default y if OF_SEPARATE || OF_EMBED help This enables U-Boot to access information about binman entries, stored in the device tree in a binman node. Typical uses are to