Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
N
nebula
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
exchain
nebula
Commits
7b914863
Commit
7b914863
authored
Feb 25, 2022
by
Nicolas "Norswap" Laurent
Committed by
norswap
Feb 25, 2022
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
separate out the build commands in a specific makefile
parent
d362e29f
Changes
4
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
42 additions
and
16 deletions
+42
-16
Makefile
Makefile
+33
-0
README.md
README.md
+7
-10
build.sh
mipigo/build.sh
+2
-3
evm.sh
mipsevm/evm.sh
+0
-3
No files found.
Makefile
0 → 100644
View file @
7b914863
build
:
unicorn minigeth_mips minigeth_default_arch mipsevm contracts
yarn
unicorn
:
./build_unicorn.sh
minigeth_mips
:
(
cd
mipigo
&&
./build.sh
)
minigeth_default_arch
:
(
cd
minigeth
&&
go build
)
mipsevm
:
(
cd
mipsevm
&&
go build
)
contracts
:
yarn
npx hardhat compile
clean
:
rm
minigeth/go-ethereum
rm
mipigo/minigeth
rm
mipigo/minigeth.bin
rm
mipsevm/mipsevm
rm
-rf
artifacts
mrproper
:
clean
rm
-rf
cache
rm
-rf
node_modules
rm
-rf
mipigo/venv
.PHONY
:
build unicorn minigeth_mips minigeth_default_arch mipsevm contracts
\
clean mrproper
README.md
View file @
7b914863
...
...
@@ -26,27 +26,24 @@ mipsevm -- A MIPS runtime in the EVM (works with contracts)
contracts -- A Merkleized MIPS processor on chain + the challenge logic
```
## Usage
The following commands should be run from the root directory unless otherwise specified:
## Building
```
./build_unicorn.sh
make build
```
# build minigeth for MIPS
(cd mipigo && ./build.sh)
## Usage
# build minigeth for PC
(cd minigeth/ && go build)
The following commands should be run from the root directory unless otherwise specified:
```
# compute the transition from 13284469 -> 13284470 on PC
TRANSITION_BLOCK=13284469
mkdir -p /tmp/cannon
minigeth/go-ethereum $TRANSITION_BLOCK
# write out the golden MIPS minigeth start state
yarn
(cd mipsevm && ./evm.sh)
mipsevm/mipsevm
# if you run into "digital envelope routines::unsupported", rerun after this:
# export NODE_OPTIONS=--openssl-legacy-provider
...
...
mipigo/build.sh
View file @
7b914863
...
...
@@ -3,10 +3,9 @@ cd ../minigeth
export
GOOS
=
linux
export
GOARCH
=
mips
export
GOMIPS
=
softfloat
go build
cd
../mipigo
go build
-o
../mipigo/minigeth
c
p
../minigeth/go-ethereum minigeth
c
d
../mipigo
file minigeth
if
[[
!
-d
venv
]]
;
then
...
...
mipsevm/evm.sh
deleted
100755 → 0
View file @
d362e29f
#!/bin/bash -e
(
cd
../
&&
npx hardhat compile
>
/dev/null
)
go build
&&
(
cd
..
&&
./mipsevm/mipsevm
$@
)
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment