1#!/usr/bin/env bash
2#
3# config: 234 25
4# @brief: Collect PHAL devtree debug data
5#
6
7. $DREPORT_INCLUDE/functions
8
9attributes="/usr/bin/attributes"
10attr_list_file_name="PHAL_devtree.txt"
11
12#export attributes list to attribute_list.txt
13if [ -x $attributes ]; then
14    add_cmd_output "$attributes export" "$attr_list_file_name" "Attribute list"
15fi
16
17#copy PHAL device tree file to dump
18devtree_file_name="/media/hostfw/running/DEVTREE"
19if [ -f "$devtree_file_name" ]; then
20    add_copy_file "$devtree_file_name" "device tree"
21fi
22
23
24#copy PHAL export device tree to dump
25exp_dev_tree="/var/lib/phal/exportdevtree"
26if [ -f "$exp_dev_tree" ]; then
27    add_copy_file "$exp_dev_tree" "export device tree"
28fi
29
30#copy attribues info db to dump
31attr_info_db="/usr/share/pdata/attributes_info.db"
32if [ -f "$attr_info_db" ]; then
33    add_copy_file "$attr_info_db" "attribute info db"
34fi
35