Repository navigation
cmake, scripts: Auto-discover SOF checkout and ALSA tools via west - #3
Merged
Merged
Conversation
Enable `sof-topologies` to resolve the matching `sof` checkout and
workspace ALSA toolchain automatically when used inside a `west`
workspace (`west init -l sof`), while preserving standalone builds:
- `CMakeLists.txt`: Resolve `SOF_ROOT_SOURCE_DIRECTORY` via
`SOF_SRC_DIR`, `SOF_ROOT`, `west list -f "{abspath}" sof`, or `../sof`
so in-workspace builds compile against `sof/src/include/kernel/abi.h`
and standalone builds fall back to local `include/kernel/abi.h`.
- `cmake/alsatplg.cmake` & `scripts/build-alsa-tools.sh`: Check
`west topdir` for `<west_top>/tools/bin/alsatplg` and `BASE_DIR`.
- `scripts/build-topology.sh`: Resolve `sof` via `west list` in
`sync_compat_links()`.
- `west.yml`: Document standalone `west init -l sof-topologies` update
conventions and the `alsa-lib`/`alsa-utils` import from `sof/west.yml`.
Signed-off-by: Liam Girdwood <liam.r.girdwood@linux.intel.com>
lgirdwood
force-pushed
the
feat/west-sof-discovery
branch
from
November 21, 2026 19:09
96c4007 to
00f39ed
Compare
lgirdwood
marked this pull request as ready for review
November 21, 2026 20:05
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Phase 1 integration with the main
sofwest manifest:SOF_ROOT_SOURCE_DIRECTORYinCMakeLists.txtviaSOF_SRC_DIR,SOF_ROOT,west list -f "{abspath}" sof, or../sofbefore falling back to the standaloneinclude/kernel/abi.h.west topdirlookup fortools/bin/alsatplgincmake/alsatplg.cmakeand forBASE_DIRinscripts/build-alsa-tools.sh.sofviawest list -f "{abspath}" sofinscripts/build-topology.shsync_compat_links().