summaryrefslogtreecommitdiff
path: root/util
diff options
context:
space:
mode:
authorPatrick Georgi <pgeorgi@chromium.org>2015-09-09 20:11:26 +0200
committerPatrick Georgi <pgeorgi@google.com>2015-09-19 12:07:10 +0000
commit239c74231b7758a2eea99ccb327c4f8f1482503b (patch)
treee31c1baf3a9f03cab2c9166add2993fb55d7cb6c /util
parenteb33b3f80e2fac8f92035a7960cf460981487b2d (diff)
cbfstool: introduce new file types
Let's move x86 style bootblocks (and later the others) and the master header into the CBFS structure. Prepare for this by adding file types. Change-Id: I1b4149c7f3b8564ee358a2c18ba91e6a7a6797da Signed-off-by: Patrick Georgi <pgeorgi@chromium.org> Reviewed-on: http://review.coreboot.org/11627 Tested-by: build bot (Jenkins) Reviewed-by: Aaron Durbin <adurbin@chromium.org> Reviewed-by: Paul Menzel <paulepanter@users.sourceforge.net>
Diffstat (limited to 'util')
-rw-r--r--util/cbfstool/cbfs.h4
1 files changed, 4 insertions, 0 deletions
diff --git a/util/cbfstool/cbfs.h b/util/cbfstool/cbfs.h
index 70f806bf50..579afa60a0 100644
--- a/util/cbfstool/cbfs.h
+++ b/util/cbfstool/cbfs.h
@@ -148,6 +148,8 @@ struct cbfs_payload {
Users are welcome to use any other value for their
components */
+#define CBFS_COMPONENT_BOOTBLOCK 0x01
+#define CBFS_COMPONENT_CBFSHEADER 0x02
#define CBFS_COMPONENT_STAGE 0x10
#define CBFS_COMPONENT_PAYLOAD 0x20
#define CBFS_COMPONENT_OPTIONROM 0x30
@@ -181,6 +183,8 @@ struct typedesc_t {
};
static struct typedesc_t filetypes[] unused = {
+ {CBFS_COMPONENT_BOOTBLOCK, "bootblock"},
+ {CBFS_COMPONENT_CBFSHEADER, "cbfs header"},
{CBFS_COMPONENT_STAGE, "stage"},
{CBFS_COMPONENT_PAYLOAD, "payload"},
{CBFS_COMPONENT_OPTIONROM, "optionrom"},