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 7AED5C678D4 for ; Thu, 2 Mar 2023 15:15:01 +0000 (UTC) Received: from h2850616.stratoserver.net (localhost [IPv6:::1]) by phobos.denx.de (Postfix) with ESMTP id 3BC3A85C5F; Thu, 2 Mar 2023 16:14:59 +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="ep7okV4+"; dkim-atps=neutral Received: by phobos.denx.de (Postfix, from userid 109) id 2EDD285C76; Thu, 2 Mar 2023 16:14:58 +0100 (CET) Received: from mail-qv1-xf35.google.com (mail-qv1-xf35.google.com [IPv6:2607:f8b0:4864:20::f35]) (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 C616885C42 for ; Thu, 2 Mar 2023 16:14:55 +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-xf35.google.com with SMTP id y3so11852771qvn.4 for ; Thu, 02 Mar 2023 07:14:55 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=konsulko.com; s=google; t=1677770094; 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=gR2K4rx5KYAgAI/9PBrA+lOkHF/d0vDYlPicK4o9BDk=; b=ep7okV4+dyKiJM4qTtxxgrWj6H5441l9+0ylFD4Mae9CEtiK4Fohc0Vfhe+ngNGxaQ lmVdHHvlzh121xxHGvvmwYgaRdGWHHcKMHGQY1W1D3hfYm5salc1OR+zAW/WMzc+JuwU nkXYm75b46nZntrCXarm85GQU38CbSMUxi6LA= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; t=1677770094; 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=gR2K4rx5KYAgAI/9PBrA+lOkHF/d0vDYlPicK4o9BDk=; b=WDvSKEiqIChHFhQQfTl9C9crCJWZH+970eyODMRTLRlI8QFAQ3fyBMr0CoM2+y1IUn TyCCw/wnu+93d2PI3xdvYAcRow9ccTnOAK+tMdc6Zl5SQeq/07ZJ5AWtlZTdnedcrcgQ iZJviAu5TkRYFE4bmt5IJxJvWKuETG/j64YQfkCT+IULLmZsu/jwybnWpCdkB6VEwbBu 8MeII6ecetu7zoQ/FXW9jjFRj9Y1aTjSXuD6lfInOuXyJJsLKiZgyUoIS9MAEHiE1432 4Ys72dMg+aIen1Ati8h2npJQstDNYkHJlsRTA3qV6mQMogW+1jKsQPN6Ime4YW1JeFHA fhlw== X-Gm-Message-State: AO0yUKWGHtjMjGNwou9rgsaY//doy05Zo1GAquS7hfY3xBQKowKl+prF y1zrcJC0hXrKpWcmIzcPti8mnQ== X-Google-Smtp-Source: AK7set92t95hJBvWWfTC7tBaAJu2EE/CGrMmCcxPvolvicTwDWvWtHLolIWD9ykD53eewuMsL30KAw== X-Received: by 2002:a05:6214:2a4a:b0:56e:b91f:aec4 with SMTP id jf10-20020a0562142a4a00b0056eb91faec4mr16916910qvb.11.1677770094588; Thu, 02 Mar 2023 07:14:54 -0800 (PST) Received: from bill-the-cat (2603-6081-7b00-6400-0000-0000-0000-036b.res6.spectrum.com. [2603:6081:7b00:6400::36b]) by smtp.gmail.com with ESMTPSA id x23-20020a05620a01f700b0071a291f0a4asm11066758qkn.27.2023.03.02.07.14.53 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 02 Mar 2023 07:14:54 -0800 (PST) Date: Thu, 2 Mar 2023 10:14:52 -0500 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: 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="FbO02tmafE9JSMYH" Content-Disposition: inline In-Reply-To: <20230302033930.2546548-6-sjg@chromium.org> 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.6 at phobos.denx.de X-Virus-Status: Clean --FbO02tmafE9JSMYH Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable 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. >=20 > Resync defconfigs since this makes a lot of changes. >=20 > 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. > =20 > +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 generally require > + # the commands themselves to be enabled, but this is how some 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 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 Tom --FbO02tmafE9JSMYH Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- iQGzBAABCgAdFiEEGjx/cOCPqxcHgJu/FHw5/5Y0tywFAmQAvWgACgkQFHw5/5Y0 tywS+Qv/XHYcdLy07Cyi1T/Od7u9VtMKAnHaaafbNqf3/O1kjddie7/HQKUf50ap NLQTsmBFgxYT24t5CWj97ffbdct+ThvExgxpGMz4G5fJjU3F4iNisFTmVnYMScqF fThZa2bG+GhKuNLIi0FWlNxk1mNy7JEVzcAvljnjzFC5ZFymAypLu0yL6c9oKKHb CIS8YuAQHEo37aK3X+gGpTuwk9a3SYRsijbHBrzlKUW6Ta+V8n7QT60bl0Mh1A+M IO6UAQDz9YmknooDVBR3JaD1h/d/ihRDbXKT6zv10eOFPluvSpJ5RXLFsHyc8rDW 2NDUbnPrkVookp1E5Kky1rAqHzT3qQ9TeJYbnsftHaqBqgWYlUUZJPQxTEkwRyOD 6Bytp8cbQVuSXwumqYRFl9Clxuy0fkWAvUuWTZj2H5Xv40rvzmIiuaOQxMRN07pa vS/yckUlvwm3YwmXqswnq5tQYkhmGi9hKqX7wYr0KuWQFdnoXpvIdTwN00x6gcnl iNnLN8lT =tJSV -----END PGP SIGNATURE----- --FbO02tmafE9JSMYH--