forked from analogdevicesinc/plutosdr-fw
-
Notifications
You must be signed in to change notification settings - Fork 5
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Signed-off-by: Daniel Estévez <[email protected]>
- Loading branch information
1 parent
6ab363c
commit 5034567
Showing
4 changed files
with
48 additions
and
30 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,19 @@ | ||
#!/bin/bash | ||
|
||
set -euox pipefail | ||
|
||
source /opt/Xilinx/Vitis/2023.2/.settings64-Vitis.sh | ||
source /opt/Xilinx/Vivado/2023.2/.settings64-Vivado.sh | ||
source /opt/Xilinx/Vitis_HLS/2023.2/.settings64-Vitis_HLS.sh | ||
source /opt/rust/env | ||
export PATH=/usr/local/sbin:/usr/local/bin:/usr/sbin/:/usr/bin:/sbin:/bin:$PATH:/opt/oss-cad-suite/bin | ||
export PYTHONPATH=/usr/local/lib/python3.10/dist-packages | ||
|
||
# xsct, which is run by the make process, uses Xvfb, which usually needs a | ||
# connection to an X server (even though it is a CLI application). We run | ||
# Xvfb in the container to create a "fake" X session that makes xsct | ||
# happy. | ||
Xvfb :10 & | ||
export DISPLAY=:10 | ||
|
||
make -C /w |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,22 @@ | ||
services: | ||
build: | ||
image: ghcr.io/maia-sdr/maia-sdr-devel:latest | ||
pull_policy: always | ||
volumes: | ||
- vivado2023_2:/opt/Xilinx | ||
- type: bind | ||
source: $PWD | ||
target: /w | ||
environment: | ||
- TARGET | ||
entrypoint: /w/build-docker.sh | ||
user: $DOCKER_USER | ||
# https://github.com/moby/moby/issues/45436#issuecomment-1528752777 | ||
ulimits: | ||
nofile: | ||
soft: 1024 | ||
hard: 1048576 | ||
|
||
volumes: | ||
vivado2023_2: | ||
external: true |