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

Handle install with private submodules #355

Merged
merged 3 commits into from
Nov 23, 2023
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
12 changes: 11 additions & 1 deletion Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,15 @@ IN_ENV = if [ -e .venv/bin/activate ]; then . .venv/bin/activate; fi;
CAPNPJ := $(shell which capnpc-java)
PYTHON311 := $(shell which python3.11)

PUBLIC_SUBMODULES = \
third_party/fasm2bels \
third_party/RapidWright \
third_party/yosys \
third_party/WaFoVe

PRIVATE_SUBMODULES = \
third_party/gmt_tools

install: submodules venv python_packages rapidwright env install_fasm2bels install_yosys install_wafove

venv:
Expand Down Expand Up @@ -65,7 +74,8 @@ ifeq "$(CAPNPJ)" ""
endif

submodules:
git submodule update --init --recursive
$(foreach submodule,$(PUBLIC_SUBMODULES),git submodule init $(submodule); git submodule update $(submodule);)
$(foreach submodule,$(PRIVATE_SUBMODULES),git submodule init $(submodule); git submodule update $(submodule) || echo "Ignoring failed clone of private submodule ($(submodule))";)

rapidwright:
cd third_party/RapidWright && ./gradlew compileJava
Expand Down