mirror of https://github.com/thesofproject/sof.git
a4ece86d4d
Remove one intermediate and unnecessary .ri file. Simplify the code and the build directory. Example below with `sof-mtl.ri` for better readability but this applies the same to `sof-imx8.ri` and every other `sof-$platf.ri` file. There were 3 .ri copies before this commit: ``` build-mtl/zephyr/zephyr.ri copied to -> build-mtl/zephyr/sof-mtl.ri copied to -> build-sof-staging/___/sof-mtl.ri ``` Only 2 left after dropping the second and pointless copy: ``` build-mtl/zephyr/zephyr.ri copied to -> build-sof-staging/___/sof-mtl.ri ``` Fewer copies means less wondering about what is what, two identical files in the same directory is at best pointless and at worst misleading. The `build-mtl/` directory belongs to the zephyr build system exclusively, this wrapper script has no business interfering with `build-mtl`. `build-mtl/zephyr/sof-mtl.ri can even be dangerous because it does not get cleaned. Demonstration: ``` # Compile successfully $ ./scripts/xtensa-build-zephyr.py mtl # Write some code and make a mistake. # Fail to compile. $ echo BROKEN >> ../zephyr/kernel/sched.c $ ./scripts/xtensa-build-zephyr.py mtl # Obsolete .ri files are still there $ find ../build-mtl/ -name *.ri ../build-mtl/zephyr/zephyr.ri ../build-mtl/zephyr/sof-mtl.ri $ ninja -C ../build-mtl clean # Obsolete sof-mtl.ri is still there! $ find ../build-mtl/ -name *.ri ../build-mtl/zephyr/sof-mtl.ri ``` 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 | ||
fuzz.sh | ||
gen-doc.sh | ||
host-testbench.sh | ||
parse_sparse_output.sh | ||
qemu-check.sh | ||
rebuild-testbench.sh | ||
run-mocks.sh | ||
set_xtensa_params.sh | ||
sof-post-commit-hook.sh | ||
sof-pre-commit-hook.sh | ||
sof-target-install.sh | ||
sof_fw.kb | ||
spelling.txt | ||
sudo-cwd.sh | ||
test-repro-build.sh | ||
xtensa-build-all.sh | ||
xtensa-build-zephyr.py |
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 tigerlake: ./scripts/docker-run.sh ./scripts/xtensa-build-all.sh -l tgl or (may need password test0000 for rimage install) ./scripts/docker-run.sh ./scripts/xtensa-build-all.sh tgl 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