Skip to content

Commit ba43546

Browse files
committed
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 <[email protected]>
1 parent c6a6e17 commit ba43546

File tree

1 file changed

+7
-6
lines changed

1 file changed

+7
-6
lines changed

scripts/sof-testbench-build-profile.sh

+7-6
Original file line numberDiff line numberDiff line change
@@ -46,28 +46,29 @@ shift $((OPTIND-1))
4646
SCRIPTS=$SOF_WORKSPACE/sof/scripts
4747
mkdir -p "$PDIR"
4848
"$SCRIPTS"/rebuild-testbench.sh -p "$PLATFORM"
49+
HELPER="$SCRIPTS"/sof-testbench-helper.sh
4950

5051
echo "Profiler reports are stored to $PDIR"
5152

5253
# Run sof-hda-generic.tplg playback
5354
echo "Profiling sof-hda-generic.tplg ..."
54-
sof-testbench-helper.sh -x -t production/sof-hda-generic.tplg -n 1,2 \
55-
-p "$PDIR/profile-$PLATFORM-generic.txt" > "$PDIR/log-$PLATFORM-generic.txt"
55+
$HELPER -x -t production/sof-hda-generic.tplg -n 1,2 \
56+
-p "$PDIR/profile-$PLATFORM-generic.txt" > "$PDIR/log-$PLATFORM-generic.txt"
5657

5758
# Run sof-hda-benchmark-generic.tplg playback
5859
echo "Profiling sof-hda-benchmark-generic.tplg ..."
59-
sof-testbench-helper.sh -x -t development/sof-hda-benchmark-generic.tplg -n 1,2,3 \
60-
-p "$PDIR/profile-$PLATFORM-benchmark.txt" > "$PDIR/log-$PLATFORM-benchmark.txt"
60+
$HELPER -x -t development/sof-hda-benchmark-generic.tplg -n 1,2,3 \
61+
-p "$PDIR/profile-$PLATFORM-benchmark.txt" > "$PDIR/log-$PLATFORM-benchmark.txt"
6162

6263
# Profile modules
6364
for mod in $MODULES_S32
6465
do
6566
echo "Profiling $mod ..."
66-
sof-testbench-helper.sh -x -m "$mod" -p "$PDIR/profile-$PLATFORM-$mod.txt" > "$PDIR/log-$PLATFORM-$mod.txt"
67+
$HELPER -x -m "$mod" -p "$PDIR/profile-$PLATFORM-$mod.txt" > "$PDIR/log-$PLATFORM-$mod.txt"
6768
done
6869

6970
for mod in $MODULES_S24
7071
do
7172
echo "Profiling $mod ..."
72-
sof-testbench-helper.sh -b 24 -x -m "$mod" -p "$PDIR/profile-$PLATFORM-$mod.txt" > "$PDIR/log-$PLATFORM-$mod.txt"
73+
$HELPER -b 24 -x -m "$mod" -p "$PDIR/profile-$PLATFORM-$mod.txt" > "$PDIR/log-$PLATFORM-$mod.txt"
7374
done

0 commit comments

Comments
 (0)