summaryrefslogtreecommitdiffstats
path: root/util/cbfstool/fit.h
diff options
context:
space:
mode:
authorArthur Heymans <arthur@aheymans.xyz>2021-02-17 17:34:44 +0100
committerPatrick Georgi <pgeorgi@google.com>2021-03-19 11:22:55 +0000
commite9e4e54e27d7d6ff987f694d183534a7f1713c04 (patch)
tree0328245e3f122e9982ce5e6020f671e121692f3f /util/cbfstool/fit.h
parent6ca3375c08f1655a8d01e6f005a958506f22192d (diff)
downloadcoreboot-e9e4e54e27d7d6ff987f694d183534a7f1713c04.tar.gz
coreboot-e9e4e54e27d7d6ff987f694d183534a7f1713c04.tar.bz2
coreboot-e9e4e54e27d7d6ff987f694d183534a7f1713c04.zip
util/ifittool: Add an option to set the FIT pointer a CBFS file
The purpose of this is to eventually move the FIT table out of the bootblock, generate it separately as a cbfs file and then have the FIT pointer point to that cbfs file. TESTED: extracted a FIT table using dd, added it as a cbfs file and see that the FIT pointer correctly points to it. Also test that trying to add a non valid FIT cbfs file results in an error. Change-Id: I6e38b7df31e6b30f75b0ae57a5332f386e00f16b Signed-off-by: Arthur Heymans <arthur@aheymans.xyz> Reviewed-on: https://review.coreboot.org/c/coreboot/+/50925 Tested-by: build bot (Jenkins) <no-reply@coreboot.org> Reviewed-by: Patrick Rudolph <patrick.rudolph@9elements.com> Reviewed-by: Christian Walter <christian.walter@9elements.com>
Diffstat (limited to 'util/cbfstool/fit.h')
-rw-r--r--util/cbfstool/fit.h3
1 files changed, 2 insertions, 1 deletions
diff --git a/util/cbfstool/fit.h b/util/cbfstool/fit.h
index d900cf51d40b..a0c956cac571 100644
--- a/util/cbfstool/fit.h
+++ b/util/cbfstool/fit.h
@@ -57,5 +57,6 @@ int fit_add_microcode_file(struct fit_table *fit,
const char *blob_name,
fit_offset_converter_t offset_helper,
const size_t max_fit_entries);
-
+int set_fit_pointer(struct buffer *bootblock, const uint32_t offset,
+ fit_offset_converter_t offset_fn, uint32_t topswap_size);
#endif