OpenCores
URL https://opencores.org/ocsvn/s80186/s80186/trunk

Subversion Repositories s80186

[/] [s80186/] [trunk/] [docker/] [s80x86-build-quartus] - Rev 2

Compare with Previous | Blame | View Log

#!/bin/bash
HERE="$(cd "$(dirname "$0")" && pwd)"
if [ -z "$DOCKER_NONINTERACTIVE" ]; then
    DOCKER_INTERACTIVE_FLAGS=${DOCKER_INTERACTIVE_FLAGS:-"-it"}
    if [ -n "$DISPLAY" ]; then
        DOCKER_INTERACTIVE_FLAGS="$DOCKER_INTERACTIVE_FLAGS -v /tmp/.X11-unix:/tmp/.X11-unix -e DISPLAY=unix$DISPLAY"
    fi
fi
# Quartus 16.1 needs /sys bind mounted to avoid a segfault in libudev when
# doing the flexlm licensing.
if [[ $# -ge 1 ]]; then
    docker run -e CCACHE_DIR=/build/_build/.ccache --rm $DOCKER_INTERACTIVE_FLAGS -v /sys:/sys:ro -v ${HERE}/../:/build -u $(id -u):$(id -g) s80x86-build-quartus:latest /bin/bash "$@"
else
    docker run -e CCACHE_DIR=/build/_build/.ccache --rm $DOCKER_INTERACTIVE_FLAGS -v /sys:/sys:ro -v ${HERE}/../:/build -u $(id -u):$(id -g) s80x86-build-quartus:latest /bin/bash
fi

Compare with Previous | Blame | View Log

powered by: WebSVN 2.1.0

© copyright 1999-2024 OpenCores.org, equivalent to Oliscience, all rights reserved. OpenCores®, registered trademark.