inventory.decorator: define CLEI interface
Some products, especially in the telecom space, have an assigned
CLEI number. See https://tools.ietf.org/html/rfc4152 . Define
an interface to store the CLEI.
Signed-off-by: Patrick Williams <patrick@stwcx.xyz>
Change-Id: I8a3499a4e76b0605414ce702a76c01e126536dca
diff --git a/gen/xyz/openbmc_project/Inventory/Decorator/CLEI/meson.build b/gen/xyz/openbmc_project/Inventory/Decorator/CLEI/meson.build
new file mode 100644
index 0000000..46f18fc
--- /dev/null
+++ b/gen/xyz/openbmc_project/Inventory/Decorator/CLEI/meson.build
@@ -0,0 +1,14 @@
+# Generated file; do not modify.
+generated_sources += custom_target(
+ 'xyz/openbmc_project/Inventory/Decorator/CLEI__cpp'.underscorify(),
+ input: [ meson.source_root() / 'xyz/openbmc_project/Inventory/Decorator/CLEI.interface.yaml', ],
+ output: [ 'server.cpp', 'server.hpp', 'client.hpp', ],
+ command: [
+ sdbuspp_gen_meson_prog, '--command', 'cpp',
+ '--output', meson.current_build_dir(),
+ '--tool', sdbusplusplus_prog,
+ '--directory', meson.source_root(),
+ 'xyz/openbmc_project/Inventory/Decorator/CLEI',
+ ],
+)
+
diff --git a/gen/xyz/openbmc_project/Inventory/Decorator/meson.build b/gen/xyz/openbmc_project/Inventory/Decorator/meson.build
index e25bdd5..68ae7bf 100644
--- a/gen/xyz/openbmc_project/Inventory/Decorator/meson.build
+++ b/gen/xyz/openbmc_project/Inventory/Decorator/meson.build
@@ -44,6 +44,21 @@
build_by_default: true,
)
+subdir('CLEI')
+generated_others += custom_target(
+ 'xyz/openbmc_project/Inventory/Decorator/CLEI__markdown'.underscorify(),
+ input: [ meson.source_root() / 'xyz/openbmc_project/Inventory/Decorator/CLEI.interface.yaml', ],
+ output: [ 'CLEI.md' ],
+ command: [
+ sdbuspp_gen_meson_prog, '--command', 'markdown',
+ '--output', meson.current_build_dir(),
+ '--tool', sdbusplusplus_prog,
+ '--directory', meson.source_root(),
+ 'xyz/openbmc_project/Inventory/Decorator/CLEI',
+ ],
+ build_by_default: true,
+)
+
subdir('Compatible')
generated_others += custom_target(
'xyz/openbmc_project/Inventory/Decorator/Compatible__markdown'.underscorify(),
diff --git a/xyz/openbmc_project/Inventory/Decorator/CLEI.interface.yaml b/xyz/openbmc_project/Inventory/Decorator/CLEI.interface.yaml
new file mode 100644
index 0000000..9647bd9
--- /dev/null
+++ b/xyz/openbmc_project/Inventory/Decorator/CLEI.interface.yaml
@@ -0,0 +1,9 @@
+description: >
+ Implement to indicate an item with a defined Common Language Equipment
+ Identifer (CLEI) number.
+
+properties:
+ - name: CLEINumber
+ type: string
+ description: >
+ The CLEI number of the inventory item.