From: Rob Herring <rob.herr...@calxeda.com> The primary goal of this series is to enable auto selection of a partition using the 1st bootable partition as the default partition for disk based boot commands. If a bootable partition is not found and partition is not specified, then the first valid partition is used.
Every command that takes a "<dev>[:<part>]" option duplicates the same parsing code, so this series consolidates the parsing code to a single function and converts all block based filesystem code over to use th This is based on Wolfgang's ext4 branch. Rob Rob Herring (9): combine block device load commands into common function disk/part: check bootable flag for DOS partitions disk/part: introduce get_device_and_partition ext4: remove init_fs/deinit_fs cmd_extX: use common get_device_and_partition function cmd_fat: use common get_device_and_partition function cmd_disk: use common get_device_and_partition function cmd_zfs: use common get_device_and_partition function cmd_reiser: use common get_device_and_partition function common/Makefile | 1 + common/cmd_disk.c | 122 ++++++++++++++++++++++++++++++++++++++ common/cmd_ext4.c | 106 +++------------------------------ common/cmd_ext_common.c | 108 ++++++++------------------------- common/cmd_fat.c | 100 +++++++++++-------------------- common/cmd_ide.c | 151 +---------------------------------------------- common/cmd_reiser.c | 81 ++++++------------------- common/cmd_scsi.c | 123 +------------------------------------- common/cmd_usb.c | 138 +------------------------------------------ common/cmd_zfs.c | 88 ++++++--------------------- disk/part.c | 90 +++++++++++++++++++++++++++- disk/part_dos.c | 11 +++- fs/ext4/dev.c | 32 ++++------ fs/ext4/ext4_common.h | 1 - fs/ext4/ext4fs.c | 37 +----------- fs/reiserfs/dev.c | 29 ++++----- fs/zfs/dev.c | 35 ++++------- include/command.h | 4 ++ include/ext4fs.h | 5 +- include/ext_common.h | 2 + include/part.h | 14 ++++- include/reiserfs.h | 2 +- include/zfs_common.h | 7 +-- 23 files changed, 380 insertions(+), 907 deletions(-) create mode 100644 common/cmd_disk.c -- 1.7.9.5 _______________________________________________ U-Boot mailing list U-Boot@lists.denx.de http://lists.denx.de/mailman/listinfo/u-boot