mirror of https://github.com/thesofproject/sof.git
46578cb103
Currently, the testbench is built using the script named 'host-build-all.sh' under scripts directory. But the name of the script, it's git history doesn't refer to what the script is currently doing now. The newly written script adds option to build the testbench. This script was written in mind to remove the old script used to build the testbench (i.e host-build-all.sh). The script also adds an option to build the testbench with AFL instrumentation. AFL fuzzer works well when the code it's trying to fuzz is instrumented properly. The instrumentation helps the fuzzer in generating unique inputs which cover different paths in the code graph. When the option is set, testbench is built using a compiler AFL provides, which does the instrumentation work. Signed-off-by: Mohana Datta Yelugoti <ymdatta.work@gmail.com> |
||
---|---|---|
.. | ||
cmake | ||
docker_build | ||
kconfig | ||
scan | ||
README.docker | ||
build-tools.sh | ||
checkpatch.pl | ||
const_structs.checkpatch | ||
docker-qemu.sh | ||
docker-run.sh | ||
gen-doc.sh | ||
host-build-all.sh | ||
host-testbench.sh | ||
qemu-check.sh | ||
rebuild-testbench.sh | ||
sof-post-commit-hook.sh | ||
sof-pre-commit-hook.sh | ||
sof-target-install.sh | ||
sof_fw.kb | ||
spelling.txt | ||
xtensa-build-all.sh |
README.docker
The docker container provided in docker_build sets up a build environment for building Sound Open Firmware. A working docker installation is needed to run the docker build container. Note: In order to run docker as non sudo/root user please run. sudo usermod -aG docker your-user-name Then logout and login again. Quick Start: First, build the docker container. This step needs to be done initially and when the toolchain or alsa dependencies are updated. cd scripts/docker_build ./docker-build.sh After the container is built, it can be used to run the scripts. To build for baytrail: ./scripts/docker-run.sh ./scripts/xtensa-build-all.sh -l byt or (may need password test0000 for rimage install) ./scripts/docker-run.sh ./scripts/xtensa-build-all.sh byt To rebuild the topology and logger: ./scripts/docker-run.sh ./scripts/build-tools.sh An incremental sof.git build: ./scripts/docker-run.sh make Or enter a shell: ./scripts/docker-run.sh bash