Skip to content
  • Simon Glass's avatar
    spl: Provide more information on boot failure · 7d84fbb5
    Simon Glass authored
    
    
    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's avatarSimon Glass <sjg@chromium.org>
    7d84fbb5