Skip to content

Commit cfc661d

Browse files
committed
scripts: build-tools: Add option to build alsa tools
Add a command line option to rebuild the ALSA libraries and tools required to build all topologies. Signed-off-by: Liam Girdwood <liam.r.girdwood@linux.intel.com>
1 parent bdfad4e commit cfc661d

File tree

1 file changed

+9
-2
lines changed

1 file changed

+9
-2
lines changed

scripts/build-tools.sh

Lines changed: 9 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ Attention: the list of selected shortcuts below is _not_ exhaustive. To
1616
build _everything_ don't select any particular target; this will build
1717
CMake's default target "ALL".
1818
19-
usage: $0 [-c|-f|-h|-l|-p|-t|-T|-X|-Y]
19+
usage: $0 [-c|-f|-h|-l|-p|-t|-T|-X|-Y|-A]
2020
-h Display help
2121
2222
-c Rebuild ctl/
@@ -26,6 +26,7 @@ usage: $0 [-c|-f|-h|-l|-p|-t|-T|-X|-Y]
2626
-X Rebuild topology1 only
2727
-Y Rebuild topology2 only
2828
-t Rebuild test/topology/ (or tools/test/topology/tplg-build.sh directly)
29+
-A Clone and rebuild local ALSA lib and utils.
2930
3031
-C No build, only CMake re-configuration. Shows CMake targets.
3132
EOFUSAGE
@@ -106,6 +107,7 @@ main()
106107
fi
107108

108109
DO_BUILD_ctl=false
110+
DO_BUILD_alsa=false
109111
DO_BUILD_logger=false
110112
DO_BUILD_probes=false
111113
DO_BUILD_tests=false
@@ -118,7 +120,7 @@ main()
118120

119121
# eval is a sometimes necessary evil
120122
# shellcheck disable=SC2034
121-
while getopts "cfhlptTCXY" OPTION; do
123+
while getopts "cfhlptTCXYA" OPTION; do
122124
case "$OPTION" in
123125
c) DO_BUILD_ctl=true ;;
124126
l) DO_BUILD_logger=true ;;
@@ -128,12 +130,17 @@ main()
128130
X) DO_BUILD_topologies1=true ;;
129131
Y) DO_BUILD_topologies2=true ;;
130132
C) CMAKE_ONLY=true ;;
133+
A) DO_BUILD_alsa=true ;;
131134
h) print_usage; exit 1;;
132135
*) print_usage; exit 1;;
133136
esac
134137
done
135138
shift "$((OPTIND - 1))"
136139

140+
if "$DO_BUILD_alsa"; then
141+
$SOF_TOP/scripts/build-alsa-tools.sh
142+
fi
143+
137144
if "$CMAKE_ONLY"; then
138145
reconfigure_build
139146
print_build_info

0 commit comments

Comments
 (0)