From: Mark Kettenis <mark.kettenis@xs4all.nl>
To: Simon Glass <sjg@chromium.org>
Cc: u-boot@lists.denx.de, trini@konsulko.com, xypron.glpk@gmx.de,
sjg@chromium.org
Subject: Re: [PATCH 17/19] Make DISTRO_DEFAULTS as deprecated
Date: Mon, 28 Aug 2023 16:41:08 +0200 [thread overview]
Message-ID: <87pm37qlff.fsf@bloch.sibelius.xs4all.nl> (raw)
In-Reply-To: <20230824195917.1687886-18-sjg@chromium.org> (message from Simon Glass on Thu, 24 Aug 2023 13:59:08 -0600)
> From: Simon Glass <sjg@chromium.org>
> Date: Thu, 24 Aug 2023 13:59:08 -0600
>
> Encourage people to move to distro boot. Add a short migration guide.
Doesn't this commit message say the exact opposite of what the patch does?
> Signed-off-by: Simon Glass <sjg@chromium.org>
> ---
>
> boot/Kconfig | 7 ++++++-
> doc/develop/bootstd.rst | 23 +++++++++++++++++++++++
> 2 files changed, 29 insertions(+), 1 deletion(-)
>
> diff --git a/boot/Kconfig b/boot/Kconfig
> index 02b33323d726..4742ee2027bd 100644
> --- a/boot/Kconfig
> +++ b/boot/Kconfig
> @@ -781,7 +781,7 @@ config SYS_BOOT_RAMDISK_HIGH
> endmenu # Boot images
>
> config DISTRO_DEFAULTS
> - bool "Select defaults suitable for booting general purpose Linux distributions"
> + bool "(deprecated) 'Defaults suitable for booting general purpose Linux distributions"
> select BOOT_DEFAULTS
> select AUTO_COMPLETE
> select CMDLINE_EDITING
> @@ -789,6 +789,11 @@ config DISTRO_DEFAULTS
> select HUSH_PARSER
> select SYS_LONGHELP
> help
> + Note: These scripts have been replaced by Standard Boot. Do not use
> + them on new boards. See 'Migrating from distro_boot' at
> + doc/develop/bootstd.rst
> +
> +
> Select this to enable various options and commands which are suitable
> for building u-boot for booting general purpose Linux distributions.
>
> diff --git a/doc/develop/bootstd.rst b/doc/develop/bootstd.rst
> index ec3136535783..8b2f0849a1c0 100644
> --- a/doc/develop/bootstd.rst
> +++ b/doc/develop/bootstd.rst
> @@ -458,6 +458,28 @@ ready File was loaded and is ready for use. In this state the bootflow is
> ======= =======================================================================
>
>
> +Migrating from distro_boot
> +--------------------------
> +
> +To migrate from distro_boot:
> +
> +#. Update your board header files to remove the BOOTENV and BOOT_TARGET_xxx
> + defines. Standard boot finds available boot devices automatically.
> +
> +#. Remove the "boot_targets" variable unless you need it. Standard boot uses a
> + default order from fastest to slowest, which generally matches the order used
> + by boards.
> +
> +#. Make sure that CONFIG_BOOTSTD_DEFAULTS is enabled by your board, so it can
> + boot common Linux distributions.
> +
> +An example patch is at migrate_patch_.
> +
> +If you are using custom boot scripts for your board, consider creating your
> +own bootmeth to hold the logic. There are various examples at
> +`boot/bootmeth_...`.
> +
> +
> Theory of operation
> -------------------
>
> @@ -768,3 +790,4 @@ Other ideas:
> .. _BootLoaderSpec: http://www.freedesktop.org/wiki/Specifications/BootLoaderSpec/
> .. _distro_boot: https://github.com/u-boot/u-boot/blob/master/boot/distro.c
> .. _bootflow_h: https://github.com/u-boot/u-boot/blob/master/include/bootflow.h
> +.. _migrate_patch: https://patchwork.ozlabs.org/project/uboot/patch/20230727215433.578830-2-sjg@chromium.org/
> --
> 2.42.0.rc1.204.g551eb34607-goog
>
>
next prev parent reply other threads:[~2023-08-28 14:41 UTC|newest]
Thread overview: 28+ messages / expand[flat|nested] mbox.gz Atom feed top
2023-08-24 19:58 [PATCH 00/19] Kconfig: Tidy up some options Simon Glass
2023-08-24 19:58 ` [PATCH 01/19] lib: rational: Move the Kconfigs into the correct place Simon Glass
2023-08-24 19:58 ` [PATCH 02/19] Kconfig: Move API into general setup Simon Glass
2023-08-24 19:58 ` [PATCH 03/19] video: Hide the BMP options Simon Glass
2023-08-24 19:58 ` [PATCH 04/19] video: Move BMP options and code to video directory Simon Glass
2023-08-31 6:00 ` Devarsh Thakkar
2023-08-24 19:58 ` [PATCH 05/19] net: Move SYS_RX_ETH_BUFFER into the network menu Simon Glass
2023-08-24 19:58 ` [PATCH 06/19] FMU: Avoid showing an unselectable menu option Simon Glass
2023-08-25 12:00 ` Sughosh Ganu
2023-08-25 14:55 ` Tom Rini
2023-08-24 19:58 ` [PATCH 07/19] test: Move POST under a renamed Testing section Simon Glass
2023-08-24 19:58 ` [PATCH 08/19] boot: Move fdt_support to boot/ Simon Glass
2023-08-31 6:02 ` Devarsh Thakkar
2023-09-04 16:48 ` Simon Glass
2023-08-24 19:59 ` [PATCH 09/19] Move fdt_simplefb " Simon Glass
2023-08-31 6:12 ` Devarsh Thakkar
2023-08-24 19:59 ` [PATCH 10/19] boot: Move some other fdt-fixup options to the same menu Simon Glass
2023-08-24 19:59 ` [PATCH 11/19] boot: Rename Android-boot text Simon Glass
2023-08-24 19:59 ` [PATCH 12/19] Kconfig: Create a menu for FIT Simon Glass
2023-08-24 19:59 ` [PATCH 13/19] Kconfig: Move SPL_FIT under FIT Simon Glass
2023-08-24 19:59 ` [PATCH 14/19] spl: Tidy up load address in spl_ram Simon Glass
2023-08-24 19:59 ` [PATCH 15/19] boot: Make standard boot a menu Simon Glass
2023-08-24 19:59 ` [PATCH 16/19] Kconfig: Move TEXT_BASE et al under general setup Simon Glass
2023-08-24 19:59 ` [PATCH 17/19] Make DISTRO_DEFAULTS as deprecated Simon Glass
2023-08-28 14:41 ` Mark Kettenis [this message]
2023-08-28 14:57 ` Tom Rini
2023-08-24 19:59 ` [PATCH 18/19] boot: Join FDT_FIXUP_PARTITIONS with related options Simon Glass
2023-08-24 19:59 ` [PATCH 19/19] boot: Join ARCH_FIXUP_FDT_MEMORY " Simon Glass
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=87pm37qlff.fsf@bloch.sibelius.xs4all.nl \
--to=mark.kettenis@xs4all.nl \
--cc=sjg@chromium.org \
--cc=trini@konsulko.com \
--cc=u-boot@lists.denx.de \
--cc=xypron.glpk@gmx.de \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.