cbfstool: pretty print cmos layout files
While at it, also make the array static - no need to export this symbol. Change-Id: I7fdcda2b80150b6f32b5bc3e0957998a4fd43fce Signed-off-by: Mathias Krause <minipli@googlemail.com> Reviewed-on: http://review.coreboot.org/892 Reviewed-by: Patrick Georgi <patrick@georgi-clan.de> Tested-by: build bot (Jenkins)
This commit is contained in:
parent
3aff1a3208
commit
941158fb70
@ -133,7 +133,7 @@ int iself(unsigned char *input)
|
|||||||
return !memcmp(ehdr->e_ident, ELFMAG, 4);
|
return !memcmp(ehdr->e_ident, ELFMAG, 4);
|
||||||
}
|
}
|
||||||
|
|
||||||
struct filetypes_t {
|
static struct filetypes_t {
|
||||||
uint32_t type;
|
uint32_t type;
|
||||||
const char *name;
|
const char *name;
|
||||||
} filetypes[] = {
|
} filetypes[] = {
|
||||||
@ -146,6 +146,7 @@ struct filetypes_t {
|
|||||||
{CBFS_COMPONENT_MBI, "mbi"},
|
{CBFS_COMPONENT_MBI, "mbi"},
|
||||||
{CBFS_COMPONENT_MICROCODE, "microcode"},
|
{CBFS_COMPONENT_MICROCODE, "microcode"},
|
||||||
{CBFS_COMPONENT_CMOS_DEFAULT, "cmos default"},
|
{CBFS_COMPONENT_CMOS_DEFAULT, "cmos default"},
|
||||||
|
{CBFS_COMPONENT_CMOS_LAYOUT, "cmos layout"},
|
||||||
{CBFS_COMPONENT_DELETED, "deleted"},
|
{CBFS_COMPONENT_DELETED, "deleted"},
|
||||||
{CBFS_COMPONENT_NULL, "null"}
|
{CBFS_COMPONENT_NULL, "null"}
|
||||||
};
|
};
|
||||||
|
Loading…
x
Reference in New Issue
Block a user