We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 1658a9c commit 93eb9bbCopy full SHA for 93eb9bb
scripts/sof-testbench-helper.sh
@@ -32,8 +32,11 @@ usage() {
32
}
33
34
if [ -z "${SOF_WORKSPACE}" ]; then
35
- echo "Error: environment variable SOF_WORKSPACE need to be set to top level sof directory"
36
- exit 1
+ # fallback to the script directory default path
+ SCRIPT_DIR=$(cd "$(dirname "$0")" && pwd)
37
+ SOF_REPO=$(dirname "$SCRIPT_DIR")
38
+ SOF_WORKSPACE="$SOF_REPO/../"
39
+ echo "Using default SOF environment at $SOF_WORKSPACE"
40
fi
41
42
OUTWAV=
0 commit comments