-
Notifications
You must be signed in to change notification settings - Fork 1
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Add Dockerfile for synthesis with Quartus and local build of bsc #1
base: main
Are you sure you want to change the base?
Conversation
Hi, just saw that one. |
# Build the docker image | ||
.PHONY: build-docker | ||
build-docker: | ||
(cd docker; docker build --build-arg UID=$(USER) --build-arg GID=$(GROUP) . --tag de10-jammy) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
we probably want to add a mkdir -p docker
before the cd docker
. /home/dev-user/.ghcup/env && cabal update && cabal v1-install regex-compat syb old-time split && \ | ||
. /home/dev-user/.ghcup/env && cd bsc && make install-src && make check-smoke && \ | ||
. /home/dev-user/.ghcup/env make PREFIX="/home/dev-user/bsc-inst" install && \ | ||
rm -rf /home/dev-user/build |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Rather than this, should we not grab the release version (https://github.com/B-Lang-org/bsc/releases/download/2024.01/bsc-2024.01-ubuntu-22.04.tar.gz) ?
libexpat1-dev libgmp-dev | ||
|
||
# Install bsc build dependencies | ||
RUN sudo apt-get update && \ |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
probably unnecessary if we grab a release build rather than building ourselves (maybe some runtime deps are in there though)
Enable synthesis via Docker. Adapted from @jianyicheng's Dockerfile for SIMTight, with added building of bsc and support for Quartus builds using external toolchain.