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

Function cbfs_extract

util/cbfstool/cbfstool.c:1665–1684  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1663}
1664
1665static int cbfs_extract(void)
1666{
1667 if (!param.filename) {
1668 ERROR("You need to specify -f/--filename.\n");
1669 return 1;
1670 }
1671
1672 if (!param.name) {
1673 ERROR("You need to specify -n/--name.\n");
1674 return 1;
1675 }
1676
1677 struct cbfs_image image;
1678 if (cbfs_image_from_buffer(&image, param.image_region,
1679 param.headeroffset))
1680 return 1;
1681
1682 return cbfs_export_entry(&image, param.name, param.filename,
1683 param.arch, !param.unprocessed);
1684}
1685
1686static int cbfs_write(void)
1687{

Callers

nothing calls this directly

Calls 2

cbfs_image_from_bufferFunction · 0.85
cbfs_export_entryFunction · 0.85

Tested by

no test coverage detected