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 88365C7618E for ; Fri, 17 Mar 2023 14:34:21 +0000 (UTC) Received: from h2850616.stratoserver.net (localhost [IPv6:::1]) by phobos.denx.de (Postfix) with ESMTP id 810A785956; Fri, 17 Mar 2023 15:34:18 +0100 (CET) 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="Wvh0KyBp"; dkim-atps=neutral Received: by phobos.denx.de (Postfix, from userid 109) id 6969585B78; Fri, 17 Mar 2023 15:34:16 +0100 (CET) Received: from mail-qv1-xf30.google.com (mail-qv1-xf30.google.com [IPv6:2607:f8b0:4864:20::f30]) (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 4D9908594A for ; Fri, 17 Mar 2023 15:34:13 +0100 (CET) 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-qv1-xf30.google.com with SMTP id g9so3541408qvt.8 for ; Fri, 17 Mar 2023 07:34:13 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=konsulko.com; s=google; t=1679063652; 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=epEMqrNeqlQewpIZRUuhkCiddhOPdy9K1GggeNPI8kc=; b=Wvh0KyBpqaSGSxfTXw4hm/+yB09Kh5BDJD4eMZERbQcyXX+C5E4xTuniz0cb90ubAq L1epjl3gOvf6P39NkxpYchHH/2hjaG4SHNg5cNgx8pfTmnxWy28b1geIdS6nS4K6ok6d kRHXaZS4EaNS3W3skSt+byY9SEzu/qARtTAcQ= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; t=1679063652; 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=epEMqrNeqlQewpIZRUuhkCiddhOPdy9K1GggeNPI8kc=; b=I4vLnemb/anN7+yjVfTQPVIgjbNUo+MBFjBw/wdLED7yw+l49F1hk5nEXQ6KOQr01N vU96se5l9oDNhKRCYvzbsyBzMxBKMTu/b0iBvXKqmCSSUS3BC3IwItXAZvJTiiGP5tdG csn36HeehThrPSoW+EKTuP/nDzFZs2GD0sWTk594OXyGPUMBysE8GZ40W85Veuh+UrqI REaYLpwajab8cX/Tuw5N28xPaaONJ+bMxOqBrpXd0GXPUKuNee8x0uqEEnl7HkPvzr9H 7OzGY9knWGyHDK+Po5GU+IcFd/ahTmOObhqWGr5KeOcrKHC/KNuOLNhc8QHzLbp4qkLQ K7oA== X-Gm-Message-State: AO0yUKXjy2H5VkaPRJzlGGqAlM9AH/pjSnGzSyvJ96TaMSaGazSq6c4h BEQXIgqdl1zEaYCUkxEJAcJ5Fg== X-Google-Smtp-Source: AK7set/fhQJcx4lLt6NeRhlfwht+l+NibjiMJ3zmrEGpseZsO7BQfU5ZLXnbLdV/LVnF9H8JBCQ/WQ== X-Received: by 2002:a05:6214:e8a:b0:5af:af15:8d37 with SMTP id hf10-20020a0562140e8a00b005afaf158d37mr15612027qvb.52.1679063651939; Fri, 17 Mar 2023 07:34:11 -0700 (PDT) Received: from bill-the-cat (2603-6081-7b00-6400-1b74-53e3-8162-4fca.res6.spectrum.com. [2603:6081:7b00:6400:1b74:53e3:8162:4fca]) by smtp.gmail.com with ESMTPSA id y2-20020a37f602000000b0073b878e3f30sm1760732qkj.59.2023.03.17.07.34.11 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 17 Mar 2023 07:34:11 -0700 (PDT) Date: Fri, 17 Mar 2023 10:34:09 -0400 From: Tom Rini To: Simon Glass Cc: U-Boot Mailing List , huang lin , Jeffy Chen , Kever Yang , Philipp Tomsich , Vagrant Cascadian Subject: Re: [PATCH v2 6/8] boot: Create a common BOOT_DEFAULTS for distro and bootstd Message-ID: <20230317143409.GW54321@bill-the-cat> References: <20230302033930.2546548-1-sjg@chromium.org> <20230302033930.2546548-6-sjg@chromium.org> MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha512; protocol="application/pgp-signature"; boundary="5tWrtDcp4wb+iLbr" Content-Disposition: inline In-Reply-To: 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 --5tWrtDcp4wb+iLbr Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable On Thu, Mar 16, 2023 at 11:25:17PM -0600, Simon Glass wrote: > Hi Tom, >=20 > On Thu, 2 Mar 2023 at 08:14, Tom Rini wrote: > > > > On Wed, Mar 01, 2023 at 08:39:27PM -0700, Simon Glass wrote: > > > > > These two features use a lot of common options. Move them into a comm= on > > > CONFIG to reduce duplication. > > > > > > Resync defconfigs since this makes a lot of changes. > > > > > > Signed-off-by: Simon Glass > > [snip] > > > diff --git a/boot/Kconfig b/boot/Kconfig > > > index da18d4738a7..7f7ec208a54 100644 > > > --- a/boot/Kconfig > > > +++ b/boot/Kconfig > > > @@ -350,6 +350,35 @@ config PXE_UTILS > > > help > > > Utilities for parsing PXE file formats. > > > > > > +config BOOT_DEFAULTS > > > + bool # Common defaults for standard boot and distroboot > > > + imply USE_BOOTCOMMAND > > > + # Bring in some defaults which are generally needed. Boards can= drop > > > + # these as needed to save code space. Bootstd does not generall= y require > > > + # the commands themselves to be enabled, but this is how some o= f the > > > + # functionality is controlled at present > > > + select CMD_ENV_EXISTS > > > + imply CMD_EXT2 > > > + imply CMD_EXT4 > > > + imply CMD_FAT > > > + imply CMD_FS_GENERIC > > > + imply CMD_PART if PARTITIONS > > > + imply CMD_DHCP if NET > > > + imply CMD_MII if NET > > > + imply CMD_PING if NET > > > + imply CMD_PXE if NET > > > + imply USB_STORAGE > > > + imply SUPPORT_RAW_INITRD > > > + imply ENV_VARS_UBOOT_CONFIG > > > + imply EFI_PARTITION > > > + imply ISO_PARTITION > > > + select CMD_BOOTI if ARM64 > > > + select CMD_BOOTZ if ARM && !ARM64 > > > + help > > > + These are not required but are commonly needed to support a g= ood > > > + selection of booting methods. Enable this to improve the capa= bility > > > + of U-Boot to boot various images. > > > > We want the more heavy-handed select rather than imply here, as this is > > part of making sure people do end up with a set of default that will > > work and not unexpectedly fail to boot off-the-shelf things. > > >=20 > But then boards cannot override it. This is a 'default' option that > intends to bring in things that make it easier for the user to get > right. But we do need to allow for people to use standard boot in more > constrained ways. These are things that boards aren't supposed to override, which is why they're select'd because the board has chosen to use one of the "give me good defaults" options. So "select" as is done currently is what I want here, for now. We can evaluate later if there's a good reason to not select things. --=20 Tom --5tWrtDcp4wb+iLbr Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- iQGzBAABCgAdFiEEGjx/cOCPqxcHgJu/FHw5/5Y0tywFAmQUel4ACgkQFHw5/5Y0 tyziRgwAsQ1xLigqwson1pvsNzp9Yk+TH8c1BC9O1LxxeKqAAzoprnm2PeIZTwlN u0szXDif+KbKXr3kYQnrqebioICcl2dc02GSxv3w/h+7pQYqYHEvosPNwQkzYLiU VPG9ja9QY4P87kwhxGhr3WFSduF7Ru0jEeBZvHG2BBWUKFaluDp0Jnyvyk6Nfum8 +9EgCk+cCRbJpw8LHEqJo5k2Kh9kaNro06tq3jnZufrWiyfzLC2EKVy6vFtbEtTI bBWqdIrYnPAZ/wM4bKNLt5qVuZMsihJa9tSlyWzvQjAs6Hh8Ban1Mt8+N2xRJOBW 7xCtv9sPBtNX53cGv5hEm8UDgKiaIwXmWq9IhazBlHwpQq5MNgfmjJpg7MD6UG3k FIhHpYGihdFH8YSpWF5nKRSCgs+sJ0ZNiPQo4rKf01sU2z9r485bVbjdcIwCIJNj JJXW5IrSK44zpeR1dEU2sxRlNFPAAdg+pcXzrhbrBMgwvgKfgnaIoo0o+iFjzbLe fSJY/152 =K574 -----END PGP SIGNATURE----- --5tWrtDcp4wb+iLbr--