summaryrefslogtreecommitdiffstats
path: root/item_updater_main.cpp
diff options
context:
space:
mode:
authorLei YU <mine260309@gmail.com>2019-02-21 16:10:41 +0800
committerLei YU <mine260309@gmail.com>2019-03-13 11:01:53 +0800
commit322f3f4702cda3c2114091c51fa7d88014b7cef8 (patch)
treeb9465b18857b53e3fb39f1466cbd28fc8f2480d1 /item_updater_main.cpp
parentdcb3fd799cd353925aaa269413b68b672f99315c (diff)
downloadopenpower-pnor-code-mgmt-322f3f4702cda3c2114091c51fa7d88014b7cef8.tar.gz
openpower-pnor-code-mgmt-322f3f4702cda3c2114091c51fa7d88014b7cef8.zip
Static layout: Add dummy item_updater
This commit only adds the functions without implementation. Tested: Verify the code compiles with or without static layout. Change-Id: Id57640b367f9594d07e6780d446479eb7ac06007 Signed-off-by: Lei YU <mine260309@gmail.com>
Diffstat (limited to 'item_updater_main.cpp')
-rw-r--r--item_updater_main.cpp4
1 files changed, 4 insertions, 0 deletions
diff --git a/item_updater_main.cpp b/item_updater_main.cpp
index e54239a89..9ba705bca 100644
--- a/item_updater_main.cpp
+++ b/item_updater_main.cpp
@@ -3,6 +3,8 @@
#ifdef UBIFS_LAYOUT
#include "ubi/item_updater_ubi.hpp"
#include "ubi/watch.hpp"
+#else
+#include "static/item_updater_static.hpp"
#endif
#include <phosphor-logging/log.hpp>
@@ -30,6 +32,8 @@ int main(int argc, char* argv[])
#ifdef UBIFS_LAYOUT
ItemUpdaterUbi updater(bus, SOFTWARE_OBJPATH);
+#else
+ ItemUpdaterStatic updater(bus, SOFTWARE_OBJPATH);
#endif
bus.request_name(BUSNAME_UPDATER);
OpenPOWER on IntegriCloud