Skip to content
Snippets Groups Projects
  • Simon Glass's avatar
    bd90b092
    bootstd: Add the concept of a bootdev hunter · bd90b092
    Simon Glass authored and Tom Rini's avatar Tom Rini committed
    
    Some bootdevs must be enumerated before they appear. For example, USB
    bootdevs are not visible until USB is enumerated.
    
    With standard boot this needs to happen automatically, since we only
    want to enumerate a bus if it is needed.
    
    Add a way to define bootdev 'hunters' which can be used to hunt for
    bootdevs of a given type. Track which ones have been used and add a
    command to list them.
    
    Include a clang work-around which seems to be needed.
    
    Signed-off-by: Simon Glass's avatarSimon Glass <sjg@chromium.org>
    bd90b092
    History
    bootstd: Add the concept of a bootdev hunter
    Simon Glass authored and Tom Rini's avatar Tom Rini committed
    
    Some bootdevs must be enumerated before they appear. For example, USB
    bootdevs are not visible until USB is enumerated.
    
    With standard boot this needs to happen automatically, since we only
    want to enumerate a bus if it is needed.
    
    Add a way to define bootdev 'hunters' which can be used to hunt for
    bootdevs of a given type. Track which ones have been used and add a
    command to list them.
    
    Include a clang work-around which seems to be needed.
    
    Signed-off-by: Simon Glass's avatarSimon Glass <sjg@chromium.org>