mirror of https://github.com/thesofproject/sof.git
8aab18351f
xtensa-build-zephyr.py has always defined XTENSA_ and other environment variables in the current environment shared by all platforms. This was always bad but apparently never a problem until the addition of the new DEFAULT_TOOLCHAIN_VARIANT (xcc or clang) variable. Before DEFAULT_TOOLCHAIN_VARIANT, each platform's environment would simply override the previous one. However with the new DEFAULT_TOOLCHAIN_VARIANT, the current environment has precedence for more flexibility. This makes each platform "spill" onto the next one and `xtensa-build-zephyr.py -p tgl mtl` fail like this: ``` -- Board: intel_adsp_ace15_mtpm -- Found toolchain: xcc (/home/XCC/install/tools) CMake Error at zephyr/cmake/compiler/xcc/generic.cmake:9 (message): Zephyr was unable to find the toolchain. Is the environment misconfigured? User-configuration: ZEPHYR_TOOLCHAIN_VARIANT: xcc Internal variables: CROSS_COMPILE: /home/XCC/install/tools/RI-2022.10-linux/XtensaTools/bin/xt- ``` To fix this, stop modifying the current os.environ and use a new, fresh os.environ.copy() for each platform instead. Fixes commit |
||
---|---|---|
.github | ||
app | ||
doc | ||
installer | ||
keys | ||
rimage@d32db50b61 | ||
scripts | ||
smex | ||
src | ||
submanifests | ||
test | ||
third_party/include | ||
tools | ||
xtos/include | ||
zephyr | ||
.gitignore | ||
.gitmodules | ||
.travis.yml | ||
CMakeLists.txt | ||
CODEOWNERS | ||
Kconfig | ||
Kconfig.sof | ||
Kconfig.xtos-build | ||
Kconfig.xtos-dbg | ||
Kconfig.zephyr-log | ||
LICENCE | ||
README.md | ||
west.yml |
README.md
Sound Open Firmware
Status
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