From 809fa7b5c2df4bf926753a9e35f4330954ac1426 Mon Sep 17 00:00:00 2001 From: T Michael Turney Date: Thu, 12 Apr 2018 13:36:40 -0700 Subject: cbfs: Add cbfs_boot_load_file() Generalize cbfs_boot_load_struct() by passing in CBFS type Change-Id: I6e5f845cb4ce5b00f01a39619919f85e39028f19 Signed-off-by: T Michael Turney Reviewed-on: https://review.coreboot.org/25648 Tested-by: build bot (Jenkins) Reviewed-by: Aaron Durbin Reviewed-by: Julius Werner --- src/lib/cbfs.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src/lib') diff --git a/src/lib/cbfs.c b/src/lib/cbfs.c index 596abc5ad2..9e81bd3a3a 100644 --- a/src/lib/cbfs.c +++ b/src/lib/cbfs.c @@ -182,12 +182,12 @@ void *cbfs_boot_load_stage_by_name(const char *name) return prog_entry(&stage); } -size_t cbfs_boot_load_struct(const char *name, void *buf, size_t buf_size) +size_t cbfs_boot_load_file(const char *name, void *buf, size_t buf_size, + uint32_t type) { struct cbfsf fh; uint32_t compression_algo; size_t decompressed_size; - uint32_t type = CBFS_TYPE_STRUCT; if (cbfs_boot_locate(&fh, name, &type) < 0) return 0; -- cgit v1.2.3