From d112f2d24bb2367373026ccf2709581b6e341593 Mon Sep 17 00:00:00 2001 From: Laurentiu Mihalcea Date: Wed, 13 Jul 2022 12:06:59 +0300 Subject: [PATCH] sof_{insert/remove}.sh: Add logging for default case Added some messages for the case in which VENDOR is not specified. The purpose of this change is to clearly show which removal/insertion script is running at some time. Before this change, the output of the insertion/removal scripts made it look like it was one big insertion/removal script containing all the modules which is clearly not the case. Signed-off-by: Laurentiu Mihalcea --- tools/kmod/sof_insert.sh | 6 ++++++ tools/kmod/sof_remove.sh | 3 +++ 2 files changed, 9 insertions(+) diff --git a/tools/kmod/sof_insert.sh b/tools/kmod/sof_insert.sh index 7c836f0b..55e40bea 100755 --- a/tools/kmod/sof_insert.sh +++ b/tools/kmod/sof_insert.sh @@ -4,6 +4,9 @@ TOPDIR=$(cd "$(dirname "${BASH_SOURCE[0]}")/../.." && pwd) +# shellcheck source=case-lib/lib.sh +source "$TOPDIR"/case-lib/lib.sh + # shellcheck source=tools/kmod/lib.sh source "$TOPDIR"/tools/kmod/lib.sh @@ -22,7 +25,10 @@ main() return $? fi + dlogi "VENDOR not specified. Running all insertion subscripts." + for insert_subscript in "$TOPDIR"/tools/kmod/sof_insert_*.sh; do + dlogi "Currently running: $insert_subscript" "$insert_subscript" done } diff --git a/tools/kmod/sof_remove.sh b/tools/kmod/sof_remove.sh index 5bc93e87..fab61ac7 100755 --- a/tools/kmod/sof_remove.sh +++ b/tools/kmod/sof_remove.sh @@ -36,7 +36,10 @@ main() return $? fi + dlogi "VENDOR not specified. Running all removal subscripts." + for remove_subscript in "$TOPDIR"/tools/kmod/sof_remove_*.sh; do + dlogi "Currently running: $remove_subscript" "$remove_subscript" || true done }