Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
64 changes: 64 additions & 0 deletions .github/workflows/zephyr-shell.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,64 @@
---
# SPDX-License-Identifier: BSD-3-Clause
# Tools that can save round-trips to github and a lot of time:
#
# yamllint -f parsable zephyr-shell.yml
# pip3 install ruamel.yaml.cmd
# yaml merge-expand zephyr-shell.yml exp.yml && diff -w -u zephyr-shell.yml exp.yml
#
# github.com also has a powerful web editor that can be used without
# committing.

name: Zephyr Shell

# 'workflow_dispatch' allows running this workflow manually from the
# 'Actions' tab
# yamllint disable-line rule:truthy
on: [pull_request, workflow_dispatch]

defaults:
run:
shell: bash

permissions:
contents: read

jobs:
build:
runs-on: ubuntu-24.04
container:
image: thesofproject/zephyr-lite:v0.29.0

strategy:
fail-fast: false
matrix:
platform: [tgl, mtl, lnl]

steps:
- name: checkout
uses: actions/checkout@v4
with:
path: sof
fetch-depth: 0 # fix git describe
filter: 'tree:0'

- name: west update
working-directory: sof
run: |
west init -l
west update --narrow --fetch-opt=--depth=5

- name: print all available sdks in /opt/toolchains/
run: |
ls -l /opt/toolchains/

- name: shell build
run: |
ln -s /opt/toolchains/zephyr-sdk-* ~/
python sof/scripts/xtensa-build-zephyr.py \
--cmake-args=-DEXTRA_CFLAGS=-Werror \
--cmake-args=-DEXTRA_CXXFLAGS=-Werror \
--cmake-args=-DEXTRA_AFLAGS='-Werror -Wa,--fatal-warnings' \
--cmake-args=--warn-uninitialized \
--overlay=sof/app/shell_overlay.conf \
${{ matrix.platform }}
4 changes: 2 additions & 2 deletions zephyr/sof_shell.c
Original file line number Diff line number Diff line change
Expand Up @@ -62,8 +62,8 @@ static int cmd_sof_module_heap_usage(const struct shell *sh,
continue;

usage = module_adapter_heap_usage(comp_mod(icd->cd), &hwm);
shell_print(sh, "comp id 0x%08x%9zu usage%9zu hwm %9zu max\tbytes",
icd->id, usage, hwm, comp_mod(icd->cd)->priv.cfg.heap_bytes);
shell_print(sh, "comp id 0x%08x%9zu usage%9zu hwm\tbytes",
icd->id, usage, hwm);
}
return 0;
}
Expand Down
Loading