oem-ampere: eventManager: Handle `BootProgress` sensor event
Add Ampere OEM code to handle the `sensorEvent` for PLDM `BootProgress`
sensor. In Ampere system, the SOC termini will have the TID 1 or 2. The
Ampere OEM EventManager will check the terminus TID to confirm about the
terminus type. Base on the value of `BootProgress` sensor, the OEM code
will add the Redfish Log to report the boot progress of Ampere SoC.
Tested:
1. Power on the host.
2. Check the Redfish SEL log.
Signed-off-by: Chau Ly <chaul@amperecomputing.com>
Signed-off-by: Thu Nguyen <thu@os.amperecomputing.com>
Change-Id: Icc51537ef17ee8eb4b5b571eafeea7b5d7763cbe
diff --git a/meson.build b/meson.build
index 32684b3..681dd7a 100644
--- a/meson.build
+++ b/meson.build
@@ -138,6 +138,12 @@
)
conf_data.set('SENSOR_POLLING_TIME', get_option('sensor-polling-time'))
+oem_files = []
+if get_option('oem-ampere').enabled()
+ add_project_arguments('-DOEM_AMPERE', language : 'cpp')
+ subdir('oem/ampere')
+endif
+
configure_file(output: 'config.h', configuration: conf_data)
add_project_arguments(
@@ -247,6 +253,7 @@
'platform-mc/sensor_manager.cpp',
'platform-mc/numeric_sensor.cpp',
'platform-mc/event_manager.cpp',
+ oem_files,
'requester/mctp_endpoint_discovery.cpp',
implicit_include_directories: false,
dependencies: deps,