mirror of https://github.com/thesofproject/sof.git
d09844ab98
This fixes SOF version.cmake which was just broken by a recent git security update and started to fail like this: ``` -- SOF version.cmake starting at 2022-04-25T18:14:56Z UTC -- /workdir/zephyr/.. is at git commit with parent(s): fatal: unsafe repository ('/workdir' is owned by someone else) To add an exception for this directory, call: git config --global --add safe.directory /workdir ``` (example at https://github.com/thesofproject/sof/runs/6162885265) chgrp -R was always an ugly hack because it was messing with (persistent) file permissions on the host, outside the container. This new adduser solution is unfortunately much more code but it does not leak any side effect outside the container. Do not fix scripts/docker-run.sh yet because there is still no UID mismatch between Github Actions and the SOF container (they're both 1001) but add a warning + TODO. 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-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 | ||
test-repro-build.sh | ||
xtensa-build-all.sh | ||
xtensa-build-zephyr.py | ||
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