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

Function cbfs_remove_entry

util/cbfstool/cbfs_image.c:1318–1331  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1316}
1317
1318int cbfs_remove_entry(struct cbfs_image *image, const char *name)
1319{
1320 struct cbfs_file *entry;
1321 entry = cbfs_get_entry(image, name);
1322 if (!entry) {
1323 ERROR("CBFS file %s not found.\n", name);
1324 return -1;
1325 }
1326 DEBUG("%s: Removed %s @ 0x%x\n", __func__,
1327 entry->filename, cbfs_get_entry_addr(image, entry));
1328 entry->type = htobe32(CBFS_TYPE_DELETED);
1329 cbfs_legacy_walk(image, cbfs_merge_empty_entry, NULL);
1330 return 0;
1331}
1332
1333int cbfs_print_header_info(struct cbfs_image *image)
1334{

Callers 2

cbfs_removeFunction · 0.85

Calls 3

cbfs_get_entryFunction · 0.85
cbfs_get_entry_addrFunction · 0.85
cbfs_legacy_walkFunction · 0.85

Tested by

no test coverage detected