2018-04-26 00:48:41 +08:00
|
|
|
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: This script assumes the sof.git/ and soft.git/ directories are siblings.
|
|
|
|
|
2018-05-17 23:36:48 +08:00
|
|
|
Note2: In order to run docker as non sudo/root user please run.
|
|
|
|
|
|
|
|
sudo usermod -aG docker your-user-name
|
|
|
|
|
|
|
|
Then logout and login again.
|
|
|
|
|
2018-04-26 00:48:41 +08:00
|
|
|
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 --build-arg UID=$(id -u) -t sof .
|
|
|
|
|
|
|
|
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 byt
|
|
|
|
|
|
|
|
To rebuild the topology in soft.git:
|
|
|
|
./scripts/docker-run.sh ./scripts/build-soft.sh
|
|
|
|
|
|
|
|
An incremental sof.git build:
|
|
|
|
./scripts/docker-run.sh make
|
|
|
|
|
|
|
|
Or enter a shell:
|
|
|
|
./scripts/docker-run.sh bash
|