blob: 468ae251fb77e71604f2b39abc3b34e20de75af5 [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
Pan Xiulif6f3ab02018-06-05 18:43:26 +080019
20./docker-build.sh
Dylan Reide3dfa4e2018-04-25 09:48:41 -070021
22After the container is built, it can be used to run the scripts.
23
24To build for baytrail:
Pan Xiuli03a514d2018-06-12 00:01:48 +080025./scripts/docker-run.sh ./scripts/xtensa-build-all.sh -l byt
26or (may need password test0000 for rimage install)
Dylan Reide3dfa4e2018-04-25 09:48:41 -070027./scripts/docker-run.sh ./scripts/xtensa-build-all.sh byt
28
29To rebuild the topology in soft.git:
30./scripts/docker-run.sh ./scripts/build-soft.sh
31
32An incremental sof.git build:
33./scripts/docker-run.sh make
34
35Or enter a shell:
36./scripts/docker-run.sh bash