From 1aa101e62b4ea08a2a9dccb212930ef029359a3e Mon Sep 17 00:00:00 2001 From: Keqiao Zhang Date: Tue, 13 Jun 2023 14:51:01 +0800 Subject: [PATCH] lib.sh: mtrace doesn't require ldc file on IPC4_Zephyr platforms We use mtrace on IPC4 Zephyr platforms and it doesn't require ldc file. So add an exception for IPC4 Zephyr platforms before the ldc checking. Signed-off-by: Keqiao Zhang --- case-lib/lib.sh | 13 ++++++++----- 1 file changed, 8 insertions(+), 5 deletions(-) diff --git a/case-lib/lib.sh b/case-lib/lib.sh index 92ae4795..a91846d7 100644 --- a/case-lib/lib.sh +++ b/case-lib/lib.sh @@ -740,11 +740,14 @@ logger_disabled() { local ldcFile # Some firmware/OS configurations do not support logging. - ldcFile=$(find_ldc_file) || { - dlogi '.ldc dictionary file not found, SOF logs collection disabled' - return 0 # 0 is 'true' - } - + # mtrace doesn't require ldc file on IPC4-Zephyr platforms. + if ! is_ipc4; then + ldcFile=$(find_ldc_file) || { + dlogi '.ldc dictionary file not found, SOF logs collection disabled' + return 0 # 0 is 'true' + } + fi + # Disable logging when available... if [ ${OPT_VAL['s']} -eq 0 ]; then return 0