Dennis Gilmore 2a43201a13 config: introduce a generic $bootcmd
This generic $bootcmd, and associated support macros, automatically
searches a defined set of storage devices (or network protocols) for an
extlinux configuration file or U-Boot boot script in various standardized
locations. Distros that install such a boot config file/script in those
standard locations will get easy-to-set-up booting on HW that enables
this generic $bootcmd.

Boards can define the set of devices from which boot is attempted, and
the order in which they are attempted. Users may later customize this
set/order by edting $boot_targets.

Users may interrupt the boot process and boot from a specific device
simply by executing e.g.:

$ run bootcmd_mmc1
or:
$ run bootcmd_pxe

This patch was originally written by Dennis Gilmore based on Tegra and
rpi_b boot scripts. I have made the following modifications since then:

* Boards must define the BOOT_TARGET_DEVICES macro in order to specify
  the set of devices (and order) from which to attempt boot. If needed,
  we can define a default directly in config_distro_bootcmd.h.

* Removed $env_import and related variables; nothing used them, and I
  think it's better for boards to pre-load an environment customization
  file using CONFIG_PREBOOT if they need.

* Renamed a bunch of variables to suit my whims:-)

Signed-off-by: Dennis Gilmore <dennis@ausil.us>
Signed-off-by: Stephen Warren <swarren@nvidia.com>
Reviewed-by: Marek Vasut <marex@denx.de>
Acked-by: Simon Glass <sjg@chromium.org>
2014-08-09 11:17:04 -04:00
..
2013-04-01 16:33:52 -04:00
2014-08-09 11:17:04 -04:00
2013-04-01 16:33:52 -04:00
2014-08-09 11:17:04 -04:00
2014-07-30 08:48:03 -04:00
2014-07-22 07:44:27 -04:00
2014-07-18 19:42:16 +01:00
2014-07-18 19:42:10 +01:00
2014-05-29 17:45:31 -04:00
2014-02-04 16:32:20 +01:00
2014-07-07 19:43:02 -04:00
2014-02-21 08:42:47 -05:00
2014-03-17 20:05:48 -06:00
2014-08-09 11:16:59 -04:00
2014-05-27 10:21:32 -04:00
2014-06-21 10:06:58 -06:00
2014-05-16 14:54:26 +09:00
2014-08-09 11:16:57 -04:00
2014-08-09 11:16:57 -04:00
2014-08-09 11:16:57 -04:00
2014-07-07 19:47:18 -04:00
2014-06-19 11:18:55 -04:00
2014-02-20 06:48:23 +01:00
2013-09-24 09:10:33 -04:00
2014-07-07 19:47:19 -04:00
2014-05-28 10:58:19 +09:00
2014-06-20 11:54:29 -06:00
2014-07-07 19:43:02 -04:00
2014-08-09 11:17:04 -04:00
2013-04-01 16:33:52 -04:00
2013-09-20 10:30:54 -04:00
2014-07-18 17:53:24 -04:00
2014-05-30 14:03:24 -04:00
2013-11-09 17:21:01 +01:00
2014-08-01 18:44:56 +03:00
2014-08-09 11:17:04 -04:00
2014-03-17 20:05:49 -06:00
2013-11-09 17:21:01 +01:00
2014-07-07 19:43:02 -04:00
2014-08-06 09:12:30 -04:00
2014-02-19 10:47:43 -05:00
2014-06-11 16:27:06 -04:00
2013-12-04 08:11:28 -05:00