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>
1 parent 7f73e64 commit 0e4f92570eeea78e374af2b8bc9297e7d1c751d9
@Sascha Hauer Sascha Hauer authored on 17 Mar 2016
Showing 2 changed files
View
common/bbu.c
View
include/bbu.h