MCPcopy Create free account
hub / github.com/coreboot/coreboot / cbfs_read

Function cbfs_read

util/cbfstool/cbfstool.c:1764–1776  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1762}
1763
1764static int cbfs_read(void)
1765{
1766 if (!param.filename) {
1767 ERROR("You need to specify a valid output -f/--file.\n");
1768 return 1;
1769 }
1770 if (!partitioned_file_is_partitioned(param.image_file)) {
1771 ERROR("This operation isn't valid on legacy images having CBFS master headers\n");
1772 return 1;
1773 }
1774
1775 return buffer_write_file(param.image_region, param.filename);
1776}
1777
1778static int cbfs_copy(void)
1779{

Callers

nothing calls this directly

Calls 2

buffer_write_fileFunction · 0.85

Tested by

no test coverage detected