Skip to content

Commit bc11429

Browse files
authored
Merge branch 'thesofproject:main' into main
2 parents a661d10 + b1c979d commit bc11429

39 files changed

Lines changed: 6382 additions & 5171 deletions

app/boards/intel_adsp_ace30_ptl.conf

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -7,12 +7,8 @@ CONFIG_IPC4_BASE_FW_INTEL=y
77

88
# SOF / audio pipeline and module settings
99
CONFIG_MM_DRV=y
10-
CONFIG_COMP_ARIA=m
1110
CONFIG_COMP_CHAIN_DMA=y
12-
CONFIG_COMP_DRC=m
1311
CONFIG_COMP_KPB=y
14-
CONFIG_COMP_CROSSOVER=m
15-
CONFIG_COMP_MULTIBAND_DRC=m
1612
CONFIG_COMP_TESTER=m
1713
CONFIG_COMP_SRC_IPC4_FULL_MATRIX=y
1814
CONFIG_COMP_UP_DOWN_MIXER=y

scripts/gen-doc.sh

Lines changed: 26 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -6,8 +6,25 @@
66
# According to instructions:
77
# https://thesofproject.github.io/latest/howtos/process/docbuild.html
88

9-
# fail immediately on any errors
10-
set -e
9+
# this needs to run from the Zephyr python virtual environment
10+
# so that the python packages are available (and more up to date than
11+
# the system packages).
12+
13+
# check if Zephyr environment is set up
14+
if [ ! -z "$ZEPHYR_BASE" ]; then
15+
VENV_DIR="$ZEPHYR_BASE/.venv"
16+
echo "Using Zephyr environment at $ZEPHYR_BASE"
17+
elif [ ! -z "$SOF_WORKSPACE" ]; then
18+
VENV_DIR="$SOF_WORKSPACE/zephyr/.venv"
19+
echo "Using SOF/Zephyr environment at $SOF_WORKSPACE"
20+
else
21+
# fallback to the zephyr default from the getting started guide
22+
VENV_DIR="$HOME/zephyrproject/.venv"
23+
echo "Using default Zephyr environment at $VENV_DIR"
24+
fi
25+
26+
# start the virtual environment
27+
source ${VENV_DIR}/bin/activate
1128

1229
function print_usage()
1330
{
@@ -21,11 +38,11 @@ function print_usage()
2138
# make it runnable from any location
2239
# user shouldn't be confused from which dir this script has to be run
2340
SCRIPT_DIR=$(cd "$(dirname "$0")" && pwd)
24-
2541
# expected paths of repositories needed for documentation process
2642
SOF_REPO=$(dirname "$SCRIPT_DIR")
2743
DOCS_REPO="$(dirname "$SOF_REPO")/sof-docs"
2844
PUBLISH_REPO="$(dirname "$SOF_REPO")/thesofproject.github.io"
45+
BUILD_DIR="$(dirname "$SOF_REPO")/build-sof-docs"
2946

3047
# parse arguments
3148
DO_BUILD=false
@@ -73,20 +90,19 @@ then
7390
fi
7491
fi
7592

76-
cd "$SOF_REPO/doc"
77-
7893
if "$DO_CLEAN"
7994
then
8095
echo "Cleaning $SOF_REPO"
81-
cmake .
96+
cd ${BUILD_DIR}
8297
make clean
8398
make doc-clean
8499
fi
85100

86101
if "$DO_BUILD"
87102
then
88103
echo "Building $SOF_REPO"
89-
cmake .
104+
cd "$SOF_REPO/doc"
105+
cmake -S . -B ${BUILD_DIR}
90106
make doc
91107
fi
92108

@@ -133,3 +149,6 @@ then
133149
cd "$DOCS_REPO"
134150
make publish
135151
fi
152+
153+
# cleanup
154+
deactivate

scripts/vscode-task.sh

Lines changed: 32 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,32 @@
1+
#!/bin/bash
2+
# SPDX-License-Identifier: BSD-3-Clause
3+
# Copyright(c) 2025 Intel Corporation. All rights reserved.
4+
5+
# Simple helper script for vscode task support.
6+
# Current vscode tasks have difficulty executing multiple commands.
7+
8+
# check if Zephyr environment is set up
9+
if [ ! -z "$ZEPHYR_BASE" ]; then
10+
VENV_DIR="$ZEPHYR_BASE/.venv"
11+
echo "Using Zephyr environment at $ZEPHYR_BASE"
12+
elif [ ! -z "$SOF_WORKSPACE" ]; then
13+
VENV_DIR="$SOF_WORKSPACE/zephyr/.venv"
14+
echo "Using SOF/Zephyr environment at $SOF_WORKSPACE"
15+
else
16+
# fallback to the zephyr default from the getting started guide
17+
VENV_DIR="$HOME/zephyrproject/.venv"
18+
echo "Using default Zephyr environment at $VENV_DIR"
19+
fi
20+
21+
# start the virtual environment
22+
source ${VENV_DIR}/bin/activate
23+
24+
# The vscode workspace is the parent directory of the SOF Firmware directory
25+
# we need to cd into sof to run the zephyr build script
26+
cd sof
27+
28+
# run the zephyr script
29+
./scripts/xtensa-build-zephyr.py "$@"
30+
31+
# cleanup
32+
deactivate

scripts/xtensa-build-zephyr.py

Lines changed: 12 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -372,6 +372,8 @@ def parse_args():
372372
help="""Do not create a tar file of the installed firmware files under build-sof-staging.""")
373373
parser.add_argument("--version", required=False, action="store_true",
374374
help="Prints version of this script.")
375+
parser.add_argument("-m", "--menuconfig", required=False, action="store_true",
376+
help="Build menuconfig for target")
375377

