From e2c1b179047c478a413eb13269093aef3e97829f Mon Sep 17 00:00:00 2001 From: Katie Roberts-Hoffman Date: Tue, 20 Sep 2011 09:53:02 -0700 Subject: [PATCH] Add HWID information for ARM via crossystem Added HWID query via crossystem if not available via ACPI. This populates the hwclass field for crash reports. BUG=None TEST=Manually confirmed ARM platform crash reports contains correct hwclass and manually confirmed ZGB report contains previously reported hwclas Change-Id: I1216ed13c0b04d829313103d3bb736f5227a772b Reviewed-on: http://gerrit.chromium.org/gerrit/7982 Reviewed-by: Doug Anderson Reviewed-by: Micah Catlin Commit-Ready: Katie Roberts-Hoffman Tested-by: Katie Roberts-Hoffman --- crash_reporter/crash_sender | 2 ++ 1 file changed, 2 insertions(+) diff --git a/crash_reporter/crash_sender b/crash_reporter/crash_sender index 21bd48846..a7a2fc46e 100644 --- a/crash_reporter/crash_sender +++ b/crash_reporter/crash_sender @@ -196,6 +196,8 @@ get_board() { get_hardware_class() { if [ -r "${HWCLASS_PATH}" ]; then cat "${HWCLASS_PATH}" + elif crossystem hwid > /dev/null 2>&1; then + echo "$(crossystem hwid)" else echo "undefined" fi