1*24226c4fSGopichand Paturi#!/usr/bin/env bash 2*24226c4fSGopichand Paturi# 3*24226c4fSGopichand Paturi# config: 234 25 4*24226c4fSGopichand Paturi# @brief: Collect PHAL devtree debug data 5*24226c4fSGopichand Paturi# 6*24226c4fSGopichand Paturi 7*24226c4fSGopichand Paturi# shellcheck disable=SC1091 8*24226c4fSGopichand Paturi. "$DREPORT_INCLUDE"/functions 9*24226c4fSGopichand Paturi 10*24226c4fSGopichand Paturi# shellcheck source=./power-target.sh 11*24226c4fSGopichand Paturisource /etc/profile.d/power-target.sh 12*24226c4fSGopichand Paturi 13*24226c4fSGopichand Paturi#export attributes list to attribute_list.txt 14*24226c4fSGopichand Paturiattributes="/usr/bin/attributes" 15*24226c4fSGopichand Paturifile_name="PHAL_devtree.txt" 16*24226c4fSGopichand Paturiattr_cmd="$attributes export" 17*24226c4fSGopichand Paturidesc="Attribute list" 18*24226c4fSGopichand Paturiif [ -x $attributes ]; then 19*24226c4fSGopichand Paturi add_cmd_output "$attr_cmd" "$file_name" "$desc" 20*24226c4fSGopichand Paturifi 21*24226c4fSGopichand Paturi#copy PHAL device tree file to dump 22*24226c4fSGopichand Paturifile_name="$PDBG_DTB" 23*24226c4fSGopichand Paturidesc="Device tree file" 24*24226c4fSGopichand Paturiif [ -e "$file_name" ]; then 25*24226c4fSGopichand Paturi add_copy_file "$file_name" "$desc" 26*24226c4fSGopichand Paturifi 27*24226c4fSGopichand Paturi 28*24226c4fSGopichand Paturi#copy PHAL export device tree to dump 29*24226c4fSGopichand Paturifile_name="/var/lib/phal/exportdevtree" 30*24226c4fSGopichand Paturidesc="Exported device tree file" 31*24226c4fSGopichand Paturiif [ -e "$file_name" ]; then 32*24226c4fSGopichand Paturi add_copy_file "$file_name" "$desc" 33*24226c4fSGopichand Paturifi 34*24226c4fSGopichand Paturi 35*24226c4fSGopichand Paturi#copy attribues info db to dump 36*24226c4fSGopichand Paturifile_name="$PDATA_INFODB" 37*24226c4fSGopichand Paturidesc="Attribute info db" 38*24226c4fSGopichand Paturiif [ -e "$file_name" ]; then 39*24226c4fSGopichand Paturi add_copy_file "$file_name" "$desc" 40*24226c4fSGopichand Paturifi 41