Skip to content

Commit 561c620

Browse files
committed
valve: add inventory item
Add Valve as an inventory item with valve direction. The valves will be used to control the coolant flow in case of liquid cooled systems. Change-Id: I3d6d122270809de182a77fa31ee9dcc15e2537e8 Signed-off-by: Jagpal Singh Gill <paligill@gmail.com>
1 parent 0a32d1a commit 561c620

File tree

3 files changed

+94
-0
lines changed

3 files changed

+94
-0
lines changed
Lines changed: 40 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,40 @@
1+
# Generated file; do not modify.
2+
3+
sdbusplus_current_path = 'xyz/openbmc_project/Inventory/Item/Valve'
4+
5+
generated_sources += custom_target(
6+
'xyz/openbmc_project/Inventory/Item/Valve__cpp'.underscorify(),
7+
input: [
8+
'../../../../../../yaml/xyz/openbmc_project/Inventory/Item/Valve.interface.yaml',
9+
],
10+
output: [
11+
'common.hpp',
12+
'server.hpp',
13+
'server.cpp',
14+
'aserver.hpp',
15+
'client.hpp',
16+
],
17+
depend_files: sdbusplusplus_depfiles,
18+
command: [
19+
sdbuspp_gen_meson_prog,
20+
'--command',
21+
'cpp',
22+
'--output',
23+
meson.current_build_dir(),
24+
'--tool',
25+
sdbusplusplus_prog,
26+
'--directory',
27+
meson.current_source_dir() / '../../../../../../yaml',
28+
'xyz/openbmc_project/Inventory/Item/Valve',
29+
],
30+
install: should_generate_cpp,
31+
install_dir: [
32+
get_option('includedir') / sdbusplus_current_path,
33+
get_option('includedir') / sdbusplus_current_path,
34+
false,
35+
get_option('includedir') / sdbusplus_current_path,
36+
get_option('includedir') / sdbusplus_current_path,
37+
],
38+
build_by_default: should_generate_cpp,
39+
)
40+

gen/xyz/openbmc_project/Inventory/Item/meson.build

Lines changed: 25 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -28,6 +28,7 @@ subdir('StorageController')
2828
subdir('System')
2929
subdir('Tpm')
3030
subdir('TrustedComponent')
31+
subdir('Valve')
3132
subdir('Volume')
3233
subdir('Vrm')
3334

@@ -765,6 +766,30 @@ generated_markdown += custom_target(
765766
build_by_default: should_generate_markdown,
766767
)
767768

769+
generated_markdown += custom_target(
770+
'xyz/openbmc_project/Inventory/Item/Valve__markdown'.underscorify(),
771+
input: [
772+
'../../../../../yaml/xyz/openbmc_project/Inventory/Item/Valve.interface.yaml',
773+
],
774+
output: ['Valve.md'],
775+
depend_files: sdbusplusplus_depfiles,
776+
command: [
777+
sdbuspp_gen_meson_prog,
778+
'--command',
779+
'markdown',
780+
'--output',
781+
meson.current_build_dir(),
782+
'--tool',
783+
sdbusplusplus_prog,
784+
'--directory',
785+
meson.current_source_dir() / '../../../../../yaml',
786+
'xyz/openbmc_project/Inventory/Item/Valve',
787+
],
788+
install: should_generate_markdown,
789+
install_dir: [inst_markdown_dir / sdbusplus_current_path],
790+
build_by_default: should_generate_markdown,
791+
)
792+
768793
generated_markdown += custom_target(
769794
'xyz/openbmc_project/Inventory/Item/Volume__markdown'.underscorify(),
770795
input: [
Lines changed: 29 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,29 @@
1+
description: >
2+
Implement to provide Valve attributes. A valve helps control the flow of
3+
coolant in a liquid cooling system.
4+
5+
properties:
6+
- name: Direction
7+
type: enum[self.Direction]
8+
default: Unknown
9+
description: >
10+
This property specifies the direction of the liquid flow for the
11+
value.
12+
13+
enumerations:
14+
- name: Direction
15+
description: >
16+
This indicates the direction of liquid flow for the valve.
17+
values:
18+
- name: Supply
19+
description: >
20+
This indicates that the valve functions as the supply valve for
21+
liquid flow.
22+
- name: Return
23+
description: >
24+
This indicates that the valve functions as the return valve for
25+
liquid flow.
26+
- name: Unknown
27+
description: >
28+
This indicates the direction of liquid flow for valve is not
29+
known.

0 commit comments

Comments
 (0)