util: create util object for bmc and tool
Create a common util object for the BMC library and host tool. Place in
blobs namespace favoring BMC.
Signed-off-by: Patrick Venture <venture@google.com>
Change-Id: I036fd65d924c65fcfa71aba5cd76275a2941ff14
diff --git a/util.cpp b/util.cpp
new file mode 100644
index 0000000..99c47d5
--- /dev/null
+++ b/util.cpp
@@ -0,0 +1,29 @@
+/*
+ * Copyright 2019 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+
+#include "util.hpp"
+
+namespace blobs
+{
+
+const std::string verifyBlobId = "/flash/verify";
+const std::string hashBlobId = "/flash/hash";
+const std::string activeImageBlobId = "/flash/active/image";
+const std::string activeHashBlobId = "/flash/active/hash";
+const std::string staticLayoutBlobId = "/flash/image";
+const std::string ubiTarballBlobId = "/flash/tarball";
+
+} // namespace blobs