Move dump scripts from phosphor-debug-collector
This commit is intended to move the dump collection
scripts from openbmc/phosphor-debug-collector repository.
Following are the scripts that are pulled from the
specified paths of openbmc/phosphor-debug-collector.
1. tools/dreport.d/ibm.d/package
2. tools/dreport.d/ibm.d/plugins.d/pels
3. tools/dreport.d/ibm.d/plugins.d/badpel
4. tools/dreport.d/ibm.d/plugins.d/vpd_data
5. tools/dreport.d/openpower.d/plugins.d/cfam
6. tools/dreport.d/openpower.d/plugins.d/dumpfilelist
7. tools/dreport.d/openpower.d/plugins.d/guardlist
8. tools/dreport.d/openpower.d/plugins.d/obmcconsole1
9. tools/dreport.d/openpower.d/plugins.d/occ
10.tools/dreport.d/openpower.d/plugins.d/phal_devtree
Also the following 3 patches have been applied.
1.https://gerrit.openbmc.org/c/openbmc/phosphor-debug-collector/+/56428
2.https://gerrit.openbmc.org/c/openbmc/phosphor-debug-collector/+/52436
3.https://gerrit.openbmc.org/c/openbmc/phosphor-debug-collector/+/47917
Also, added meson changes to install the scripts.
Test:
Verified that the scripts are getting installed correctly on BMC.
Change-Id: Iaddf909efaa138db06c877e5ca6a80608feb5baf
Signed-off-by: Gopichand Paturi <gopichandpaturi@gmail.com>
diff --git a/dump/meson.build b/dump/meson.build
index 2640c7c..774f8e2 100644
--- a/dump/meson.build
+++ b/dump/meson.build
@@ -50,8 +50,10 @@
bindir = get_option('bindir')
dreport_include_dir = join_paths(get_option('datadir'), 'dreport.d/include.d')
+dreport_plugins_dir = join_paths(get_option('datadir'), 'dreport.d/plugins.d')
scripts_to_install = []
+plugins_to_install = []
include_scripts = []
subdir('tools')
@@ -64,11 +66,17 @@
endif
# Install collected include scripts if any
+if plugins_to_install.length() > 0
+ install_data(plugins_to_install,
+ install_dir: dreport_plugins_dir,
+ install_mode: 'rwxr-xr-x'
+ )
+endif
+
+# Install collected include scripts if any
if include_scripts.length() > 0
install_data(include_scripts,
install_dir: dreport_include_dir,
install_mode: 'rwxr-xr-x'
)
endif
-
-