com.ampere: Add Ampere's events

The Ampere is logging PLDM error/warning/event as [1]. Create new events
for these so that can be exposed via Redfish.

[1] https://github.com/openbmc/pldm/blob/master/oem/ampere/event/oem_event_manager.cpp#L38

Change-Id: I435c3bbb1d7b0b21067006fb2dcc8ceb81ac5b78
Signed-off-by: Thang Tran <thuutran@amperecomputing.com>
diff --git a/gen/com/ampere/Event/ReportedSEL/meson.build b/gen/com/ampere/Event/ReportedSEL/meson.build
new file mode 100644
index 0000000..d55c07e
--- /dev/null
+++ b/gen/com/ampere/Event/ReportedSEL/meson.build
@@ -0,0 +1,26 @@
+# Generated file; do not modify.
+
+sdbusplus_current_path = 'com/ampere/Event/ReportedSEL'
+
+generated_sources += custom_target(
+    'com/ampere/Event/ReportedSEL__cpp'.underscorify(),
+    input: ['../../../../../yaml/com/ampere/Event/ReportedSEL.events.yaml'],
+    output: ['event.cpp', 'event.hpp'],
+    depend_files: sdbusplusplus_depfiles,
+    command: [
+        sdbuspp_gen_meson_prog,
+        '--command',
+        'cpp',
+        '--output',
+        meson.current_build_dir(),
+        '--tool',
+        sdbusplusplus_prog,
+        '--directory',
+        meson.current_source_dir() / '../../../../../yaml',
+        'com/ampere/Event/ReportedSEL',
+    ],
+    install: should_generate_cpp,
+    install_dir: [false, get_option('includedir') / sdbusplus_current_path],
+    build_by_default: should_generate_cpp,
+)
+
diff --git a/gen/com/ampere/Event/meson.build b/gen/com/ampere/Event/meson.build
new file mode 100644
index 0000000..a86d977
--- /dev/null
+++ b/gen/com/ampere/Event/meson.build
@@ -0,0 +1,49 @@
+# Generated file; do not modify.
+subdir('ReportedSEL')
+
+sdbusplus_current_path = 'com/ampere/Event'
+
+generated_markdown += custom_target(
+    'com/ampere/Event/ReportedSEL__markdown'.underscorify(),
+    input: ['../../../../yaml/com/ampere/Event/ReportedSEL.events.yaml'],
+    output: ['ReportedSEL.md'],
+    depend_files: sdbusplusplus_depfiles,
+    command: [
+        sdbuspp_gen_meson_prog,
+        '--command',
+        'markdown',
+        '--output',
+        meson.current_build_dir(),
+        '--tool',
+        sdbusplusplus_prog,
+        '--directory',
+        meson.current_source_dir() / '../../../../yaml',
+        'com/ampere/Event/ReportedSEL',
+    ],
+    install: should_generate_markdown,
+    install_dir: [inst_markdown_dir / sdbusplus_current_path],
+    build_by_default: should_generate_markdown,
+)
+
+generated_registry += custom_target(
+    'com/ampere/Event/ReportedSEL__registry'.underscorify(),
+    input: ['../../../../yaml/com/ampere/Event/ReportedSEL.events.yaml'],
+    output: ['ReportedSEL.json'],
+    depend_files: sdbusplusplus_depfiles,
+    command: [
+        sdbuspp_gen_meson_prog,
+        '--command',
+        'registry',
+        '--output',
+        meson.current_build_dir(),
+        '--tool',
+        sdbusplusplus_prog,
+        '--directory',
+        meson.current_source_dir() / '../../../../yaml',
+        'com/ampere/Event/ReportedSEL',
+    ],
+    install: should_generate_registry,
+    install_dir: [inst_registry_dir / sdbusplus_current_path],
+    build_by_default: should_generate_registry,
+)
+
diff --git a/gen/com/ampere/meson.build b/gen/com/ampere/meson.build
new file mode 100644
index 0000000..be32e88
--- /dev/null
+++ b/gen/com/ampere/meson.build
@@ -0,0 +1,2 @@
+# Generated file; do not modify.
+subdir('Event')
diff --git a/gen/com/meson.build b/gen/com/meson.build
index 3727d07..825860f 100644
--- a/gen/com/meson.build
+++ b/gen/com/meson.build
@@ -1,4 +1,5 @@
 # Generated file; do not modify.
+subdir('ampere')
 subdir('google')
 subdir('ibm')
 subdir('intel')