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