From patchwork Mon May 10 12:23:36 2021 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Bin Meng X-Patchwork-Id: 1476360 X-Patchwork-Delegate: uboot@andestech.com 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=BKYvI+7a; 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 4Ff0d30GNqz9rx6 for ; Mon, 10 May 2021 22:25:26 +1000 (AEST) Received: from h2850616.stratoserver.net (localhost [IPv6:::1]) by phobos.denx.de (Postfix) with ESMTP id C302982EF7; Mon, 10 May 2021 14:24: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="BKYvI+7a"; dkim-atps=neutral Received: by phobos.denx.de (Postfix, from userid 109) id 8D43482EE3; Mon, 10 May 2021 14:24:13 +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-pl1-x631.google.com (mail-pl1-x631.google.com [IPv6:2607:f8b0: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 11FE682EC9 for ; Mon, 10 May 2021 14:24:08 +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-pl1-x631.google.com with SMTP id b3so9031871plg.11 for ; Mon, 10 May 2021 05:24:07 -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=n9SfnBNK7++phCmtcKevbKVGSOVpGMUcv89wLidWWNI=; b=BKYvI+7a43IvVx1+ATP7y7Gu5qRUHJBwArRr0EJYb6gOZ4Milhwu1C6p2MALaWoH4o bafy2K5uErQqJTQJmTSwbea4Q4UNB5raMp89e80zO5bGUqwX99kUOO9N5zakSY+mCMZq KB6IbqU/4G0aMa2N3fPoyKoXdNdE/n1irUC2vLqgidGYWjKhKeLalTwGvvhAg5CCwczX n+vEgZ4kr76qMCGI9P6PSN2bgdo0mIqSK+QF4Ayt0YcQMerulIcgBOD3vid8Ch8lO/w9 PUUNpIu9V43KSlQZdg/V+ruuocB03ZdVJe/P4NcYe3vGZ0Th/YufoEOEdgAkxqpalHkI ZuxQ== 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=n9SfnBNK7++phCmtcKevbKVGSOVpGMUcv89wLidWWNI=; b=DpI9LrYJ5oIgsXn7V1Z7tVU0HoRP74Q+D2FCgoybONhTswTwXes3WPYH1QeBft0TeE IvOphyPKrsYyiGi7RE5PkRlZx4D3ca/v09NheOePCTZ+0VonhYW6ZIXdpiIDZL5DbuBV TaB2cZMrk2wErlpeFlPdiuK2ifiuC2GPqtxbkpV39M85Qg6p2xbP8N10h0ht8B4seefk oJedhZP/Qkynw+1uY5I1bkGh0Vc4UKb7/QgKZyFPpftsV4uQWqP3s+CaURLVajzUMFYb S+hril4LMqF4adGWUyItXmor4+ihQ4r2JM28Ema19gaMuBdL49+zsyNm1WyoaIjpnqd1 ZFbg== X-Gm-Message-State: AOAM530rV3lEBbxUjblrdyusxVSlefW0yAKrkEqkl0YiGb9NFZmYU27D rLydOpReBV1c6MMCUKCYsdA= X-Google-Smtp-Source: ABdhPJz3Sv6L51ok3ZffUeLEPkc+Z03zhV6G+ibFdbBoaMl6ges3ccdIJ3BzFzmLSjYQPhdgaGK+ZQ== X-Received: by 2002:a17:90a:fe3:: with SMTP id 90mr41128071pjz.215.1620649446498; Mon, 10 May 2021 05:24:06 -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 d3sm1405661pfn.141.2021.05.10.05.24.04 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 10 May 2021 05:24:06 -0700 (PDT) From: Bin Meng To: Simon Glass , Rick Chen , u-boot@lists.denx.de Cc: Bin Meng Subject: [PATCH v5 08/13] lib: kconfig: Limit BINMAN_FDT for OF_SEPARATE or OF_EMBED Date: Mon, 10 May 2021 20:23:36 +0800 Message-Id: <20210510122341.13798-9-bmeng.cn@gmail.com> X-Mailer: git-send-email 2.25.1 In-Reply-To: <20210510122341.13798-1-bmeng.cn@gmail.com> References: <20210510122341.13798-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 Reviewed-by: Simon Glass --- (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