Software.Image: add YAML from phosphor-bmc-code-mgmt
Signed-off-by: Patrick Williams <patrick@stwcx.xyz>
Change-Id: Icc3a526d9cbc4e38b4336eca46d081e9c108022f
diff --git a/gen/xyz/openbmc_project/Software/Image/meson.build b/gen/xyz/openbmc_project/Software/Image/meson.build
new file mode 100644
index 0000000..f492938
--- /dev/null
+++ b/gen/xyz/openbmc_project/Software/Image/meson.build
@@ -0,0 +1,15 @@
+# Generated file; do not modify.
+generated_sources += custom_target(
+ 'xyz/openbmc_project/Software/Image__cpp'.underscorify(),
+ input: [ '../../../../../yaml/xyz/openbmc_project/Software/Image.errors.yaml', ],
+ output: [ 'error.cpp', 'error.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',
+ 'xyz/openbmc_project/Software/Image',
+ ],
+)
+
diff --git a/gen/xyz/openbmc_project/Software/meson.build b/gen/xyz/openbmc_project/Software/meson.build
index ace2bcb..8608c9f 100644
--- a/gen/xyz/openbmc_project/Software/meson.build
+++ b/gen/xyz/openbmc_project/Software/meson.build
@@ -89,6 +89,21 @@
],
)
+subdir('Image')
+generated_others += custom_target(
+ 'xyz/openbmc_project/Software/Image__markdown'.underscorify(),
+ input: [ '../../../../yaml/xyz/openbmc_project/Software/Image.errors.yaml', ],
+ output: [ 'Image.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',
+ 'xyz/openbmc_project/Software/Image',
+ ],
+)
+
subdir('RedundancyPriority')
generated_others += custom_target(
'xyz/openbmc_project/Software/RedundancyPriority__markdown'.underscorify(),
diff --git a/yaml/xyz/openbmc_project/Software/Image.errors.yaml b/yaml/xyz/openbmc_project/Software/Image.errors.yaml
new file mode 100644
index 0000000..c2fda85
--- /dev/null
+++ b/yaml/xyz/openbmc_project/Software/Image.errors.yaml
@@ -0,0 +1,10 @@
+- name: UnTarFailure
+ description: An error occurred during untar.
+- name: ManifestFileFailure
+ description: An error when reading the Manifest file.
+- name: InternalFailure
+ description: The operation failed internally during processing the image.
+- name: ImageFailure
+ description: An error occured processing the image.
+- name: BusyFailure
+ description: The device is busy during the update.
diff --git a/yaml/xyz/openbmc_project/Software/Image.metadata.yaml b/yaml/xyz/openbmc_project/Software/Image.metadata.yaml
new file mode 100644
index 0000000..a63d4a1
--- /dev/null
+++ b/yaml/xyz/openbmc_project/Software/Image.metadata.yaml
@@ -0,0 +1,27 @@
+- name: UnTarFailure
+ level: ERR
+ meta:
+ - str: "PATH=%s"
+ type: string
+- name: ManifestFileFailure
+ level: ERR
+ meta:
+ - str: "PATH=%s"
+ type: string
+- name: InternalFailure
+ level: ERR
+ meta:
+ - str: "FAIL=%s"
+ type: string
+- name: ImageFailure
+ level: ERR
+ meta:
+ - str: "FAIL=%s"
+ type: string
+ - str: "PATH=%s"
+ type: string
+- name: BusyFailure
+ level: ERR
+ meta:
+ - str: "PATH=%s"
+ type: string