Skip to content

Commit

Permalink
Makefile: Clone SW dependencies instead of using submodules
Browse files Browse the repository at this point in the history
  • Loading branch information
alex96295 committed Dec 5, 2024
1 parent 847e270 commit 37b8e89
Showing 1 changed file with 26 additions and 4 deletions.
30 changes: 26 additions & 4 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -56,7 +56,7 @@ endef
######################

NONFREE_REMOTE ?= git@iis-git.ee.ethz.ch:pulp-restricted/pulp-cluster-nonfree.git
NONFREE_COMMIT ?= d5d3e2363ea363ee1f3dce39706d97bda396781f
NONFREE_COMMIT ?= 934930c

nonfree-init:
git clone $(NONFREE_REMOTE) nonfree
Expand All @@ -69,7 +69,6 @@ nonfree-init:
.PHONY: init

init: checkout
git submodule update --init --recursive

.PHONY: checkout scripts/compile.tcl
## Checkout/update dependencies using Bender
Expand All @@ -87,13 +86,36 @@ Bender.lock:
# SW #
######

.PHONY: sw-init sw-clean

sw-init: pulp-runtime fault_injection_sim regression_tests
sw-clean:
rm -rf pulp-runtime fault_injection_sim regression_tests

## Clone pulp-runtime as SW stack
PULP_RUNTIME_REMOTE ?= https://github.com/pulp-platform/pulp-runtime.git
PULP_RUNTIME_COMMIT ?= 5a063a8 # branch: astral

pulp-runtime:
git submodule update --init --recursive $@
git clone $(PULP_RUNTIME_REMOTE)
cd $@ && git checkout $(PULP_RUNTIME_COMMIT)

## Clone fault injection scripts
FAULT_SIM_REMOTE ?= https://github.com/pulp-platform/InjectaFault.git
FAULT_SIM_COMMIT ?= 84ddcff # branch: rt/rename-var

fault_injection_sim:
git submodule update --init --recursive $@
git clone $(FAULT_SIM_REMOTE) $@
cd $@ && git checkout $(FAULT_SIM_COMMIT)

## Clone regression tests
REGRESSION_TESTS_REMOTE ?= https://github.com/pulp-platform/regression_tests.git
REGRESSION_TESTS_COMMIT ?= b1c3f82 # branch: astral

regression_tests:
git clone $(REGRESSION_TESTS_REMOTE)
cd $@ && git checkout $(REGRESSION_TESTS_COMMIT)
cd $@ && git submodule update --init --recursive

########################
# Build and simulation #
Expand Down

0 comments on commit 37b8e89

Please sign in to comment.