From patchwork Mon May 10 06:58:32 2021 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Bin Meng X-Patchwork-Id: 1476179 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=2a01:238:438b:c500:173d:9f52:ddab:ee01; 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=C92/ZIRJ; dkim-atps=neutral Received: from phobos.denx.de (phobos.denx.de [IPv6:2a01:238:438b:c500:173d:9f52:ddab:ee01]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits)) (No client certificate requested) by ozlabs.org (Postfix) with ESMTPS id 4FdsQ04qMGz9sXH for ; Mon, 10 May 2021 17:00:24 +1000 (AEST) Received: from h2850616.stratoserver.net (localhost [IPv6:::1]) by phobos.denx.de (Postfix) with ESMTP id 010C982F02; Mon, 10 May 2021 08:59:20 +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="C92/ZIRJ"; dkim-atps=neutral Received: by phobos.denx.de (Postfix, from userid 109) id 64A9A82EE9; Mon, 10 May 2021 08:59:09 +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-ej1-x62d.google.com (mail-ej1-x62d.google.com [IPv6:2a00:1450:4864:20::62d]) (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 9FF3B82EE6 for ; Mon, 10 May 2021 08:59:02 +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-ej1-x62d.google.com with SMTP id l4so22832098ejc.10 for ; Sun, 09 May 2021 23:59:02 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=from:to:subject:date:message-id:in-reply-to:references:mime-version :content-transfer-encoding; bh=n9SfnBNK7++phCmtcKevbKVGSOVpGMUcv89wLidWWNI=; b=C92/ZIRJuqVOjhKVeQe1aEgFCew1NZzn6ZJwlk8EglTFHtjE2sM+b4HsvsKtu7SJP8 Qun37adLwQZR6cOqa+2A9LFArcgymLqzHStFsT+2C42TVL/xSglGw7pe79vSw97zRAPG 07l0vQv5Hz3kwEVJjJBWC+eiwXbHCC00wjQOAKsKfBbJHr8aEI9gbNvGijPpTVCZy/uH i4B0CgJRUYUlqZVB9NUjf+1eb5tR6irDkXqJ5MSajNj1zZ7VAHwLo84x5e4iRr/x/HCk BqYbts4D1HGjalUhceR4/MyTwt9jp5EKjWwERss65s7xQbxTMowVRJ1c6b9x9B8rHDzf bOEA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:subject:date:message-id:in-reply-to :references:mime-version:content-transfer-encoding; bh=n9SfnBNK7++phCmtcKevbKVGSOVpGMUcv89wLidWWNI=; b=nSO5ervnIbxCnRJyN0aN3/aWxy8/RFDqXyhhUxPNFL0MlJjne2KnMSyBk0eWIzODrE NxrrQqovOw46FZJfdKn0KS5wW23zZVg0auOV9Awm/iFMEfRHrafKHmj5nTTDP1I1gVP/ z3OzTb6VxKkqAWL2B4VY9eeJ2gjrLb1maSLfi+ahC048Kv2SMlIQno7Ckd/JGa5+rv8q 7R4MxjOnjShURCoi2oZSfFvBbPq+zg+uyT09GBk8al0n/O7qKppq3Bmqinhc/tZMWM6Q /UyqYQbUaHM+LbVStofNMMU33IGnj0nXS64z5U8r0HRy//yRxslXtlLuWly0kTQgP2Fq 1fIg== X-Gm-Message-State: AOAM533hF78tH9EZF2AeLKr1C6JmxTCdZF2bZHFgKuczW1hQUEbasfkf uiyvMnqG32XsYlx9genGOhniWrQ7s5s= X-Google-Smtp-Source: ABdhPJxT8H+yarSsFUyk8fWXr9CvOe3AnocKAzOOw8tVteHHLlJDz0mOoOdyyD5JZKI4tYSdGTnPSg== X-Received: by 2002:a17:906:355a:: with SMTP id s26mr23337571eja.528.1620629942252; Sun, 09 May 2021 23:59:02 -0700 (PDT) Received: from pek-vx-bsp2.wrs.com (ec2-44-242-66-180.us-west-2.compute.amazonaws.com. [44.242.66.180]) by smtp.gmail.com with ESMTPSA id c5sm4744944eds.94.2021.05.09.23.58.59 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sun, 09 May 2021 23:59:01 -0700 (PDT) From: Bin Meng To: Simon Glass , Rick Chen , u-boot@lists.denx.de Subject: [PATCH v4 08/13] lib: kconfig: Limit BINMAN_FDT for OF_SEPARATE or OF_EMBED Date: Mon, 10 May 2021 14:58:32 +0800 Message-Id: <20210510065837.2008556-9-bmeng.cn@gmail.com> X-Mailer: git-send-email 2.25.1 In-Reply-To: <20210510065837.2008556-1-bmeng.cn@gmail.com> References: <20210510065837.2008556-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 --- (no changes since v3) 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