Skip to content

Commit 5145d4e

Browse files
committed
Add support for ReadyToRemove interface
1 parent 33b4f1c commit 5145d4e

3 files changed

Lines changed: 74 additions & 0 deletions

File tree

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/Decorator/ReadyToRemove'
4+
5+
generated_sources += custom_target(
6+
'xyz/openbmc_project/Inventory/Decorator/ReadyToRemove__cpp'.underscorify(),
7+
input: [
8+
'../../../../../../yaml/xyz/openbmc_project/Inventory/Decorator/ReadyToRemove.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/Decorator/ReadyToRemove',
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/Decorator/meson.build

Lines changed: 25 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,7 @@ subdir('LocationCode')
1111
subdir('ManagedHost')
1212
subdir('ManufacturerExt')
1313
subdir('MeetsMinimumShipLevel')
14+
subdir('ReadyToRemove')
1415
subdir('Replaceable')
1516
subdir('Revision')
1617
subdir('Slot')
@@ -309,6 +310,30 @@ generated_markdown += custom_target(
309310
build_by_default: should_generate_markdown,
310311
)
311312

313+
generated_markdown += custom_target(
314+
'xyz/openbmc_project/Inventory/Decorator/ReadyToRemove__markdown'.underscorify(),
315+
input: [
316+
'../../../../../yaml/xyz/openbmc_project/Inventory/Decorator/ReadyToRemove.interface.yaml',
317+
],
318+
output: ['ReadyToRemove.md'],
319+
depend_files: sdbusplusplus_depfiles,
320+
command: [
321+
sdbuspp_gen_meson_prog,
322+
'--command',
323+
'markdown',
324+
'--output',
325+
meson.current_build_dir(),
326+
'--tool',
327+
sdbusplusplus_prog,
328+
'--directory',
329+
meson.current_source_dir() / '../../../../../yaml',
330+
'xyz/openbmc_project/Inventory/Decorator/ReadyToRemove',
331+
],
332+
install: should_generate_markdown,
333+
install_dir: [inst_markdown_dir / sdbusplus_current_path],
334+
build_by_default: should_generate_markdown,
335+
)
336+
312337
generated_markdown += custom_target(
313338
'xyz/openbmc_project/Inventory/Decorator/Replaceable__markdown'.underscorify(),
314339
input: [
Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
description: >
2+
An indication of whether the inventory is prepared by the system for
3+
removal.
4+
properties:
5+
- name: ReadyToRemove
6+
type: boolean
7+
description: >
8+
An indication of whether the item is prepared by the system for
9+
removal.

0 commit comments

Comments
 (0)