meta: add device compatible strings for Harma
Add the 'Harma' hierarchy under Meta (Facebook) and define
compatible strings for the currently supported devices. These
will be used to indicate hardware compatibility in device
update images.
Change-Id: I9079b161499089e3caa8a6f3eece401bf1d27f9c
Signed-off-by: Daniel Hsu <Daniel-Hsu@quantatw.com>
diff --git a/gen/com/meta/Hardware/Harma/meson.build b/gen/com/meta/Hardware/Harma/meson.build
new file mode 100644
index 0000000..5f15154
--- /dev/null
+++ b/gen/com/meta/Hardware/Harma/meson.build
@@ -0,0 +1,38 @@
+# Generated file; do not modify.
+
+sdbusplus_current_path = 'com/meta/Hardware/Harma'
+
+generated_sources += custom_target(
+ 'com/meta/Hardware/Harma__cpp'.underscorify(),
+ input: ['../../../../../yaml/com/meta/Hardware/Harma.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/Harma',
+ ],
+ 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 b52d6b1..d385a20 100644
--- a/gen/com/meta/Hardware/meson.build
+++ b/gen/com/meta/Hardware/meson.build
@@ -1,5 +1,6 @@
# Generated file; do not modify.
subdir('BMC')
+subdir('Harma')
sdbusplus_current_path = 'com/meta/Hardware'
@@ -25,3 +26,25 @@
build_by_default: should_generate_markdown,
)
+generated_markdown += custom_target(
+ 'com/meta/Hardware/Harma__markdown'.underscorify(),
+ input: ['../../../../yaml/com/meta/Hardware/Harma.interface.yaml'],
+ output: ['Harma.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/Harma',
+ ],
+ install: should_generate_markdown,
+ install_dir: [inst_markdown_dir / sdbusplus_current_path],
+ build_by_default: should_generate_markdown,
+)
+
diff --git a/yaml/com/meta/Hardware/Harma.interface.yaml b/yaml/com/meta/Hardware/Harma.interface.yaml
new file mode 100644
index 0000000..5f877e6
--- /dev/null
+++ b/yaml/com/meta/Hardware/Harma.interface.yaml
@@ -0,0 +1,16 @@
+description: >
+ This interface is never intended to be instantiated, but is used to define
+ devices for Harma.
+
+enumerations:
+ - name: Retimer
+ description: >
+ The compatible hardware strings for the retimer on Harma.
+ values:
+ - name: "PT5161L"
+
+ - name: CPLD
+ description: >
+ The compatible hardware strings for the CPLD on Harma.
+ values:
+ - name: "LCMXO3LF_4300C"