meson: add option for open-power functions
This repository has long had an open-power only function that ends
up compiled into all systems. We cannot use the phosphor-logging
generated errors, unless we are able to disable this code on
non-open-power systems. Add necessary meson options.
Signed-off-by: Patrick Williams <patrick@stwcx.xyz>
Change-Id: Icd5b2f4cdec206597029930790ef2b10170d232a
diff --git a/storagehandler.cpp b/storagehandler.cpp
index cf5ef5e..b9f654c 100644
--- a/storagehandler.cpp
+++ b/storagehandler.cpp
@@ -1,3 +1,5 @@
+#include "config.h"
+
#include "storagehandler.hpp"
#include "fruread.hpp"
@@ -710,12 +712,14 @@
Created::EVENT_DIR(assert),
Created::SENSOR_PATH(objpath.c_str()));
}
+#ifdef OPEN_POWER_SUPPORT
else if (recordType == procedureType)
{
// In the OEM record type 0xDE, byte 11 in the SEL record indicate the
// procedure number.
createProcedureLogEntry(sensorType);
}
+#endif
return ipmi::responseSuccess(recordID);
}