Add block-size to partition packages.

Yaboot uses "block-size" with disk-label packages.

This patch add block-size to all partitions packages.

Signed-off-by: Laurent Vivier <Laurent@lvivier.info>


git-svn-id: svn://coreboot.org/openbios/openbios-devel@291 f158a5a8-5612-0410-a976-696ce0be7e32
This commit is contained in:
Laurent Vivier
2008-12-18 20:44:20 +00:00
committed by Blue Swirl
parent 4fdc0e0fff
commit 5766c8fb3a
4 changed files with 40 additions and 1 deletions

View File

@@ -172,6 +172,12 @@ sunparts_get_info( sunparts_info_t *di )
PUSH( di->size_hi );
}
static void
sunparts_block_size( __attribute__((unused))sunparts_info_t *di )
{
PUSH(512);
}
static void
sunparts_initialize( __attribute__((unused))sunparts_info_t *di )
{
@@ -182,6 +188,7 @@ NODE_METHODS( sunparts ) = {
{ "probe", sunparts_probe },
{ "open", sunparts_open },
{ "get-info", sunparts_get_info },
{ "block-size", sunparts_block_size },
{ NULL, sunparts_initialize },
};