Skip to content

Commit a6b900f

Browse files
authored
Merge branch 'main' into add_eap_nxp
Signed-off-by: Daniel Baluta <daniel.baluta@nxp.com>
2 parents 141bfed + f0f8549 commit a6b900f

File tree

850 files changed

+43795
-10936
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

850 files changed

+43795
-10936
lines changed

.github/workflows/installer.yml

Lines changed: 0 additions & 63 deletions
This file was deleted.

.github/workflows/pull-request.yml

Lines changed: 0 additions & 38 deletions
Original file line numberDiff line numberDiff line change
@@ -63,44 +63,6 @@ jobs:
6363
ninja -C docbuild -v doc
6464

6565

66-
# This is unfortunately a mix of sof-docs/.github/ + the previous job
67-
# above, duplicating a bit of both: please keep in sync with both. We
68-
# build sof-docs here too because waiting for sof-docs CI to find
69-
# regressions introduced in sof.git is very time-consuming, see
70-
# example in
71-
# https://github.com/thesofproject/sof/pull/5731#issuecomment-1175630147
72-
sof-docs:
73-
runs-on: ubuntu-20.04 # sof-docs is still stuck to this for now
74-
75-
steps:
76-
- uses: actions/checkout@v4
77-
with:
78-
filter: 'tree:0'
79-
80-
- name: apt-get update
81-
run: sudo apt-get update
82-
83-
- name: apt-get install
84-
run: sudo apt-get -y install
85-
doxygen make default-jre graphviz cmake ninja-build
86-
87-
- name: doxygen
88-
run: cmake -GNinja -S doc/ -B doxybuild/ && ninja -C doxybuild/ -v doc
89-
90-
# Nested git clone, this is fine
91-
- name: clone sof-docs
92-
run: git clone https://github.com/thesofproject/sof-docs sof-docs/
93-
94-
- name: PATH += .local/bin
95-
run: echo "$HOME/.local/bin" >> $GITHUB_PATH
96-
97-
- name: 'pip install -r sof-docs/scripts/requirements.txt'
98-
run: pip install -r sof-docs/scripts/requirements.txt
99-
100-
- name: build sof-docs
101-
run: make -C sof-docs/ html SOF_DOC_BUILD="$(pwd)"/doxybuild/
102-
103-
10466
# This is a bit redundant with the other jobs below and with the (much
10567
# faster!) installer[.yml] but it may differ in which platforms are
10668
# built. This makes sure platforms without any open-source toolchain

.github/workflows/sof-docs.yml

Lines changed: 57 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,57 @@
1+
---
2+
# yamllint disable-line rule:truthy
3+
on:
4+
push:
5+
branches:
6+
- 'main'
7+
- 'stable-**'
8+
- '**-stable'
9+
pull_request:
10+
branches:
11+
- 'main'
12+
- 'stable-**'
13+
- '**-stable'
14+
15+
# Allows you to run this workflow manually from the Actions tab
16+
workflow_dispatch:
17+
# Allows to call this forkflow from other workflows
18+
workflow_call:
19+
20+
jobs:
21+
22+
# This is unfortunately a mix of sof-docs/.github/ + pull-request.yml#doxygen
23+
# duplicating a bit of both: please keep in sync with both. We
24+
# build sof-docs here too because waiting for sof-docs CI to find
25+
# regressions introduced in sof.git is very time-consuming, see
26+
# example in
27+
# https://github.com/thesofproject/sof/pull/5731#issuecomment-1175630147
28+
sof-docs:
29+
runs-on: ubuntu-20.04 # sof-docs is still stuck to this for now
30+
31+
steps:
32+
- uses: actions/checkout@v4
33+
with:
34+
filter: 'tree:0'
35+
36+
- name: apt-get update
37+
run: sudo apt-get update
38+
39+
- name: apt-get install
40+
run: sudo apt-get -y install
41+
doxygen make default-jre graphviz cmake ninja-build
42+
43+
- name: doxygen
44+
run: cmake -GNinja -S doc/ -B doxybuild/ && ninja -C doxybuild/ -v doc
45+
46+
# Nested git clone, this is fine
47+
- name: clone sof-docs
48+
run: git clone https://github.com/thesofproject/sof-docs sof-docs/
49+
50+
- name: PATH += .local/bin
51+
run: echo "$HOME/.local/bin" >> $GITHUB_PATH
52+
53+
- name: 'pip install -r sof-docs/scripts/requirements.txt'
54+
run: pip install -r sof-docs/scripts/requirements.txt
55+
56+
- name: build sof-docs
57+
run: make -C sof-docs/ html SOF_DOC_BUILD="$(pwd)"/doxybuild/

.github/workflows/testbench.yml

Lines changed: 47 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -29,33 +29,63 @@ on:
2929
workflow_call:
3030

3131
jobs:
32-
33-
build-run:
34-
runs-on: ubuntu-22.04
32+
build-and-test:
33+
runs-on: ubuntu-24.10
3534

