bmc: add cleanup blob handler
Add a cleanup blob handler, such that there is a new blob id present
named "/flash/cleanup" that will delete temporary files. This blob
handler expects a client to open/commit/close the blob. This blob
handler will delete files that are specified as temporary. The host
client may use this to clean up artifacts on verification or update
failure.
This can be extended later to handle calling a service or doing anything
else to cleanup. The cleanup handler will be added if
--enable-cleanup-delete. The recipe will automatically add this blob
handler if that configure variable is set.
Tested: Not tested on real hardware.
Signed-off-by: Patrick Venture <venture@google.com>
Change-Id: I4502b2613e38f0a947d7235d084287376c6b0ce1
diff --git a/util.hpp b/util.hpp
index fd3a818..b791995 100644
--- a/util.hpp
+++ b/util.hpp
@@ -12,5 +12,6 @@
extern const std::string activeHashBlobId;
extern const std::string staticLayoutBlobId;
extern const std::string ubiTarballBlobId;
+extern const std::string cleanupBlobId;
} // namespace ipmi_flash