diff options
author | Stefan Reinauer <reinauer@chromium.org> | 2013-01-18 15:53:22 -0800 |
---|---|---|
committer | Ronald G. Minnich <rminnich@gmail.com> | 2013-01-19 02:19:14 +0100 |
commit | db5b893569f0b0c17e8faf1905f7da2450984432 (patch) | |
tree | cd947959a5c2d3f5b3c55f35f0389885a55f99b1 /util/cbfstool/cbfs.h | |
parent | 211a5d56db2ecf580b722fab132d908a6ba84dde (diff) | |
download | coreboot-db5b893569f0b0c17e8faf1905f7da2450984432.tar.xz |
Add more information to the cbfstool print
Show what's in a stage or payload. This will let people better understand
what's in a stage or payload.
Change-Id: If6d9a877b4aedd5cece76774e41f0daadb20c008
Signed-off-by: Ronald G. Minnich <rminnich@gmail.com>
Reviewed-on: http://review.coreboot.org/2176
Tested-by: build bot (Jenkins)
Diffstat (limited to 'util/cbfstool/cbfs.h')
-rw-r--r-- | util/cbfstool/cbfs.h | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/util/cbfstool/cbfs.h b/util/cbfstool/cbfs.h index 617eeeefd4..3dbeefd38d 100644 --- a/util/cbfstool/cbfs.h +++ b/util/cbfstool/cbfs.h @@ -106,6 +106,8 @@ struct cbfs_payload { #define CBFS_COMPONENT_NULL 0xFFFFFFFF int cbfs_file_header(unsigned long physaddr); +#define CBFS_SUBHEADER(_p) ( (void *) ((((uint8_t *) (_p)) + ntohl((_p)->offset))) ) + struct cbfs_file *cbfs_create_empty_file(uint32_t physaddr, uint32_t size); #endif |