3635
steps:
37-
- uses: actions/checkout@v4
38-
with: {fetch-depth: 0, filter: 'tree:0'}
39-
40-
- name: docker
41-
run: docker pull thesofproject/sof && docker tag thesofproject/sof sof
36+
- name: Checkout SOF repository (PR source)
37+
uses: actions/checkout@v4
38+
with:
39+
path: sof
4240

4341
- name: apt get
4442
run: sudo apt-get update &&
45-
sudo apt-get -y install valgrind alsa-utils libasound2-dev ninja-build
46-
octave octave-signal
43+
sudo apt-get -y install valgrind ninja-build
44+
octave octave-signal automake autoconf libtool
45+
gettext linux-headers-6.11.0-8
46+
47+
- name: Build Alsa-lib
48+
run: |
49+
cd ${GITHUB_WORKSPACE}
50+
git clone https://github.com/thesofproject/alsa-lib.git
51+
cd alsa-lib
52+
git checkout df8f1cc1ec9d9ee15be5e2c23ad25b9389fd8766 -b build
53+
./gitcompile --prefix=${GITHUB_WORKSPACE}/tools
54+
make install
55+
56+
- name: Build Alsa-utils
57+
run: |
58+
cd ${GITHUB_WORKSPACE}
59+
git clone https://github.com/thesofproject/alsa-utils.git
60+
cd alsa-utils
61+
git checkout 0ffa105942a06cdfa98e5918b8dc82e3cac12792 -b build
62+
./gitcompile --prefix=${GITHUB_WORKSPACE}/tools \
63+
--with-alsa-prefix=${GITHUB_WORKSPACE}/tools \
64+
--with-alsa-inc-prefix=${GITHUB_WORKSPACE}/tools/include \
65+
--with-sysroot=${GITHUB_WORKSPACE}/tools \
66+
--with-udev-rules-dir=${GITHUB_WORKSPACE}/tools \
67+
PKG_CONFIG_PATH=${GITHUB_WORKSPACE}/tools \
68+
LDFLAGS=-L${GITHUB_WORKSPACE}/tools/lib \
69+
--disable-old-symbols \
70+
--enable-alsatopology \
71+
--with-asound-state-dir=${GITHUB_WORKSPACE}/tools/var/lib/alsa \
72+
--with-systemdsystemunitdir=${GITHUB_WORKSPACE}/tools/lib/systemd/system
73+
make install
4774
4875
# testbench needs some topologies.
4976
- name: build test topologies
50-
run: CMAKE_BUILD_TYPE=Release ./scripts/docker-run.sh
51-
./scripts/build-tools.sh -Y ||
77+
run: |
78+
CMAKE_BUILD_TYPE=Release ./sof/scripts/build-tools.sh -Y ||
5279
VERBOSE=1 NO_PROCESSORS=1 USE_XARGS=no
53-
CMAKE_BUILD_TYPE=Release ./scripts/docker-run.sh
54-
./scripts/build-tools.sh -Y
80+
CMAKE_BUILD_TYPE=Release ./sof/scripts/build-tools.sh -Y
5581
82+
# build testbench
5683
- name: build testbench
57-
run: ./scripts/rebuild-testbench.sh ||
58-
./scripts/rebuild-testbench.sh -j 1
84+
run: |
85+
./sof/scripts/rebuild-testbench.sh ||
86+
./sof/scripts/rebuild-testbench.sh -j 1
5987
88+
# run testbench
6089
- name: run testbench
61-
run: ./scripts/host-testbench.sh
90+
run: |
91+
./sof/scripts/host-testbench.sh

.github/workflows/zephyr.yml

Lines changed: 52 additions & 22 deletions
Original file line numberDiff line numberDiff line change
@@ -114,8 +114,10 @@ jobs:
114114
IPC_platforms: [
115115
# - IPC3 default
116116
imx8 imx8x imx8m imx8ulp,
117-
# - IPC4 default
118-
mtl, lnl, ptl,
117+
# - IPC4 default, released
118+
mtl lnl,
119+
# active development
120+
ptl,
119121
# Temporary testbed for Zephyr development.
120122
tgl tgl-h,
121123
]
@@ -126,7 +128,7 @@ jobs:
126128
# specify one extra -d combination without affecting the main matrix
127129
- build_opts: -d
128130
zephyr_revision: mnfst
129-
IPC_platforms: mtl
131+
IPC_platforms: lnl
130132

131133
# This is "duplication of effort" but it makes sure no one
132134
# breaks --all, see for instance #9262 and previous commit.
@@ -154,8 +156,8 @@ jobs:
154156
time west update --narrow --fetch-opt=--filter=tree:0
155157

