Go to file
Marc Herbert 9d2e82adf0 xtensa-build-zephyr.py: fix find_west_workspace() to return west topdir
When neither -c nor -p is passed, the script defaults to '-p
SOF_TOP/zephyrproject', initializing the `west_top` global with
that. When everything is already cloned, this becomes
zephyrproject/modules/audio/sof/zephyrproject which is really not a
`west topdir`. Then west is pointed at:
 real_west_top/modules/audio/sof/zephyrproject/zephyr/samples/subsys/audio/sof
which obviously fails.

This was found while testing
https://thesofproject.github.io/latest/getting_started/build-guide/build-with-zephyr.html
and trying (and failing) to switch away from the older .sh script.

Fix find_west_workspace() to return the output of `west topdir` and use
that to update the `west_top` global.

This bug was introduced from the very start when the script was
converted from shell to python. The shell script did not have this
problem because it could be used without using neither -c nor -p. This
logical difference was mentioned in the code review:
https://github.com/thesofproject/sof/pull/5299#discussion_r801158177

Also remove a couple of accidental creations of a sof/zephyrproject/
directory when sof is already inside a higher zephyrproject.

Signed-off-by: Marc Herbert <marc.herbert@intel.com>
2022-06-09 16:53:20 +01:00
.github .github: independent strict and non-strict runs of check patch 2022-06-07 22:02:38 +01:00
doc CMake: require version 3.13 2021-09-10 17:19:29 +01:00
installer installer: add IPC_VERSION 2022-04-25 16:39:50 +01:00
keys Move signing key pair from rimage/ up one level 2020-05-13 10:16:04 +01:00
overlays overlays: add common/debug_overlay.conf for debug build 2022-05-14 11:35:13 +01:00
rimage@9d453321f8 rimage: update to May 4th version 9d453321f8 2022-05-12 17:32:09 +01:00
scripts xtensa-build-zephyr.py: fix find_west_workspace() to return west topdir 2022-06-09 16:53:20 +01:00
smex CMake: require version 3.13 2021-09-10 17:19:29 +01:00
src DAI: Add sampling frequency to ipc_config_dai 2022-06-09 14:44:16 +01:00
test component: Split data_blob.[ch] out of component.[ch] 2022-04-05 17:47:18 +01:00
third_party/include google_rtc_audio_processing: Add config controls 2022-03-15 16:27:53 -07:00
tools topology2: cavs: cavs-mixin-mixout-hda: use macro for DAI name 2022-06-09 14:41:40 +01:00
zephyr dma: add Zephyr native DMA support to host & dai 2022-05-31 15:28:27 +01:00
.gitignore git: remove "module" from .gitignore 2022-05-06 15:46:03 +01:00
.gitmodules .gitmodules: remove .git suffix from rimage.git 2021-09-30 15:56:44 +01:00
.travis.yml .github: replace HAVE_CONFIG KConfig hack with an override 2021-03-23 12:17:22 +00:00
CMakeLists.txt Rename generated version.h to sof_versions.h 2022-01-14 16:56:29 +00:00
CODEOWNERS OWNERS: move google files to team reference 2022-05-30 09:45:24 +01:00
Kconfig kconfig: allow SOF Kconfig to be included in other projects 2021-08-04 12:34:39 +01:00
Kconfig.sof perf_cnt: add the tracing of window-based average calculation 2022-05-05 21:52:13 +01:00
Kconfig.xtos-build kconfig: move BUILD_VM_ROM Kconfig.xtos-build 2021-05-25 15:53:39 +01:00
Kconfig.xtos-dbg Kconfig: use uncached buffer only for debugging 2021-09-29 16:36:27 +01:00
Kconfig.zephyr-log sof: replace log calls with zephyr logging api 2022-04-27 15:05:24 +01:00
LICENCE LICENCE: Add Khronos Group Inc license header 2022-04-12 19:41:27 +03:00
README.md readme: remove IRC link 2021-06-16 22:13:08 +01:00

README.md

Sound Open Firmware

Status

GitHub Actions Build Status Gitter chat

Documentation

See docs

Running the tests

See unit testing documentation

Deployment

TODO: Add additional notes about how to deploy this on a live system

Contributing

See Contributing to the Project

License

This project is licensed under the BSD Clause 3 - see the LICENCE file for details