cbfstool: update warning on cbfstool extract
We have tons of file types now that can be safely extracted. It's pretty much only stages and payloads that aren't. Change-Id: Ibf58a2c721f863d654537850c6f93d68a8a5bbeb Signed-off-by: Patrick Georgi <patrick@georgi-clan.de> Reviewed-on: http://review.coreboot.org/11360 Tested-by: build bot (Jenkins) Reviewed-by: Aaron Durbin <adurbin@chromium.org>
This commit is contained in:
parent
83c2d12a3d
commit
011b0b3af8
|
@ -645,8 +645,12 @@ int cbfs_export_entry(struct cbfs_image *image, const char *entry_name,
|
|||
entry_name, cbfs_get_entry_addr(image, entry),
|
||||
get_cbfs_entry_type_name(ntohl(entry->type)), ntohl(entry->len));
|
||||
|
||||
if (ntohl(entry->type) != CBFS_COMPONENT_RAW) {
|
||||
WARN("Only 'raw' files are safe to extract.\n");
|
||||
if (ntohl(entry->type) == CBFS_COMPONENT_STAGE) {
|
||||
WARN("Stages are extracted in SELF format.\n");
|
||||
}
|
||||
|
||||
if (ntohl(entry->type) == CBFS_COMPONENT_PAYLOAD) {
|
||||
WARN("Payloads are extracted in SELF format.\n");
|
||||
}
|
||||
|
||||
buffer.data = CBFS_SUBHEADER(entry);
|
||||
|
|
Loading…
Reference in New Issue