diff options
Diffstat (limited to 'meta-openbmc-mods/meta-common/recipes-phosphor/dbus/phosphor-dbus-interfaces/0032-update-meson-build-for-MCTP-interfaces.patch')
-rw-r--r-- | meta-openbmc-mods/meta-common/recipes-phosphor/dbus/phosphor-dbus-interfaces/0032-update-meson-build-for-MCTP-interfaces.patch | 161 |
1 files changed, 52 insertions, 109 deletions
diff --git a/meta-openbmc-mods/meta-common/recipes-phosphor/dbus/phosphor-dbus-interfaces/0032-update-meson-build-for-MCTP-interfaces.patch b/meta-openbmc-mods/meta-common/recipes-phosphor/dbus/phosphor-dbus-interfaces/0032-update-meson-build-for-MCTP-interfaces.patch index 5f41a1348..ab13f55fe 100644 --- a/meta-openbmc-mods/meta-common/recipes-phosphor/dbus/phosphor-dbus-interfaces/0032-update-meson-build-for-MCTP-interfaces.patch +++ b/meta-openbmc-mods/meta-common/recipes-phosphor/dbus/phosphor-dbus-interfaces/0032-update-meson-build-for-MCTP-interfaces.patch @@ -1,266 +1,209 @@ -From b25ae31fa674a287bc100081a9dfc243bcf53f19 Mon Sep 17 00:00:00 2001 +From f4eddacc871c6bb759e6e355a89ccaaa12c63396 Mon Sep 17 00:00:00 2001 From: Zhikui Ren <zhikui.ren@intel.com> Date: Tue, 8 Dec 2020 15:16:25 -0800 Subject: [PATCH] update meson build for MCTP interfaces Signed-off-by: Zhikui Ren <zhikui.ren@intel.com> --- - gen/xyz/openbmc_project/MCTP/Base/meson.build | 14 +++++ - .../MCTP/Binding/PCIe/meson.build | 14 +++++ - .../MCTP/Binding/SMBus/meson.build | 14 +++++ - .../openbmc_project/MCTP/Binding/meson.build | 31 ++++++++++ - .../openbmc_project/MCTP/BusOwner/meson.build | 14 +++++ - .../openbmc_project/MCTP/Endpoint/meson.build | 14 +++++ - .../MCTP/SupportedMessageTypes/meson.build | 14 +++++ - gen/xyz/openbmc_project/MCTP/meson.build | 62 +++++++++++++++++++ - gen/xyz/openbmc_project/meson.build | 1 + - 9 files changed, 178 insertions(+) + gen/xyz/openbmc_project/MCTP/Base/meson.build | 13 ++++++ + .../MCTP/Binding/PCIe/meson.build | 13 ++++++ + .../MCTP/Binding/SMBus/meson.build | 13 ++++++ + .../openbmc_project/MCTP/Binding/meson.build | 30 +++++++++++++ + .../openbmc_project/MCTP/BusOwner/meson.build | 13 ++++++ + .../MCTP/SupportedMessageTypes/meson.build | 13 ++++++ + gen/xyz/openbmc_project/MCTP/meson.build | 42 +++++++++++++++++++ + 7 files changed, 137 insertions(+) create mode 100644 gen/xyz/openbmc_project/MCTP/Base/meson.build create mode 100644 gen/xyz/openbmc_project/MCTP/Binding/PCIe/meson.build create mode 100644 gen/xyz/openbmc_project/MCTP/Binding/SMBus/meson.build create mode 100644 gen/xyz/openbmc_project/MCTP/Binding/meson.build create mode 100644 gen/xyz/openbmc_project/MCTP/BusOwner/meson.build - create mode 100644 gen/xyz/openbmc_project/MCTP/Endpoint/meson.build create mode 100644 gen/xyz/openbmc_project/MCTP/SupportedMessageTypes/meson.build - create mode 100644 gen/xyz/openbmc_project/MCTP/meson.build diff --git a/gen/xyz/openbmc_project/MCTP/Base/meson.build b/gen/xyz/openbmc_project/MCTP/Base/meson.build new file mode 100644 -index 0000000..81aeb86 +index 000000000000..c605b2d496ac --- /dev/null +++ b/gen/xyz/openbmc_project/MCTP/Base/meson.build -@@ -0,0 +1,14 @@ +@@ -0,0 +1,13 @@ +# Generated file; do not modify. +generated_sources += custom_target( + 'xyz/openbmc_project/MCTP/Base__cpp'.underscorify(), -+ input: [ meson.source_root() / 'xyz/openbmc_project/MCTP/Base.interface.yaml', ], ++ input: [ '../../../../../yaml/xyz/openbmc_project/MCTP/Base.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(), ++ '--directory', meson.current_source_dir() / '../../../../../yaml', + 'xyz/openbmc_project/MCTP/Base', + ], +) -+ diff --git a/gen/xyz/openbmc_project/MCTP/Binding/PCIe/meson.build b/gen/xyz/openbmc_project/MCTP/Binding/PCIe/meson.build new file mode 100644 -index 0000000..0da866c +index 000000000000..4573a64f4099 --- /dev/null +++ b/gen/xyz/openbmc_project/MCTP/Binding/PCIe/meson.build -@@ -0,0 +1,14 @@ +@@ -0,0 +1,13 @@ +# Generated file; do not modify. +generated_sources += custom_target( + 'xyz/openbmc_project/MCTP/Binding/PCIe__cpp'.underscorify(), -+ input: [ meson.source_root() / 'xyz/openbmc_project/MCTP/Binding/PCIe.interface.yaml', ], ++ input: [ '../../../../../../yaml/xyz/openbmc_project/MCTP/Binding/PCIe.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(), ++ '--directory', meson.current_source_dir() / '../../../../../../yaml', + 'xyz/openbmc_project/MCTP/Binding/PCIe', + ], +) -+ diff --git a/gen/xyz/openbmc_project/MCTP/Binding/SMBus/meson.build b/gen/xyz/openbmc_project/MCTP/Binding/SMBus/meson.build new file mode 100644 -index 0000000..a0f97bd +index 000000000000..bfb4d040a54c --- /dev/null +++ b/gen/xyz/openbmc_project/MCTP/Binding/SMBus/meson.build -@@ -0,0 +1,14 @@ +@@ -0,0 +1,13 @@ +# Generated file; do not modify. +generated_sources += custom_target( + 'xyz/openbmc_project/MCTP/Binding/SMBus__cpp'.underscorify(), -+ input: [ meson.source_root() / 'xyz/openbmc_project/MCTP/Binding/SMBus.interface.yaml', ], ++ input: [ '../../../../../../yaml/xyz/openbmc_project/MCTP/Binding/SMBus.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(), ++ '--directory', meson.current_source_dir() / '../../../../../../yaml', + 'xyz/openbmc_project/MCTP/Binding/SMBus', + ], +) -+ diff --git a/gen/xyz/openbmc_project/MCTP/Binding/meson.build b/gen/xyz/openbmc_project/MCTP/Binding/meson.build new file mode 100644 -index 0000000..6e3407c +index 000000000000..36a74ddac294 --- /dev/null +++ b/gen/xyz/openbmc_project/MCTP/Binding/meson.build -@@ -0,0 +1,31 @@ +@@ -0,0 +1,28 @@ +# Generated file; do not modify. +subdir('PCIe') +generated_others += custom_target( + 'xyz/openbmc_project/MCTP/Binding/PCIe__markdown'.underscorify(), -+ input: [ meson.source_root() / 'xyz/openbmc_project/MCTP/Binding/PCIe.interface.yaml', ], ++ input: [ '../../../../../yaml/xyz/openbmc_project/MCTP/Binding/PCIe.interface.yaml', ], + output: [ 'PCIe.md' ], + command: [ + sdbuspp_gen_meson_prog, '--command', 'markdown', + '--output', meson.current_build_dir(), + '--tool', sdbusplusplus_prog, -+ '--directory', meson.source_root(), ++ '--directory', meson.current_source_dir() / '../../../../../yaml', + 'xyz/openbmc_project/MCTP/Binding/PCIe', + ], -+ build_by_default: true, +) + +subdir('SMBus') +generated_others += custom_target( + 'xyz/openbmc_project/MCTP/Binding/SMBus__markdown'.underscorify(), -+ input: [ meson.source_root() / 'xyz/openbmc_project/MCTP/Binding/SMBus.interface.yaml', ], ++ input: [ '../../../../../yaml/xyz/openbmc_project/MCTP/Binding/SMBus.interface.yaml', ], + output: [ 'SMBus.md' ], + command: [ + sdbuspp_gen_meson_prog, '--command', 'markdown', + '--output', meson.current_build_dir(), + '--tool', sdbusplusplus_prog, -+ '--directory', meson.source_root(), ++ '--directory', meson.current_source_dir() / '../../../../../yaml', + 'xyz/openbmc_project/MCTP/Binding/SMBus', + ], -+ build_by_default: true, +) -+ diff --git a/gen/xyz/openbmc_project/MCTP/BusOwner/meson.build b/gen/xyz/openbmc_project/MCTP/BusOwner/meson.build new file mode 100644 -index 0000000..190a640 +index 000000000000..4b28bd6b34e7 --- /dev/null +++ b/gen/xyz/openbmc_project/MCTP/BusOwner/meson.build -@@ -0,0 +1,14 @@ +@@ -0,0 +1,13 @@ +# Generated file; do not modify. +generated_sources += custom_target( + 'xyz/openbmc_project/MCTP/BusOwner__cpp'.underscorify(), -+ input: [ meson.source_root() / 'xyz/openbmc_project/MCTP/BusOwner.interface.yaml', ], ++ input: [ '../../../../../yaml/xyz/openbmc_project/MCTP/BusOwner.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(), ++ '--directory', meson.current_source_dir() / '../../../../../yaml', + 'xyz/openbmc_project/MCTP/BusOwner', + ], +) -+ -diff --git a/gen/xyz/openbmc_project/MCTP/Endpoint/meson.build b/gen/xyz/openbmc_project/MCTP/Endpoint/meson.build -new file mode 100644 -index 0000000..cababfb ---- /dev/null -+++ b/gen/xyz/openbmc_project/MCTP/Endpoint/meson.build -@@ -0,0 +1,14 @@ -+# Generated file; do not modify. -+generated_sources += custom_target( -+ 'xyz/openbmc_project/MCTP/Endpoint__cpp'.underscorify(), -+ input: [ meson.source_root() / 'xyz/openbmc_project/MCTP/Endpoint.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/MCTP/Endpoint', -+ ], -+) -+ diff --git a/gen/xyz/openbmc_project/MCTP/SupportedMessageTypes/meson.build b/gen/xyz/openbmc_project/MCTP/SupportedMessageTypes/meson.build new file mode 100644 -index 0000000..f58fa44 +index 000000000000..4fd46823ed17 --- /dev/null +++ b/gen/xyz/openbmc_project/MCTP/SupportedMessageTypes/meson.build -@@ -0,0 +1,14 @@ +@@ -0,0 +1,13 @@ +# Generated file; do not modify. +generated_sources += custom_target( + 'xyz/openbmc_project/MCTP/SupportedMessageTypes__cpp'.underscorify(), -+ input: [ meson.source_root() / 'xyz/openbmc_project/MCTP/SupportedMessageTypes.interface.yaml', ], ++ input: [ '../../../../../yaml/xyz/openbmc_project/MCTP/SupportedMessageTypes.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(), ++ '--directory', meson.current_source_dir() / '../../../../../yaml', + 'xyz/openbmc_project/MCTP/SupportedMessageTypes', + ], +) -+ diff --git a/gen/xyz/openbmc_project/MCTP/meson.build b/gen/xyz/openbmc_project/MCTP/meson.build -new file mode 100644 -index 0000000..94ab2c2 ---- /dev/null +index b9598adf6fa7..6b6d00b833d2 100644 +--- a/gen/xyz/openbmc_project/MCTP/meson.build +++ b/gen/xyz/openbmc_project/MCTP/meson.build -@@ -0,0 +1,62 @@ -+# Generated file; do not modify. +@@ -1,4 +1,33 @@ + # Generated file; do not modify. +subdir('Base') +generated_others += custom_target( + 'xyz/openbmc_project/MCTP/Base__markdown'.underscorify(), -+ input: [ meson.source_root() / 'xyz/openbmc_project/MCTP/Base.interface.yaml', ], ++ input: [ '../../../../yaml/xyz/openbmc_project/MCTP/Base.interface.yaml', ], + output: [ 'Base.md' ], + command: [ + sdbuspp_gen_meson_prog, '--command', 'markdown', + '--output', meson.current_build_dir(), + '--tool', sdbusplusplus_prog, -+ '--directory', meson.source_root(), ++ '--directory', meson.current_source_dir() / '../../../../yaml', + 'xyz/openbmc_project/MCTP/Base', + ], -+ build_by_default: true, +) + +subdir('Binding') +subdir('BusOwner') +generated_others += custom_target( + 'xyz/openbmc_project/MCTP/BusOwner__markdown'.underscorify(), -+ input: [ meson.source_root() / 'xyz/openbmc_project/MCTP/BusOwner.interface.yaml', ], ++ input: [ '../../../../yaml/xyz/openbmc_project/MCTP/BusOwner.interface.yaml', ], + output: [ 'BusOwner.md' ], + command: [ + sdbuspp_gen_meson_prog, '--command', 'markdown', + '--output', meson.current_build_dir(), + '--tool', sdbusplusplus_prog, -+ '--directory', meson.source_root(), ++ '--directory', meson.current_source_dir() / '../../../../yaml', + 'xyz/openbmc_project/MCTP/BusOwner', + ], -+ build_by_default: true, -+) -+ -+subdir('Endpoint') -+generated_others += custom_target( -+ 'xyz/openbmc_project/MCTP/Endpoint__markdown'.underscorify(), -+ input: [ meson.source_root() / 'xyz/openbmc_project/MCTP/Endpoint.interface.yaml', ], -+ output: [ 'Endpoint.md' ], -+ command: [ -+ sdbuspp_gen_meson_prog, '--command', 'markdown', -+ '--output', meson.current_build_dir(), -+ '--tool', sdbusplusplus_prog, -+ '--directory', meson.source_root(), -+ 'xyz/openbmc_project/MCTP/Endpoint', -+ ], -+ build_by_default: true, +) + + subdir('Endpoint') + generated_others += custom_target( + 'xyz/openbmc_project/MCTP/Endpoint__markdown'.underscorify(), +@@ -13,3 +42,16 @@ generated_others += custom_target( + ], + ) + +subdir('SupportedMessageTypes') +generated_others += custom_target( + 'xyz/openbmc_project/MCTP/SupportedMessageTypes__markdown'.underscorify(), -+ input: [ meson.source_root() / 'xyz/openbmc_project/MCTP/SupportedMessageTypes.interface.yaml', ], ++ input: [ '../../../../yaml/xyz/openbmc_project/MCTP/SupportedMessageTypes.interface.yaml', ], + output: [ 'SupportedMessageTypes.md' ], + command: [ + sdbuspp_gen_meson_prog, '--command', 'markdown', + '--output', meson.current_build_dir(), + '--tool', sdbusplusplus_prog, -+ '--directory', meson.source_root(), ++ '--directory', meson.current_source_dir() / '../../../../yaml', + 'xyz/openbmc_project/MCTP/SupportedMessageTypes', + ], -+ build_by_default: true, +) -+ -diff --git a/gen/xyz/openbmc_project/meson.build b/gen/xyz/openbmc_project/meson.build -index 3c4750f..e4372b0 100644 ---- a/gen/xyz/openbmc_project/meson.build -+++ b/gen/xyz/openbmc_project/meson.build -@@ -68,6 +68,7 @@ generated_others += custom_target( - subdir('Ipmi') - subdir('Led') - subdir('Logging') -+subdir('MCTP') - subdir('Memory') - subdir('Network') - subdir('Nvme') -- 2.17.1 |