Add settings application

Implement settings d-bus interfaces.

Define a settings policy file (this commit checks in an example YAML
based policy), based on which code for a settings manager will be
generated via a python script.
This settings manager composes and places desired settings objects on
the bus.

The policy file can be supplied by a system specific bitbake recipe.

Resolves openbmc/openbmc#1487.

Change-Id: Ice0d3b319d9466824cef323a6915eb20ca5cae5c
Signed-off-by: Deepak Kodihalli <dkodihal@in.ibm.com>
diff --git a/settings_main.cpp b/settings_main.cpp
new file mode 100644
index 0000000..22d6146
--- /dev/null
+++ b/settings_main.cpp
@@ -0,0 +1,24 @@
+#include <sdbusplus/bus.hpp>
+#include <sdbusplus/server/manager.hpp>
+#include "settings_manager.hpp"
+#include "config.h"
+
+int main(int argc, char *argv[])
+{
+    auto bus = sdbusplus::bus::new_default();
+
+    // Add sdbusplus ObjectManager for the settings root.
+    sdbusplus::server::manager::manager objManager(bus, SETTINGS_ROOT);
+
+    phosphor::settings::Manager mgr(bus);
+
+    bus.request_name(SETTINGS_BUSNAME);
+
+    while(true)
+    {
+        bus.process_discard();
+        bus.wait();
+    }
+
+    return 0;
+}