156158
- name: select zephyr revision
159+
working-directory: ${{ github.workspace }}/workspace
157160
run: |
158-
cd workspace
159161
if [ 'mnfst' = '${{ matrix.zephyr_revision }}' ]; then
160162
rem_rev=$(git -C zephyr rev-parse HEAD)
161163
else
@@ -170,6 +172,11 @@ jobs:
170172
time west update --narrow --fetch-opt=--filter=tree:0
171173
fi
172174
175+
# Get some tags to fix `git describe` hence BUILD_VERSION, etc.
176+
# Keep in sync with build-windows below
177+
- name: Fetch tags for git describe
178+
working-directory: ${{ github.workspace }}/workspace/zephyr
179+
run: |
173180
# Because we used git tricks to speed things up, we now have two git
174181
# problems:
175182
#
@@ -179,19 +186,24 @@ jobs:
179186
# does not use --tags.
180187
#
181188
# 2. west fetches using the remote URL, not the remote name. So remote
182-
# branches (if any) are missing from --decorate below
183-
#
184-
# => an "empty" and quick fetch _with_ a refspec and the remote name fixes
185-
# both issues in no time.
186-
187-
cd zephyr
188-
time git fetch --filter=tree:0 "$(git remote |head -n1)" "$rem_rev":_branch_placeholder
189-
git branch -D _branch_placeholder
189+
# branches are missing from --decorate below. Cosmetic but annoying;
190+
# especially in the "zmain" case.
190191
191192
set -x
193+
# Fix problem 2. Do NOT assume anything about remote names: nothing is guaranteed.
194+
_zurl=$(west list -f '{url}' zephyr)
195+
# Use an ugly remote name to avoid a collision
196+
git remote add sof_zep_rem "$_zurl"
197+
time git fetch --filter=tree:0 sof_zep_rem "$rem_rev"
198+
# Fix problem 1. Indirectly fetches useless branches but is very quick thanks to
199+
# the --filter
200+
time git fetch --filter=tree:0 --tags sof_zep_rem
201+
192202
west list
193203
west status
194204
git log --oneline -n 5 --decorate --graph --no-abbrev-commit
205+
git describe --long --always --dirty
206+
git describe --long --always --dirty --tags
195207
196208
# Not strictly necessary but saves a lot of scrolling in the next step
197209
# Caching a 12G image is unfortunately not possible:
@@ -233,15 +245,18 @@ jobs:
233245
platforms: [
234246
# - IPC3 default
235247
imx8 imx8x imx8m imx8ulp,
236-
# - IPC4 default
237-
mtl,
248+
# - IPC4 default, released
249+
mtl lnl,
250+
# active development
251+
ptl,
252+
# legacy
238253
tgl tgl-h,
239254
]
240255
build_opts: [""]
241256
# Sparse matrices are complicated, see comments on Linux matrix above.
242257
include:
243258
- build_opts: -d
244-
platforms: mtl
259+
platforms: lnl
245260

246261

247262
steps:
@@ -327,12 +342,25 @@ jobs:
327342
west init -l sof
328343
west update --narrow --fetch-opt=--filter=tree:0
329344
330-
# Get some tags to fix `git describe`, see build-linux comments above.
331-
cd zephyr
345+
# Get some tags to fix `git describe` etc., see detailed build-linux comments above.
346+
- name: Fetch tags for git describe
347+
working-directory: ${{ github.workspace }}/workspace/zephyr
348+
# Keep in sync with build-linux above
349+
run: |
350+
# Set-PSDebug -Trace 2
332351
$_rev = "$(git rev-parse HEAD)"
333-
git fetch --filter=tree:0 "$(west list -f '{url}' zephyr)" "${_rev}:_branch_placeholder"
334-
git branch -D _branch_placeholder
352+
$_zurl = "$(west list -f '{url}' zephyr)"
353+
git remote add sof_zep_rem "${_zurl}"
354+
# Unlike Linux above, hardcode "main" for now. Will make no difference most
355+
# of the time but keeps this bit consistent with Linux, tested and ready to use.
356+
git fetch --filter=tree:0 sof_zep_rem main
357+
git fetch --filter=tree:0 --tags sof_zep_rem
335358
359+
west list
360+
west status
361+
git log --oneline -n 5 --decorate --graph --no-abbrev-commit
362+
git describe --long --always --dirty
363+
git describe --long --always --dirty --tags
336364
337365
# Call Setup Python again to save the PIP packages in cache
338366
- name: Setup Python
@@ -428,10 +456,12 @@ jobs:
428456
run: |
429457
diffs=0; ls -l
430458
431-
# Check not too much is missing (it happened!)
459+
# Look for a few samples to
460+
# check not too much is missing (it happened!)
432461
# http://mywiki.wooledge.org/ParsingLs
433-
for regdir in 'linux-build *mtl' \
434-
'windows-build *mtl' \
462+
for regdir in 'linux-build *-d *.*' \
463+
'linux-build *.*lnl.*' \
464+
'windows-build *.*mtl.*' \
435465
'windows-build *tgl tgl-h'; do
436466
find . -maxdepth 1 | grep -q "\./${regdir}\$" ||
437467
{ >&2 printf 'Missing %s\n' "${regdir}"; exit 1; }

0 commit comments

Comments
 (0)