cbfs: Rename TYPE_FIT to TYPE_FIT_PAYLOAD
There are too many "FIT" in firmware land. In order to reduce possible confusion of CBFS_TYPE_FIT with the Intel Firmware Interface Table, this patch renames it to CBFS_TYPE_FIT_PAYLOAD (including the cbfstool argument, so calling scripts will now need to replace `-t fit` with `-t fit_payload`). Signed-off-by: Julius Werner <jwerner@chromium.org> Change-Id: I826cefce54ade06c6612c8a7bb53e02092e7b11a Reviewed-on: https://review.coreboot.org/c/coreboot/+/64735 Tested-by: build bot (Jenkins) <no-reply@coreboot.org> Reviewed-by: Yu-Ping Wu <yupingso@google.com>
This commit is contained in:
@@ -33,7 +33,7 @@ static struct typedesc_t filetypes[] unused = {
|
||||
{CBFS_TYPE_CBFSHEADER, "cbfs header"},
|
||||
{CBFS_TYPE_STAGE, "stage"},
|
||||
{CBFS_TYPE_SELF, "simple elf"},
|
||||
{CBFS_TYPE_FIT, "fit"},
|
||||
{CBFS_TYPE_FIT_PAYLOAD, "fit_payload"},
|
||||
{CBFS_TYPE_OPTIONROM, "optionrom"},
|
||||
{CBFS_TYPE_BOOTSPLASH, "bootsplash"},
|
||||
{CBFS_TYPE_RAW, "raw"},
|
||||
|
@@ -1196,7 +1196,7 @@ static int cbfstool_convert_mkpayload(struct buffer *buffer,
|
||||
if (ret != 0) {
|
||||
ret = parse_fit_to_payload(buffer, &output, param.compression);
|
||||
if (ret == 0)
|
||||
header->type = htobe32(CBFS_TYPE_FIT);
|
||||
header->type = htobe32(CBFS_TYPE_FIT_PAYLOAD);
|
||||
}
|
||||
|
||||
/* If it's not an FIT, see if it's a UEFI FV */
|
||||
|
Reference in New Issue
Block a user