mirror of https://github.com/thesofproject/sof.git
a5899812b7
In an ideal world, every CI engine records and shares the most important CI information: - current date and time in a well identified timezone - git version of the pull request - git version of the moving branch the PR is being merged with In the real world we have multiple CI solutions and they unfortunately cannot not all be trusted to perform their most basic job correctly. Fortunately, they all make at least build logs available so these very few lines of code adding very few lines of output cost near zero extra build time and solve the problem once for all. I feel stupid I didn't do this sooner, this would have saved me hours and hours in vain requests and discussions and in trying to puzzle that information together. Sample output: -- Preparing Xtensa toolchain version.cmake starting SOF build at 2021-03-31T18:09:46Z UTC Building git commit with parent(s): 150fd1e4c968 4249bdb1b305 [other parent if merge] (HEAD -> main) cmake: ... -- GIT_TAG / GIT_LOG_HASH : v1.7-rc1-174-g150fd1e4c968-dirty / 150fd1e4c968 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 | ||
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