2018-10-12 13:19:48 +08:00
|
|
|
#!/bin/sh
|
2019-06-02 04:58:16 +08:00
|
|
|
# SPDX-License-Identifier: BSD-3-Clause
|
|
|
|
# Copyright(c) 2018 Intel Corporation. All rights reserved.
|
2018-10-12 13:19:48 +08:00
|
|
|
|
|
|
|
# Runs a given script in the docker container you can generate from the
|
|
|
|
# docker_build directory.
|
2019-01-11 13:56:34 +08:00
|
|
|
# Example:
|
|
|
|
# ./scripts/docker-qemu.sh ../sof.git/scripts/qemu-check.sh
|
2018-10-12 13:19:48 +08:00
|
|
|
|
2019-01-11 13:56:34 +08:00
|
|
|
|
|
|
|
docker run -i --shm-size=512m --privileged -v `pwd`:/home/sof/sof.git \
|
2018-10-12 13:19:48 +08:00
|
|
|
--user `id -u` sofqemu $@
|