Skip to content

Commit

Permalink
Allow passing toolchain prefix as argument to makefile
Browse files Browse the repository at this point in the history
  • Loading branch information
mpernambuco committed Jul 22, 2023
1 parent 6799c7c commit f2c3e48
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -183,6 +183,7 @@ toolchain-env:
-e GROUP=$$(id -g -n) \
-e UID=$$(id -u) \
-e GID=$$(id -g) \
$(if $(TOOLCHAIN_PREFIX), -e TOOLCHAIN_PREFIX=$(TOOLCHAIN_PREFIX), ) \
-v `pwd`:/opt/cartesi/machine-emulator \
-w /opt/cartesi/machine-emulator \
$(TOOLCHAIN_IMAGE):$(TOOLCHAIN_TAG) /bin/bash
Expand All @@ -193,6 +194,7 @@ toolchain-exec:
-e GROUP=$$(id -g -n) \
-e UID=$$(id -u) \
-e GID=$$(id -g) \
$(if $(TOOLCHAIN_PREFIX), -e TOOLCHAIN_PREFIX=$(TOOLCHAIN_PREFIX), ) \
-v `pwd`:/opt/cartesi/machine-emulator \
-w /opt/cartesi/machine-emulator \
$(TOOLCHAIN_IMAGE):$(TOOLCHAIN_TAG) /bin/bash -c "$(CONTAINER_COMMAND)"
Expand Down

0 comments on commit f2c3e48

Please sign in to comment.