Skip to content

Commit 8a70174

Browse files
lrgirdwokv2019i
authored andcommitted
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> (cherry picked from commit cee63f4) Signed-off-by: Kai Vehmanen <kai.vehmanen@linux.intel.com>
1 parent 91c8881 commit 8a70174

1 file changed

Lines changed: 9 additions & 2 deletions

File tree

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 below is _not_ exhaustive. To re-build _everything_
1616
from scratch don't select any particular target; this will build the
1717
CMake's default target "ALL".
1818
19-
usage: $0 [-c|-f|-h|-l|-p|-t|-T]
19+
usage: $0 [-c|-f|-h|-l|-p|-t|-T|-A]
2020
-h Display help
2121
2222
-c Rebuild ctl/
@@ -25,6 +25,7 @@ usage: $0 [-c|-f|-h|-l|-p|-t|-T]
2525
-p Rebuild probes/
2626
-T Rebuild topology/ (not topology/development/! Use ALL)
2727
-t Rebuild test/topology/ (or tools/test/topology/tplg-build.sh directly)
28+
-A Clone and rebuild local ALSA lib and utils.
2829
2930
-C No build, only CMake re-configuration. Shows CMake targets.
3031
EOFUSAGE
@@ -101,6 +102,7 @@ main()
101102

102103
DO_BUILD_ctl=false
103104
DO_BUILD_fuzzer=false
105+
DO_BUILD_alsa=false
104106
DO_BUILD_logger=false
105107
DO_BUILD_probes=false
106108
DO_BUILD_tests=false
@@ -109,7 +111,7 @@ main()
109111

110112
# eval is a sometimes necessary evil
111113
# shellcheck disable=SC2034
112-
while getopts "cfhlptTC" OPTION; do
114+
while getopts "cfhlptTCA" OPTION; do
113115
case "$OPTION" in
114116
c) DO_BUILD_ctl=true ;;
115117
f) DO_BUILD_fuzzer=true ;;
@@ -118,13 +120,18 @@ main()
118120
t) DO_BUILD_tests=true ;;
119121
T) DO_BUILD_topologies=true ;;
120122
C) CMAKE_ONLY=true ;;
123+
A) DO_BUILD_alsa=true ;;
121124
h) print_usage; exit 1;;
122125
*) print_usage; exit 1;;
123126
esac
124127
done
125128
shift "$((OPTIND - 1))"
126129
reconfigure_build
127130

131+
if "$DO_BUILD_alsa"; then
132+
$SOF_TOP/scripts/build-alsa-tools.sh
133+
fi
134+
128135
if "$CMAKE_ONLY"; then
129136
print_build_info
130137
exit

0 commit comments

Comments
 (0)