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 D3F59EB64DA for ; Mon, 10 Jul 2023 15:06:26 +0000 (UTC) Received: from h2850616.stratoserver.net (localhost [IPv6:::1]) by phobos.denx.de (Postfix) with ESMTP id 3C25D8670E; Mon, 10 Jul 2023 17:06:25 +0200 (CEST) Authentication-Results: phobos.denx.de; dmarc=pass (p=none dis=none) header.from=konsulko.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=konsulko.com header.i=@konsulko.com header.b="NeHZHD31"; dkim-atps=neutral Received: by phobos.denx.de (Postfix, from userid 109) id 2BF368670C; Mon, 10 Jul 2023 17:06:24 +0200 (CEST) Received: from mail-yw1-x1129.google.com (mail-yw1-x1129.google.com [IPv6:2607:f8b0:4864:20::1129]) (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 0F0BE86718 for ; Mon, 10 Jul 2023 17:06:21 +0200 (CEST) Authentication-Results: phobos.denx.de; dmarc=pass (p=none dis=none) header.from=konsulko.com Authentication-Results: phobos.denx.de; spf=pass smtp.mailfrom=trini@konsulko.com Received: by mail-yw1-x1129.google.com with SMTP id 00721157ae682-5774098f16eso58651537b3.0 for ; Mon, 10 Jul 2023 08:06:20 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=konsulko.com; s=google; t=1689001579; x=1691593579; h=in-reply-to:content-disposition:mime-version:references:message-id :subject:cc:to:from:date:from:to:cc:subject:date:message-id:reply-to; bh=aTR8xgB4K7PGE2q+28avdP3zxBjHXAj/SNuB05BOWpY=; b=NeHZHD31ldqmgNtpGNJ0tLQaJVm75bYFaFDtejEgxTh1mBrjAAHxC82MAk+K/AeW+U DnXs6buFP/PDygbvTQU0WSq9f6mTIspPWlpiGN/T5SUnS037VPIl0irLOPw8ytDOBwkN LuvowUsHIAEsDI/g+UBoSCecQDscTX2N/6ovc= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20221208; t=1689001579; x=1691593579; h=in-reply-to:content-disposition:mime-version:references:message-id :subject:cc:to:from:date:x-gm-message-state:from:to:cc:subject:date :message-id:reply-to; bh=aTR8xgB4K7PGE2q+28avdP3zxBjHXAj/SNuB05BOWpY=; b=DFzUZsNKlBDGt2Tv2GGEDn65TC0nirRegKsd1xO43WT3n7I1ey5a4HtSZ4+NcD9Wzh qaeVetxY2JjDW4bowB3EcAIMlv3hrbB9nRRAWARHoLGn3O12sE43EAuR8FjDcZGu+qwd 42ivdHl9wdXzRpVzhqu88AlOxBWV1ocJzdLXDpz0yFcE2mkABCbeBiT6pbVLK9sQwwEY 9ZBFojwFTNpJu/FX33KjGdHzSWxNKn+CGjIzMF14eUwizHbD1p40snkr4y0ZjMo/bJFD tqUc2E1GWn01oG7DjGvmrODfoBUBbq9JVEImQfewr8fHYwnunlXAf65U/dFjiJZFkKN0 7SeA== X-Gm-Message-State: ABy/qLYyYeJxs5uB2zdXtriH5Pn6sC06qNld9oLTHgQlJbAMRNcKqyKn e3LPGy2zly8Way/lEZkvL6rD9g== X-Google-Smtp-Source: APBJJlHYg53gis2GJX3yNpNFqT+i28aR+HLN8m+s3+GSkjgPX+EoiN6VntG+ON0wksUmic9CD87OnQ== X-Received: by 2002:a0d:d409:0:b0:56d:1747:5bde with SMTP id w9-20020a0dd409000000b0056d17475bdemr12535136ywd.32.1689001579591; Mon, 10 Jul 2023 08:06:19 -0700 (PDT) Received: from bill-the-cat (2603-6081-7b00-6400-df98-0e31-df37-537b.res6.spectrum.com. [2603:6081:7b00:6400:df98:e31:df37:537b]) by smtp.gmail.com with ESMTPSA id t1-20020a81c241000000b00545a08184e0sm3063594ywg.112.2023.07.10.08.06.18 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 10 Jul 2023 08:06:19 -0700 (PDT) Date: Mon, 10 Jul 2023 11:06:17 -0400 From: Tom Rini To: Samuel Dionne-Riel Cc: n-jain1@ti.com, u-boot@lists.denx.de, sjg@chromium.org, devarsht@ti.com, vigneshr@ti.com, nsekhar@ti.com Subject: Re: [PATCH] common: Kconfig: Fix CMD_BMP/BMP dependency Message-ID: <20230710150617.GP148062@bill-the-cat> References: <20230709231810.633044-1-samuel@dionne-riel.com> MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha512; protocol="application/pgp-signature"; boundary="dv87TfTJDZhS8C+6" Content-Disposition: inline In-Reply-To: <20230709231810.633044-1-samuel@dionne-riel.com> X-Clacks-Overhead: GNU Terry Pratchett 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 --dv87TfTJDZhS8C+6 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable 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. >=20 > By using `select`, if `CMD_BMP` is turned on, it will force the presence > of `BMP`. >=20 > 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(-) >=20 > 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 > =20 > 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 =2Econfig 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=3D360683&state=3D* but I'm not sure and will wait for Nikhil to chime in. --=20 Tom --dv87TfTJDZhS8C+6 Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- iQGzBAABCgAdFiEEGjx/cOCPqxcHgJu/FHw5/5Y0tywFAmSsHmUACgkQFHw5/5Y0 tyyF9Qv/cmhh8ddzsFAcCHYUJajVp3TqicZS4HjOi+RD2lrUQWWIwaVOCAJ4pnM9 TeEl+4FvKXviw7zCputKUJ3H+BhvcxR5sTCl4KaQC6E8oiv+rcPPPuXiEe2BR0RB bugALm4em+dhEfFuNK3EOtDvdRWAE7K+vsCwm0EK8ly/csMc2MfcoPAe8ZGk6iFL wTjiIDY4hP/OUMCh0nHfgvQaVqa4PhaGA4U6PMlKvBLXsYNYssti383C9caXlQ5S wPlg3SiTrdgyCwGgoLm6Jt2XfoM3HqbDCP2d4u4Kyxcjz6wW7UweY+oGhu+3iEyg +P7Yhqc/n8nh6hxdHwxi2G+UN1gdoBmVB3lQXtkElWCd0yniR5r1QFmFipSqbhXz xYYIL9YiC2u8coUehn4vIvq6Bsnz7IEiwhsR8JB0u2iTOnVMsJDYtG0N79LmPxs9 Ir3ENqAGN2iZH6GAsEZ0Lyb22cGs6+tlFZy50F9u6l7yF53my38xUDUjziLX/nce XYr3Qera =B91n -----END PGP SIGNATURE----- --dv87TfTJDZhS8C+6--