From ba43546d31f06c1829ec9424e00979053d637672 Mon Sep 17 00:00:00 2001 From: Seppo Ingalsuo Date: Fri, 24 Jan 2025 11:53:51 +0200 Subject: [PATCH] Scripts: Fix path in script sof-testbench-build-profile.sh The script sof-testbench-helper.sh is not found if it has not been set to user's path. Not finding it fails the profiler runs. Signed-off-by: Seppo Ingalsuo --- scripts/sof-testbench-build-profile.sh | 13 +++++++------ 1 file changed, 7 insertions(+), 6 deletions(-) diff --git a/scripts/sof-testbench-build-profile.sh b/scripts/sof-testbench-build-profile.sh index ca92f42a6f0d..342f0710ff23 100755 --- a/scripts/sof-testbench-build-profile.sh +++ b/scripts/sof-testbench-build-profile.sh @@ -46,28 +46,29 @@ shift $((OPTIND-1)) SCRIPTS=$SOF_WORKSPACE/sof/scripts mkdir -p "$PDIR" "$SCRIPTS"/rebuild-testbench.sh -p "$PLATFORM" +HELPER="$SCRIPTS"/sof-testbench-helper.sh echo "Profiler reports are stored to $PDIR" # Run sof-hda-generic.tplg playback echo "Profiling sof-hda-generic.tplg ..." -sof-testbench-helper.sh -x -t production/sof-hda-generic.tplg -n 1,2 \ - -p "$PDIR/profile-$PLATFORM-generic.txt" > "$PDIR/log-$PLATFORM-generic.txt" +$HELPER -x -t production/sof-hda-generic.tplg -n 1,2 \ + -p "$PDIR/profile-$PLATFORM-generic.txt" > "$PDIR/log-$PLATFORM-generic.txt" # Run sof-hda-benchmark-generic.tplg playback echo "Profiling sof-hda-benchmark-generic.tplg ..." -sof-testbench-helper.sh -x -t development/sof-hda-benchmark-generic.tplg -n 1,2,3 \ - -p "$PDIR/profile-$PLATFORM-benchmark.txt" > "$PDIR/log-$PLATFORM-benchmark.txt" +$HELPER -x -t development/sof-hda-benchmark-generic.tplg -n 1,2,3 \ + -p "$PDIR/profile-$PLATFORM-benchmark.txt" > "$PDIR/log-$PLATFORM-benchmark.txt" # Profile modules for mod in $MODULES_S32 do echo "Profiling $mod ..." - sof-testbench-helper.sh -x -m "$mod" -p "$PDIR/profile-$PLATFORM-$mod.txt" > "$PDIR/log-$PLATFORM-$mod.txt" + $HELPER -x -m "$mod" -p "$PDIR/profile-$PLATFORM-$mod.txt" > "$PDIR/log-$PLATFORM-$mod.txt" done for mod in $MODULES_S24 do echo "Profiling $mod ..." - sof-testbench-helper.sh -b 24 -x -m "$mod" -p "$PDIR/profile-$PLATFORM-$mod.txt" > "$PDIR/log-$PLATFORM-$mod.txt" + $HELPER -b 24 -x -m "$mod" -p "$PDIR/profile-$PLATFORM-$mod.txt" > "$PDIR/log-$PLATFORM-$mod.txt" done