mirror of https://github.com/thesofproject/sof.git
33c5f5d38e
This script lives in a sof.git/ clone yet it was systematically cloning a second sof.git/. Besides the obvious confusion and risk of editing the wrong files, this meant it was not possible to build code that has not been merged yet! This was a problem for both CI and developers. Fixed by using symbolic links to ourselves instead. Note it is _still_ possible to build from another sof.git clone if desired, however this script will never git re-clone a second sof.git itself, that second clone has to be created (e.g.: by west) before this script runs. When cloning a brand new zephyrproject, use a shallow zephyr clone and download only the two zephyr modules we actually use. This speeds up automation considerably and makes it much faster for non-Zephyr developers to reproduce Zephyr issues. Developers can always git unshallow and west update once if they want to. Rename the default west top to "zephyrproject" to not just match the zephyr documentation but to also avoid creating a double zephyr/zephyr/ directory. See the new print_usage() for a few more implementation details. Signed-off-by: Marc Herbert <marc.herbert@intel.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 | ||
run-mocks.sh | ||
sof-post-commit-hook.sh | ||
sof-pre-commit-hook.sh | ||
sof-target-install.sh | ||
sof_fw.kb | ||
spelling.txt | ||
xtensa-build-all.sh | ||
xtensa-build-zephyr.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