com.meta: add compatible device strings for Minerva
Add Minerva CMM compatible strings for the CPLD to enable firmware
update and version check.
Change-Id: Ieea9f785d4ee77b7c4f0d69e1a6f6b85ad13c926
Signed-off-by: Yang Chen <yang.chen@quantatw.com>
diff --git a/gen/com/meta/Hardware/Minerva/meson.build b/gen/com/meta/Hardware/Minerva/meson.build
new file mode 100644
index 0000000..b77ab04
--- /dev/null
+++ b/gen/com/meta/Hardware/Minerva/meson.build
@@ -0,0 +1,38 @@
+# Generated file; do not modify.
+
+sdbusplus_current_path = 'com/meta/Hardware/Minerva'
+
+generated_sources += custom_target(
+ 'com/meta/Hardware/Minerva__cpp'.underscorify(),
+ input: ['../../../../../yaml/com/meta/Hardware/Minerva.interface.yaml'],
+ output: [
+ 'common.hpp',
+ 'server.hpp',
+ 'server.cpp',
+ 'aserver.hpp',
+ 'client.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/meta/Hardware/Minerva',
+ ],
+ install: should_generate_cpp,
+ install_dir: [
+ get_option('includedir') / sdbusplus_current_path,
+ get_option('includedir') / sdbusplus_current_path,
+ false,
+ get_option('includedir') / sdbusplus_current_path,
+ get_option('includedir') / sdbusplus_current_path,
+ ],
+ build_by_default: should_generate_cpp,
+)
+
diff --git a/gen/com/meta/Hardware/meson.build b/gen/com/meta/Hardware/meson.build
index ee7da69..4c7f86a 100644
--- a/gen/com/meta/Hardware/meson.build
+++ b/gen/com/meta/Hardware/meson.build
@@ -1,6 +1,7 @@
# Generated file; do not modify.
subdir('BMC')
subdir('Harma')
+subdir('Minerva')
subdir('Santabarbara')
subdir('Yosemite5')
@@ -51,6 +52,28 @@
)
generated_markdown += custom_target(
+ 'com/meta/Hardware/Minerva__markdown'.underscorify(),
+ input: ['../../../../yaml/com/meta/Hardware/Minerva.interface.yaml'],
+ output: ['Minerva.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/meta/Hardware/Minerva',
+ ],
+ install: should_generate_markdown,
+ install_dir: [inst_markdown_dir / sdbusplus_current_path],
+ build_by_default: should_generate_markdown,
+)
+
+generated_markdown += custom_target(
'com/meta/Hardware/Santabarbara__markdown'.underscorify(),
input: ['../../../../yaml/com/meta/Hardware/Santabarbara.interface.yaml'],
output: ['Santabarbara.md'],
diff --git a/yaml/com/meta/Hardware/Minerva.interface.yaml b/yaml/com/meta/Hardware/Minerva.interface.yaml
new file mode 100644
index 0000000..8537ea1
--- /dev/null
+++ b/yaml/com/meta/Hardware/Minerva.interface.yaml
@@ -0,0 +1,11 @@
+description: >
+ This interface is never intended to be instantiated, but is used to define
+ devices for Minerva.
+
+enumerations:
+ - name: CPLD
+ description: >
+ The compatible hardware strings for the CPLD on Minerva.
+ values:
+ - name: "LCMXO3D_9400HC_cmm"
+ - name: "LCMXO3LF_2100C_scm"