commit | 58254e08d26712962568dbd1ccf693d38e18d296 | [log] [tgz] |
---|---|---|
author | Simon Glass <sjg@chromium.org> | Mon Jul 05 16:32:57 2021 -0600 |
committer | Simon Glass <sjg@chromium.org> | Wed Jul 21 10:27:35 2021 -0600 |
tree | 9550c6a16e8343c80a30a904ef60c48d3e6a6cab | |
parent | 3d7021846fb3225eefff4945bd8f2c03ebc00758 [diff] |
spl: Provide more information on boot failure If SPL fails to boot, try to provide an error code to indicate what is wrong. For example, if a uclass is missing, this can return -EPFNOSUPPORT (-96) which provides useful information. Add a helper for accessing the image-loader name so we can drop the use of #ifdefs in this code. Put this feature behind a CONFIG_SHOW_ERRORS option to avoid increasing the code size. Signed-off-by: Simon Glass <sjg@chromium.org>