376378
args = parser.parse_args()
377379

@@ -854,7 +856,10 @@ def build_platforms():
854856
PLAT_CONFIG = platform_dict["PLAT_CONFIG"]
855857
build_cmd = ["west"]
856858
build_cmd += ["-v"] * args.verbose
857-
build_cmd += ["build", "--build-dir", platform_build_dir_name]
859+
if args.menuconfig:
860+
build_cmd += ["build", "-t", "menuconfig", "--build-dir", platform_build_dir_name]
861+
else:
862+
build_cmd += ["build", "--build-dir", platform_build_dir_name]
858863
source_dir = pathlib.Path(SOF_TOP, "app")
859864
build_cmd += ["--board", PLAT_CONFIG, str(source_dir)]
860865
if args.pristine:
@@ -917,6 +922,10 @@ def build_platforms():
917922
else: # unknown failure
918923
raise cpe
919924

925+
# no output to display if building menuconfig
926+
if args.menuconfig:
927+
return
928+
920929
# reproducible-zephyr.ri is less useful now that show_installed_files() shows
921930
# checksums too. However: - it's still useful when only the .ri file is
922931
# available (no build logs for the other image), - it makes sure sof_ri_info.py
@@ -1307,6 +1316,8 @@ def main():
13071316

13081317
build_rimage()
13091318
build_platforms()
1319+
if args.menuconfig:
1320+
return
13101321
if not args.no_tarball:
13111322
create_tarball()
13121323
show_installed_files()

src/audio/aria/Kconfig

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@
22

33
config COMP_ARIA
44
tristate "ARIA component"
5+
default m if LIBRARY_DEFAULT_MODULAR
56
default n
67
depends on IPC_MAJOR_4
78
help

src/audio/crossover/Kconfig

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,7 @@ config COMP_CROSSOVER
44
tristate "Crossover Filter component"
55
select COMP_BLOB
66
select MATH_IIR_DF2T
7+
default m if LIBRARY_DEFAULT_MODULAR
78
default n
89
help
910
Select for Crossover Filter component. A crossover can be used to

src/audio/dcblock/Kconfig

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@
22

33
config COMP_DCBLOCK
44
tristate "DC Blocking Filter component"
5+
default m if LIBRARY_DEFAULT_MODULAR
56
default y
67
help
78
Select for DC Blocking Filter component. This component filters out

src/audio/drc/Kconfig

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,7 @@ config COMP_DRC
99
select NUMBERS_NORM
1010
select MATH_EXP
1111
select COMP_BLOB
12+
default m if LIBRARY_DEFAULT_MODULAR
1213
default n
1314
help
1415
Select for Dynamic Range Compressor (DRC) component. A DRC can be used

src/audio/eq_iir/tune/sof_example_iir_eq.m

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -166,7 +166,7 @@ function sof_example_iir_eq()
166166

167167
fs_list = [16e3 48e3];
168168
fc_list = [20 30 40 50 100];
169-
g_list = [0 20];
169+
g_list = [0 20 30 40];
170170
for i = 1:length(fs_list)
171171
for j = 1:length(fc_list);
172172
for k = 1:length(g_list);

src/audio/mfcc/Kconfig

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,7 @@ config COMP_MFCC
1414
select NATURAL_LOGARITHM_FIXED
1515
select NUMBERS_NORM
1616
select SQRT_FIXED
17+
default m if LIBRARY_DEFAULT_MODULAR
1718
default y
1819
help
1920
This option enables build of a Mel-frequency cepstral coefficients

0 commit comments

Comments
 (0)