File tree 3 files changed +24
-8
lines changed
3 files changed +24
-8
lines changed Original file line number Diff line number Diff line change 17
17
shell : bash
18
18
run :
go install github.com/consensys/go-corset/cmd/[email protected]
19
19
20
- - name : Build Constraints
21
- run : make -B zkevm.bin
20
+ - name : Build all forks
21
+ run : make -B all
Original file line number Diff line number Diff line change 1
1
zkevm.bin
2
+ zkevm_london.bin
3
+ zkevm_shanghai.bin
2
4
zkevm.go.bin
3
5
zkevm_for_reference_tests.bin
4
6
zkevm_for_old_replay_tests.bin
Original file line number Diff line number Diff line change @@ -4,6 +4,10 @@ GIT_TAGS := $(shell git -P tag --points-at)
4
4
TIMESTAMP := $(shell date)
5
5
GO_CORSET_COMPILE := ${GO_CORSET} compile -Dtags="${GIT_TAGS}" -Dcommit="${GIT_COMMIT}" -Dtimestamp="${TIMESTAMP}"
6
6
7
+ # Modules setting
8
+ # # Some modules set below are fork specific. Eg. For OOB, OOB_LON is the OOB module for London and OOB_SHAN the OOB module for Shanghai.
9
+ # # The discrimination is done by having one bin file per fork - see command line below
10
+
7
11
ALU := alu
8
12
9
13
BIN := bin
@@ -119,10 +123,20 @@ ZKEVM_MODULES_COMMON := ${CONSTANTS} \
119
123
${TRM} \
120
124
${WCP}
121
125
122
- ZKEVM_MODULES_LON := ${ZKEVM_MODULES_COMMON} \
123
- ${HUB_LON} \
124
- ${OOB_LON} \
125
- ${TXN_DATA_LON}
126
+ ZKEVM_MODULES_LONDON := ${ZKEVM_MODULES_COMMON} \
127
+ ${HUB_LON} \
128
+ ${OOB_LON} \
129
+ ${TXN_DATA_LON}
130
+
131
+ ZKEVM_MODULES_SHANGHAI := ${ZKEVM_MODULES_COMMON} \
132
+ ${HUB_SHAN} \
133
+ ${OOB_SHAN} \
134
+ ${TXN_DATA_SHAN}
135
+
136
+ all : zkevm_london.bin zkevm_shanghai.bin
137
+
138
+ zkevm_london.bin : ${ZKEVM_MODULES_LONDON}
139
+ ${GO_CORSET_COMPILE} -o $@ ${ZKEVM_MODULES_LONDON}
126
140
127
- zkevm .bin : ${ZKEVM_MODULES }
128
- ${GO_CORSET_COMPILE} -o $@ ${ZKEVM_MODULES_LON }
141
+ zkevm_shanghai .bin : ${ZKEVM_MODULES_SHANGHAI }
142
+ ${GO_CORSET_COMPILE} -o $@ ${ZKEVM_MODULES_SHANGHAI }
You can’t perform that action at this time.
0 commit comments