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 B4615EB64DA for ; Fri, 14 Jul 2023 07:39:18 +0000 (UTC) Received: from h2850616.stratoserver.net (localhost [IPv6:::1]) by phobos.denx.de (Postfix) with ESMTP id C01C186D68; Fri, 14 Jul 2023 09:39:16 +0200 (CEST) Authentication-Results: phobos.denx.de; dmarc=pass (p=quarantine dis=none) header.from=ti.com Authentication-Results: phobos.denx.de; spf=pass smtp.mailfrom=u-boot-bounces@lists.denx.de Authentication-Results: phobos.denx.de; dkim=pass (1024-bit key; unprotected) header.d=ti.com header.i=@ti.com header.b="lBKIqNMI"; dkim-atps=neutral Received: by phobos.denx.de (Postfix, from userid 109) id 8ED7686BE1; Fri, 14 Jul 2023 09:39:14 +0200 (CEST) Received: from fllv0016.ext.ti.com (fllv0016.ext.ti.com [198.47.19.142]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by phobos.denx.de (Postfix) with ESMTPS id 56D4986D6A for ; Fri, 14 Jul 2023 09:39:09 +0200 (CEST) Authentication-Results: phobos.denx.de; dmarc=pass (p=quarantine dis=none) header.from=ti.com Authentication-Results: phobos.denx.de; spf=pass smtp.mailfrom=n-jain1@ti.com Received: from lelv0265.itg.ti.com ([10.180.67.224]) by fllv0016.ext.ti.com (8.15.2/8.15.2) with ESMTP id 36E7d5Xk004628; Fri, 14 Jul 2023 02:39:05 -0500 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=ti.com; s=ti-com-17Q1; t=1689320345; bh=LJ3v5d59qcNUKHymsyqfbdBq0OcmgAXJFVGTKeQTNLg=; h=Date:Subject:To:CC:References:From:In-Reply-To; b=lBKIqNMIVri6s9YX5ldga7s14d5+2hDav7IaXFJIAcysTG+/d/tRJG4jG4sMrivi8 ++axxjNpWpSv0jibbryPffEBhWloNlBOPIUMhHEP8DVfU8ny2KHtsEUkED4UuKimRb MPCkHuuxM++q8a1LW7eLW+09Zq2AKIA1fEU3/AL4= Received: from DFLE109.ent.ti.com (dfle109.ent.ti.com [10.64.6.30]) by lelv0265.itg.ti.com (8.15.2/8.15.2) with ESMTPS id 36E7d5gf028676 (version=TLSv1.2 cipher=AES256-GCM-SHA384 bits=256 verify=FAIL); Fri, 14 Jul 2023 02:39:05 -0500 Received: from DFLE107.ent.ti.com (10.64.6.28) by DFLE109.ent.ti.com (10.64.6.30) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_CBC_SHA256_P256) id 15.1.2507.23; Fri, 14 Jul 2023 02:39:05 -0500 Received: from fllv0040.itg.ti.com (10.64.41.20) by DFLE107.ent.ti.com (10.64.6.28) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_CBC_SHA256_P256) id 15.1.2507.23 via Frontend Transport; Fri, 14 Jul 2023 02:39:05 -0500 Received: from [172.24.227.117] (ileaxei01-snat.itg.ti.com [10.180.69.5]) by fllv0040.itg.ti.com (8.15.2/8.15.2) with ESMTP id 36E7d2Yj055272; Fri, 14 Jul 2023 02:39:03 -0500 Message-ID: <67554e6e-9957-e688-e419-464e43e5128b@ti.com> Date: Fri, 14 Jul 2023 13:09:02 +0530 MIME-Version: 1.0 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:102.0) Gecko/20100101 Thunderbird/102.13.0 Subject: Re: [EXTERNAL] Re: [PATCH] common: Kconfig: Fix CMD_BMP/BMP dependency To: Tom Rini , Samuel Dionne-Riel CC: , , , , References: <20230709231810.633044-1-samuel@dionne-riel.com> <20230710150617.GP148062@bill-the-cat> Content-Language: en-US From: Nikhil M Jain In-Reply-To: <20230710150617.GP148062@bill-the-cat> Content-Type: text/plain; charset="UTF-8"; format=flowed Content-Transfer-Encoding: 7bit X-EXCLAIMER-MD-CONFIG: e1e8a2fd-e40a-4ac6-ac9b-f7e9cc9ee180 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.8 at phobos.denx.de X-Virus-Status: Clean On 10/07/23 20:36, Tom Rini wrote: > On Sun, Jul 09, 2023 at 07:18:10PM -0400, Samuel Dionne-Riel wrote: > >> Using `default y` will not select BMP when CMD_BMP has been enabled, if >> it was already configured. >> >> By using `select`, if `CMD_BMP` is turned on, it will force the presence >> of `BMP`. >> >> Fixes: 072b0e16c482114d242580dd7a3197db5966705f > > The fixes tag should be the "git log -n1 --oneline" version of the > commit, btw. > >> Signed-off-by: Samuel Dionne-Riel >> --- >> cmd/Kconfig | 1 + >> common/Kconfig | 2 +- >> 2 files changed, 2 insertions(+), 1 deletion(-) >> >> diff --git a/cmd/Kconfig b/cmd/Kconfig >> index 02e54f1e50..94c54b2359 100644 >> --- a/cmd/Kconfig >> +++ b/cmd/Kconfig >> @@ -1988,6 +1988,7 @@ config CMD_2048 >> config CMD_BMP >> bool "Enable 'bmp' command" >> depends on VIDEO >> + select BMP >> help >> This provides a way to obtain information about a BMP-format image >> and to display it. BMP (which presumably stands for BitMaP) is a >> diff --git a/common/Kconfig b/common/Kconfig >> index bbabadb35e..d0117e3dc8 100644 >> --- a/common/Kconfig >> +++ b/common/Kconfig >> @@ -1157,7 +1157,7 @@ config IO_TRACE >> >> config BMP >> bool "Enable bmp image display" >> - default y if CMD_BMP >> + default n >> help >> Enable bmp functions to display bmp image and get bmp info. > > Since this is something that can be resolved by correcting the resulting > .config file (or storing a new defconfig in your build system, or what > have you) I'm not grabbing this for the release I'll be doing later > today. Also in a v2, "default n" is the default. And I'm not entirely > sure if BMP (and SPL_BMP) end up being things that should be asked, or > should be select'd because they're library functions. Finally, this > should perhaps be part of > https://patchwork.ozlabs.org/project/uboot/list/?series=360683&state=* > but I'm not sure and will wait for Nikhil to chime in. > @Samuel, is it okay if I pick this patch and send it as a patch as part of my above mentioned series with the changes suggested by Tom?