diff options
author | rmilecki <rmilecki@3c298f89-4303-0410-b956-a3cf2f4a3e73> | 2016-05-09 12:53:29 +0000 |
---|---|---|
committer | Rafał Miłecki <zajec5@gmail.com> | 2016-05-09 18:53:11 +0200 |
commit | bcccb03200487112552531066ce4e3befd84bf8f (patch) | |
tree | da0730f619232c7d8361822bea272623d7830fbd /package/system/mtd/src/seama.h | |
parent | 8632d89fa0d22e192c16c0bb6a50f02486dd73a6 (diff) | |
download | upstream-bcccb03200487112552531066ce4e3befd84bf8f.tar.gz upstream-bcccb03200487112552531066ce4e3befd84bf8f.tar.bz2 upstream-bcccb03200487112552531066ce4e3befd84bf8f.zip |
mtd: seama: add md5 to header struct
This allows us to drop some extra offset calculations and simplifies
code a bit.
Signed-off-by: Rafał Miłecki <zajec5@gmail.com>
Diffstat (limited to 'package/system/mtd/src/seama.h')
-rw-r--r-- | package/system/mtd/src/seama.h | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/package/system/mtd/src/seama.h b/package/system/mtd/src/seama.h index 02683b6e98..c6634bd15a 100644 --- a/package/system/mtd/src/seama.h +++ b/package/system/mtd/src/seama.h @@ -94,14 +94,14 @@ * | image size | * +-------------+-------------+ */ + /* seama header */ -typedef struct seama_hdr seamahdr_t; -struct seama_hdr -{ +struct seama_entity_header { uint32_t magic; /* should always be SEAMA_MAGIC. */ uint16_t reserved; /* reserved for */ uint16_t metasize; /* size of the META data */ uint32_t size; /* size of the image */ + uint8_t md5[16]; } __attribute__ ((packed)); |