URL
https://opencores.org/ocsvn/s80186/s80186/trunk
[/] [s80186/] [trunk/] [docker/] [s80x86-build] - Blame information for rev 2
Details |
Compare with Previous |
View Log
| Line No. |
Rev |
Author |
Line |
| 1 |
2 |
jamieiles |
#!/bin/bash
|
| 2 |
|
|
HERE="$(cd "$(dirname "$0")" && pwd)"
|
| 3 |
|
|
if [ -z "$DOCKER_NONINTERACTIVE" ]; then
|
| 4 |
|
|
DOCKER_INTERACTIVE_FLAGS=${DOCKER_INTERACTIVE_FLAGS:-"-it"}
|
| 5 |
|
|
if [ -n "$DISPLAY" ]; then
|
| 6 |
|
|
DOCKER_INTERACTIVE_FLAGS="$DOCKER_INTERACTIVE_FLAGS -v /tmp/.X11-unix:/tmp/.X11-unix -e DISPLAY=unix$DISPLAY"
|
| 7 |
|
|
fi
|
| 8 |
|
|
fi
|
| 9 |
|
|
# Quartus 16.1 needs /sys bind mounted to avoid a segfault in libudev when
|
| 10 |
|
|
# doing the flexlm licensing.
|
| 11 |
|
|
if [[ $# -ge 1 ]]; then
|
| 12 |
|
|
docker run --privileged -e CCACHE_DIR=/build/_build/.ccache --rm $DOCKER_INTERACTIVE_FLAGS -v /sys:/sys:ro -v ${HERE}/../:/build -u $(id -u):$(id -g) s80x86-build:latest /bin/bash "$@"
|
| 13 |
|
|
else
|
| 14 |
|
|
docker run --privileged -e CCACHE_DIR=/build/_build/.ccache --rm $DOCKER_INTERACTIVE_FLAGS -v /sys:/sys:ro -v ${HERE}/../:/build -u $(id -u):$(id -g) s80x86-build:latest /bin/bash
|
| 15 |
|
|
fi
|
© copyright 1999-2025
OpenCores.org, equivalent to Oliscience, all rights reserved. OpenCores®, registered trademark.