Dylan Reid | e3dfa4e | 2018-04-25 09:48:41 -0700 | [diff] [blame] | 1 | The docker container provided in docker_build sets up a build environment for |
| 2 | building Sound Open Firmware. A working docker installation is needed to run |
| 3 | the docker build container. |
| 4 | |
| 5 | Note: This script assumes the sof.git/ and soft.git/ directories are siblings. |
| 6 | |
Liam Girdwood | 123dc86 | 2018-05-17 16:36:48 +0100 | [diff] [blame^] | 7 | Note2: In order to run docker as non sudo/root user please run. |
| 8 | |
| 9 | sudo usermod -aG docker your-user-name |
| 10 | |
| 11 | Then logout and login again. |
| 12 | |
Dylan Reid | e3dfa4e | 2018-04-25 09:48:41 -0700 | [diff] [blame] | 13 | Quick Start: |
| 14 | |
| 15 | First, build the docker container. This step needs to be done initially and |
| 16 | when the toolchain or alsa dependencies are updated. |
| 17 | |
| 18 | cd scripts/docker_build |
| 19 | docker build --build-arg UID=$(id -u) -t sof . |
| 20 | |
| 21 | After the container is built, it can be used to run the scripts. |
| 22 | |
| 23 | To build for baytrail: |
| 24 | ./scripts/docker-run.sh ./scripts/xtensa-build-all.sh byt |
| 25 | |
| 26 | To rebuild the topology in soft.git: |
| 27 | ./scripts/docker-run.sh ./scripts/build-soft.sh |
| 28 | |
| 29 | An incremental sof.git build: |
| 30 | ./scripts/docker-run.sh make |
| 31 | |
| 32 | Or enter a shell: |
| 33 | ./scripts/docker-run.sh bash |