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 BAAB7C74A5B for ; Fri, 17 Mar 2023 18:34:09 +0000 (UTC) Received: from h2850616.stratoserver.net (localhost [IPv6:::1]) by phobos.denx.de (Postfix) with ESMTP id 0689985947; Fri, 17 Mar 2023 19:34:06 +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="JNBHv06u"; dkim-atps=neutral Received: by phobos.denx.de (Postfix, from userid 109) id 6AD4C85947; Fri, 17 Mar 2023 19:34:05 +0100 (CET) Received: from mail-qt1-x830.google.com (mail-qt1-x830.google.com [IPv6:2607:f8b0:4864:20::830]) (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 C243A85936 for ; Fri, 17 Mar 2023 19:34:01 +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-qt1-x830.google.com with SMTP id x1so6622997qtr.7 for ; Fri, 17 Mar 2023 11:34:01 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=konsulko.com; s=google; t=1679078040; 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=S40bPqT426WReFiRf5J5GPao3GnGK4Vvh6A+7jAPL3I=; b=JNBHv06u8HiI+CpInSJ0XRox/IxhU01C1AZmDUJlKto7lJIJByffqW8EeVF8WDIPB7 Kjb4Ip+Nah+D1RIV1jku07fQOiE9AJNEgmOSZ4/C9TwvOiZHX4Liwn3TzaO8GQJ4nkcb ow//izkE++TCOzm3Dmb2xLXzYa0nvzpr2FG/g= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; t=1679078040; 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=S40bPqT426WReFiRf5J5GPao3GnGK4Vvh6A+7jAPL3I=; b=nj9+8258E9+AIenOo4XFaysMdXN1leP4qiAXiwzYWB3eNC3MN5LjnIU/Qs9DZpnWiJ VblyOgO4X4h9WkbAgZBMOXgl4S8oD3nCakPJ3pHLG7hlhXmiElsHVBTiskXaoL6JV4tx Nt9zBfpDyCkozh2F9XijagIeKupGq98zmUkYX3+/6m+MP2hLAe1eiSN/KkCiw9w7h0Ws v+c+kMRn6VgZAq+FIhd5OBMJHVKaS6pfyAr34xRI5vEHe+KfNFzdfFC3tvmTRqV/WB14 fRrePMuEo/9jaYkqQjMevHVPq10kcfX+44Aks1WhuT2t/DeanMX5KiB/8zbXPHKWVNjt ktyA== X-Gm-Message-State: AO0yUKXicYnIChfUdX/J7abONE62dblY3bKtYqfBwREYmY/qWbJZ+MGb obMXB2M8/S+GmHtHnZk7F5zj2w== X-Google-Smtp-Source: AK7set+L7vuyo1FUK3nI/7Drq1e8k5fv8zNpoVnpB6TFtfZ0NPwgHTznuU61/t8UW/PpIdBzcQDdgg== X-Received: by 2002:a05:622a:1c9:b0:3d5:500a:4809 with SMTP id t9-20020a05622a01c900b003d5500a4809mr14500193qtw.26.1679078040519; Fri, 17 Mar 2023 11:34:00 -0700 (PDT) Received: from bill-the-cat (2603-6081-7b00-6400-39a6-276d-283b-ce62.res6.spectrum.com. [2603:6081:7b00:6400:39a6:276d:283b:ce62]) by smtp.gmail.com with ESMTPSA id y139-20020a376491000000b00745bca3c8a0sm2165098qkb.43.2023.03.17.11.33.59 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 17 Mar 2023 11:34:00 -0700 (PDT) Date: Fri, 17 Mar 2023 14:33:58 -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: <20230317183358.GD54321@bill-the-cat> References: <20230302033930.2546548-1-sjg@chromium.org> <20230302033930.2546548-6-sjg@chromium.org> <20230317143409.GW54321@bill-the-cat> MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha512; protocol="application/pgp-signature"; boundary="EJ/66fBkKBOW0cGA" 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 --EJ/66fBkKBOW0cGA Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable On Fri, Mar 17, 2023 at 12:29:18PM -0600, Simon Glass wrote: > Hi Tom, >=20 > On Fri, 17 Mar 2023 at 08:34, Tom Rini wrote: > > > > On Thu, Mar 16, 2023 at 11:25:17PM -0600, Simon Glass wrote: > > > Hi Tom, > > > > > > 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 = common > > > > > 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 gene= rally require > > > > > + # the commands themselves to be enabled, but this is how so= me of 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 good > > > > > + selection of booting methods. Enable this to improve the = capability > > > > > + of U-Boot to boot various images. > > > > > > > > We want the more heavy-handed select rather than imply here, as thi= s 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. > > > > > > > > > > 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 > OK got it, I'll respin this series. This will make it impossible for > boards to override things like EXT4, To reiterate, "impossible for boards to override" is a feature. A very intentional feature. If you're selecting the "boot almost any OS/distro" option, you don't get to then override things like this. > But we could give BOOT_DEFAULTS a > name to allow it to be disabled. We can look at, in the future, some ways to make it possible / easy for things like using standard boot and not having hush, or other customizations for specific use cases. But this is the generic "work for anything" option and workflow we're in right now. --=20 Tom --EJ/66fBkKBOW0cGA Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- iQGzBAABCgAdFiEEGjx/cOCPqxcHgJu/FHw5/5Y0tywFAmQUspIACgkQFHw5/5Y0 tywjawv+ND9+74h/y/aGFk/D7WKUN6aePfvB1L05VQGs+L6Ghua2+x/qhVOrzjEc b906xKKbWh13qWWkBvMC+3htrCUrPIk/U3PTV6QXA9Huxzhz5Fq4VXy6/0B6mIqC RuXDWUzZLT1lmiEaHQ18gIY6cpVo8cnRmaHpQ/WN7wdqkvR1c/5SPwZ8nfdxVLtf Us+wDphj+6Na48iFMu38+5evKn3tWuYSUDCuPfNkQOm/xqHayzFObE3nDgqIdrmb B/xAQTSy7g2B4+7UKQbKWBOw7Pd6U9tbQnp19Ss1crb2mGK8uE4/37yBOTEJz0h/ Vm2Jc9KpPVoLadrgQ6z8MhWid4JN+AP6XVgmrKvAGEMRmUQeBh9cjkoipPgRka3b GTu30eWhCBW92LOLJI4bbD3BhgtgsuQI/V6lA9ocLslmTziQnnUarS5JAOFabacr XtexOOgdPDgFjlXe0ZExpALP3cMkq52xpDaa0+4h18PIU9gdLSpCe0GZE0D85qNF ysotBYHk =NfcR -----END PGP SIGNATURE----- --EJ/66fBkKBOW0cGA--