Make overlay usage able to be disabled
As overlays require a kernel patch, make it able to be
disabled if a user wishes.
Change-Id: I174305435145bac67ad03f18f78c7eb985fbdc53
Signed-off-by: James Feist <james.feist@linux.intel.com>
diff --git a/src/EntityManager.cpp b/src/EntityManager.cpp
index e9e35b8..ec1b285 100644
--- a/src/EntityManager.cpp
+++ b/src/EntityManager.cpp
@@ -1257,9 +1257,12 @@
registerCallbacks(io, dbusMatches, systemConfiguration,
objServer);
io.post([&, newConfiguration]() {
+
+#ifdef OVERLAYS
// todo: for now, only add new configurations,
// unload to come later unloadOverlays();
loadOverlays(newConfiguration);
+#endif
io.post([&]() {
if (!writeJsonFiles(systemConfiguration))
{