summaryrefslogtreecommitdiffstats
path: root/include/bbu.h
diff options
context:
space:
mode:
authorSascha Hauer <s.hauer@pengutronix.de>2016-03-10 16:24:10 +0100
committerSascha Hauer <s.hauer@pengutronix.de>2016-04-08 13:35:32 +0200
commitfa61152d972a47edcad1a3da0a6500db194c1a77 (patch)
treea7487609ecc6b4fd12d1fb6a7286322c553b3be3 /include/bbu.h
parent1e6955fdb815906bdd2ecbf2c50e5059852f2400 (diff)
downloadbarebox-fa61152d972a47edcad1a3da0a6500db194c1a77.tar.gz
barebox-fa61152d972a47edcad1a3da0a6500db194c1a77.tar.xz
bbu: Allow to refresh/repair images
Some SoCs allow to store multiple boot images on a device in order to improve robustness. This adds a -r option to barebox_update to indicate we do not want to make an update but instead repair/refresh an existing image. Handlers which want to support this feature must set the BBU_HANDLER_CAN_REFRESH flag during registration. Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
Diffstat (limited to 'include/bbu.h')
-rw-r--r--include/bbu.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/include/bbu.h b/include/bbu.h
index 0fe7a1a9bc..971fc1405c 100644
--- a/include/bbu.h
+++ b/include/bbu.h
@@ -23,6 +23,7 @@ struct bbu_handler {
const char *name;
struct list_head list;
#define BBU_HANDLER_FLAG_DEFAULT (1 << 0)
+#define BBU_HANDLER_CAN_REFRESH (1 << 1)
unsigned long flags;
/* default device file, can be overwritten on the command line */