diff options
author | Sascha Hauer <s.hauer@pengutronix.de> | 2016-03-17 16:15:11 +0100 |
---|---|---|
committer | Sascha Hauer <s.hauer@pengutronix.de> | 2016-04-06 15:41:15 +0200 |
commit | 0e4f92570eeea78e374af2b8bc9297e7d1c751d9 (patch) | |
tree | 82ffda6c8bd4430ca2de1779a006de65435063ea /include/bbu.h | |
parent | 7f73e64e8b369e655a322cd2877b5a1222f5b245 (diff) | |
download | barebox-0e4f92570eeea78e374af2b8bc9297e7d1c751d9.tar.gz barebox-0e4f92570eeea78e374af2b8bc9297e7d1c751d9.tar.xz |
bbu: print and evaluate image Metadata
With imd we can store metadata in barebox images. Let's use this
information to further verify that the image that is to be flashed
is the correct one. This patch extracts the device tree compatible
from the image and compares it with the one from the currently
running barebox. If it doesn't match the update is aborted with a
warning.
Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
Diffstat (limited to 'include/bbu.h')
-rw-r--r-- | include/bbu.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/include/bbu.h b/include/bbu.h index 0fe7a1a9bc..701d7f61f6 100644 --- a/include/bbu.h +++ b/include/bbu.h @@ -16,6 +16,7 @@ struct bbu_data { const char *devicefile; size_t len; const char *handler_name; + struct imd_header *imd_data; }; struct bbu_handler { |