| 1663 | } |
| 1664 | |
| 1665 | static 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 | |
| 1686 | static int cbfs_write(void) |
| 1687 | { |
nothing calls this directly
no test coverage detected