• R
    disk/part: introduce get_device_and_partition · 99d2c205
    Rob Herring 提交于
    All block device related commands (scsiboot, fatload, ext2ls, etc.) have
    simliar duplicated device and partition parsing and selection code. This
    adds a common function to replace various implementations.
    
    The new function has an enhancement over current versions. If no device
    or partition is specified on the command line, the bootdevice env variable
    will be used (scsiboot does this).
    Signed-off-by: NRob Herring <rob.herring@calxeda.com>
    99d2c205
part.h 6.2 KB