mirror of https://github.com/thesofproject/sof.git
e14ab7088b
Fix logic for saving the snapshot file argument. getopt() is called at least once after snapshot option is parsed and getopt() will erase the optarg value when exiting the while loop. Without this patch, argument is always NULL and snapshot cannot be taken. Signed-off-by: Kai Vehmanen <kai.vehmanen@linux.intel.com> |
||
---|---|---|
.github/ISSUE_TEMPLATE | ||
doc | ||
rimage | ||
scripts | ||
src | ||
test | ||
tools | ||
.gitignore | ||
.travis.yml | ||
CMakeLists.txt | ||
CODEOWNERS | ||
Kconfig | ||
LICENCE | ||
README.md |
README.md
Sound Open Firmware
Status
Documentation
See docs
Prerequisites
- Docker
- CMake (version >= 3.10)
Build Instructions
- Create directory in checked out repo for build files:
mkdir build && cd build
- Run configuration for your toolchain:
Baytrail:
cmake -DTOOLCHAIN=xtensa-byt-elf -DROOT_DIR=`pwd`/../../xtensa-root/xtensa-byt-elf ..
Cherrytrail:
cmake -DTOOLCHAIN=xtensa-cht-elf -DROOT_DIR=`pwd`/../../xtensa-root/xtensa-cht-elf ..
Haswell / Broadwell:
cmake -DTOOLCHAIN=xtensa-hsw-elf -DROOT_DIR=`pwd`/../../xtensa-root/xtensa-hsw-elf ..
Apollolake:
cmake -DTOOLCHAIN=xtensa-apl-elf -DROOT_DIR=`pwd`/../../xtensa-root/xtensa-apl-elf ..
Cannonlake:
cmake -DTOOLCHAIN=xtensa-cnl-elf -DROOT_DIR=`pwd`/../../xtensa-root/xtensa-cnl-elf ..
- Apply default config for your platform.
Baytrail:
make baytrail_defconfig
Cherrytrail:
make cherrytrail_defconfig
Haswell:
make haswell_defconfig
Broadwell:
make broadwell_defconfig
Apollolake:
make apollolake_defconfig
Cannonlake:
make cannonlake_defconfig
- (Optional) Customize your configuration
make menuconfig
- Build firmware
make bin
# or `make bin -j<jobs>` for parallel build
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