mirror of
https://xff.cz/git/u-boot/
synced 2025-09-30 23:11:32 +02:00
dm: core: Add CBFS support to flashmap
Allow referencing a CBFS file in the flashmap, so that it is possible to boot from coreboot, where files are not available from binman. Signed-off-by: Simon Glass <sjg@chromium.org>
This commit is contained in:
@@ -11,7 +11,11 @@
|
|||||||
|
|
||||||
enum fmap_compress_t {
|
enum fmap_compress_t {
|
||||||
FMAP_COMPRESS_NONE,
|
FMAP_COMPRESS_NONE,
|
||||||
|
FMAP_COMPRESS_LZMA,
|
||||||
FMAP_COMPRESS_LZ4,
|
FMAP_COMPRESS_LZ4,
|
||||||
|
|
||||||
|
FMAP_COMPRESS_COUNT,
|
||||||
|
FMAP_COMPRESS_UNKNOWN,
|
||||||
};
|
};
|
||||||
|
|
||||||
enum fmap_hash_t {
|
enum fmap_hash_t {
|
||||||
@@ -30,6 +34,10 @@ struct fmap_entry {
|
|||||||
enum fmap_hash_t hash_algo; /* Hash algorithm */
|
enum fmap_hash_t hash_algo; /* Hash algorithm */
|
||||||
const uint8_t *hash; /* Hash value */
|
const uint8_t *hash; /* Hash value */
|
||||||
int hash_size; /* Hash size */
|
int hash_size; /* Hash size */
|
||||||
|
/* Node pointer if CBFS, else NULL */
|
||||||
|
const struct cbfs_cachenode *cbfs_node;
|
||||||
|
/* Hash node pointer if CBFS, else NULL */
|
||||||
|
const struct cbfs_cachenode *cbfs_hash_node;
|
||||||
};
|
};
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
Reference in New Issue
Block a user