Skip to content

Commit

Permalink
scripts: build-tools: Add option to build alsa tools
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
lrgirdwo committed Mar 5, 2025
1 parent 9534917 commit fe7f7df
Showing 1 changed file with 9 additions and 2 deletions.
11 changes: 9 additions & 2 deletions scripts/build-tools.sh
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ Attention: the list of selected shortcuts below is _not_ exhaustive. To
build _everything_ don't select any particular target; this will build
CMake's default target "ALL".
usage: $0 [-c|-f|-h|-l|-p|-t|-T|-X|-Y]
usage: $0 [-c|-f|-h|-l|-p|-t|-T|-X|-Y|-A]
-h Display help
-c Rebuild ctl/
Expand All @@ -26,6 +26,7 @@ usage: $0 [-c|-f|-h|-l|-p|-t|-T|-X|-Y]
-X Rebuild topology1 only
-Y Rebuild topology2 only
-t Rebuild test/topology/ (or tools/test/topology/tplg-build.sh directly)
-A Clone and rebuild local ALSA lib and utils.
-C No build, only CMake re-configuration. Shows CMake targets.
EOFUSAGE
Expand Down Expand Up @@ -106,6 +107,7 @@ main()
fi

DO_BUILD_ctl=false
DO_BUILD_alsa=false
DO_BUILD_logger=false
DO_BUILD_probes=false
DO_BUILD_tests=false
Expand All @@ -118,7 +120,7 @@ main()

# eval is a sometimes necessary evil
# shellcheck disable=SC2034
while getopts "cfhlptTCXY" OPTION; do
while getopts "cfhlptTCXYA" OPTION; do
case "$OPTION" in
c) DO_BUILD_ctl=true ;;
l) DO_BUILD_logger=true ;;
Expand All @@ -128,12 +130,17 @@ main()
X) DO_BUILD_topologies1=true ;;
Y) DO_BUILD_topologies2=true ;;
C) CMAKE_ONLY=true ;;
A) DO_BUILD_alsa=true ;;
h) print_usage; exit 1;;
*) print_usage; exit 1;;
esac
done
shift "$((OPTIND - 1))"

if "$DO_BUILD_alsa"; then
$SOF_TOP/scripts/build-alsa-tools.sh
fi

if "$CMAKE_ONLY"; then
reconfigure_build
print_build_info
Expand Down

0 comments on commit fe7f7df

Please sign in to comment.