124226c4fSGopichand Paturi#!/usr/bin/env bash 224226c4fSGopichand Paturi# 324226c4fSGopichand Paturi# config: 234 25 424226c4fSGopichand Paturi# @brief: Collect PHAL devtree debug data 524226c4fSGopichand Paturi# 624226c4fSGopichand Paturi 724226c4fSGopichand Paturi# shellcheck disable=SC1091 824226c4fSGopichand Paturi. "$DREPORT_INCLUDE"/functions 924226c4fSGopichand Paturi 1024226c4fSGopichand Paturi# shellcheck source=./power-target.sh 1124226c4fSGopichand Paturisource /etc/profile.d/power-target.sh 1224226c4fSGopichand Paturi 1324226c4fSGopichand Paturi#export attributes list to attribute_list.txt 1424226c4fSGopichand Paturiattributes="/usr/bin/attributes" 1524226c4fSGopichand Paturifile_name="PHAL_devtree.txt" 1624226c4fSGopichand Paturiattr_cmd="$attributes export" 1724226c4fSGopichand Paturidesc="Attribute list" 1824226c4fSGopichand Paturiif [ -x $attributes ]; then 1924226c4fSGopichand Paturi add_cmd_output "$attr_cmd" "$file_name" "$desc" 2024226c4fSGopichand Paturifi 2124226c4fSGopichand Paturi#copy PHAL device tree file to dump 2224226c4fSGopichand Paturifile_name="$PDBG_DTB" 2324226c4fSGopichand Paturidesc="Device tree file" 2424226c4fSGopichand Paturiif [ -e "$file_name" ]; then 2524226c4fSGopichand Paturi add_copy_file "$file_name" "$desc" 2624226c4fSGopichand Paturifi 2724226c4fSGopichand Paturi 2824226c4fSGopichand Paturi#copy PHAL export device tree to dump 2924226c4fSGopichand Paturifile_name="/var/lib/phal/exportdevtree" 3024226c4fSGopichand Paturidesc="Exported device tree file" 3124226c4fSGopichand Paturiif [ -e "$file_name" ]; then 3224226c4fSGopichand Paturi add_copy_file "$file_name" "$desc" 3324226c4fSGopichand Paturifi 3424226c4fSGopichand Paturi 35*eb46252dSManojkiran Eda#copy attributes info db to dump 3624226c4fSGopichand Paturifile_name="$PDATA_INFODB" 3724226c4fSGopichand Paturidesc="Attribute info db" 3824226c4fSGopichand Paturiif [ -e "$file_name" ]; then 3924226c4fSGopichand Paturi add_copy_file "$file_name" "$desc" 4024226c4fSGopichand Paturifi 41