Patrick Georgi (pgeorgi@google.com) just uploaded a new patch set to gerrit, which you can find at http://review.coreboot.org/10101
-gerrit
commit 78d2021f3c1789c2a73de3993407c632d01c9b00 Author: Aaron Durbin adurbin@chromium.org Date: Fri May 1 16:48:54 2015 -0500
cbfs: make cbfs_load_prog_stage_by_offset() public
That function will be used by the vboot loader.
Change-Id: I204c6cd5eede3645750b50fe3ed30d77c22dbf43 Signed-off-by: Aaron Durbin adurbin@chromium.org Signed-off-by: Patrick Georgi pgeorgi@chromium.org --- src/include/cbfs.h | 2 ++ src/lib/cbfs.c | 2 +- 2 files changed, 3 insertions(+), 1 deletion(-)
diff --git a/src/include/cbfs.h b/src/include/cbfs.h index 05ce2f7..1d7917c 100644 --- a/src/include/cbfs.h +++ b/src/include/cbfs.h @@ -60,6 +60,8 @@ void *cbfs_load_stage_by_offset(struct cbfs_media *media, ssize_t offset); /* Load a stage from a prog structure. Returns < 0 on error. 0 on success. */ struct prog; int cbfs_load_prog_stage(struct cbfs_media *media, struct prog *prog); +int cbfs_load_prog_stage_by_offset(struct cbfs_media *media, + struct prog *prog, ssize_t offset);
/* Simple buffer for streaming media. */ struct cbfs_simple_buffer { diff --git a/src/lib/cbfs.c b/src/lib/cbfs.c index 88a292f..8239f07 100644 --- a/src/lib/cbfs.c +++ b/src/lib/cbfs.c @@ -74,7 +74,7 @@ void *cbfs_load_optionrom(struct cbfs_media *media, uint16_t vendor, return dest; }
-static int cbfs_load_prog_stage_by_offset(struct cbfs_media *media, +int cbfs_load_prog_stage_by_offset(struct cbfs_media *media, struct prog *prog, ssize_t offset) { struct cbfs_stage stage;