pldm: Add support for OCC state changes

When the state of the OCC changes, host sends stateSensorEvent to
indicate going active or not active which is send as a D-Bus signal
by PLDM daemon. openpower-occ-control app listens for this signal
and updates the OCC D-Bus object. The lowest entity instance number
in the PDRs corresponds to first instance of the OCC.

Tested:

1) On a simics session verified that the sensor event is handled for
OCC going active and OCCActive property is set to true.
2) A sensorEvent is generated for OCC going non active and verified
OCCActive property is set to false.
3) Powered off the host and OCCActive property is set to false.

Signed-off-by: Tom Joseph <tomjoseph@in.ibm.com>
Change-Id: I0469cc483184b66acabc5f0cea1613a7768b3393
diff --git a/pldm.mk b/pldm.mk
new file mode 100644
index 0000000..0733508
--- /dev/null
+++ b/pldm.mk
@@ -0,0 +1,12 @@
+if ENABLE_PLDM

+

+noinst_HEADERS += \

+	pldm.hpp

+libocc_control_la_SOURCES += \

+	pldm.cpp

+openpower_occ_control_LDADD += \

+	$(LIBPLDM_LIBS)

+openpower_occ_control_CXXFLAGS += \

+	$(LIBPLDM_CFLAGS)

+

+endif