Skip to content
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

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

tmarkettos
Copy link
Collaborator

Enable synthesis via Docker. Adapted from @jianyicheng's Dockerfile for SIMTight, with added building of bsc and support for Quartus builds using external toolchain.

@gameboo
Copy link
Member

gameboo commented May 15, 2024

Hi, just saw that one.
Will drop a couple comments...

# Build the docker image
.PHONY: build-docker
build-docker:
(cd docker; docker build --build-arg UID=$(USER) --build-arg GID=$(GROUP) . --tag de10-jammy)
Copy link
Member

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
Copy link
Member

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:/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 && \
Copy link
Member

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)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants