@@ -35,19 +35,19 @@ GAS := gas
3535
3636# In the folders, we filter out the shanghai files marked with _shan
3737HUB_LON := $(filter-out % _shan.lisp, $(wildcard hub/* .lisp) ) \
38- $(filter-out % _shan.lisp, $(wildcard hub/** /* .lisp) ) \
39- $(filter-out % _shan.lisp, $(wildcard hub/** /** /* .lisp) ) \
40- $(filter-out % _shan.lisp, $(wildcard hub/** /** /** /* .lisp) ) \
41- $(filter-out % _shan.lisp, $(wildcard hub/** /** /** /** /* .lisp) ) \
42- $(filter-out % _shan.lisp, $(wildcard hub/** /** /** /** /** /* .lisp) )
38+ $(filter-out % _shan.lisp, $(wildcard hub/** /* .lisp) ) \
39+ $(filter-out % _shan.lisp, $(wildcard hub/** /** /* .lisp) ) \
40+ $(filter-out % _shan.lisp, $(wildcard hub/** /** /** /* .lisp) ) \
41+ $(filter-out % _shan.lisp, $(wildcard hub/** /** /** /** /* .lisp) ) \
42+ $(filter-out % _shan.lisp, $(wildcard hub/** /** /** /** /** /* .lisp) )
4343
4444# In the folders, we filter out the london files marked with _lon
4545HUB_SHAN := $(filter-out % _lon.lisp, $(wildcard hub/* .lisp) ) \
46- $(filter-out % _lon.lisp, $(wildcard hub/** /* .lisp) ) \
47- $(filter-out % _lon.lisp, $(wildcard hub/** /** /* .lisp) ) \
48- $(filter-out % _lon.lisp, $(wildcard hub/** /** /** /* .lisp) ) \
49- $(filter-out % _lon.lisp, $(wildcard hub/** /** /** /** /* .lisp) ) \
50- $(filter-out % _lon.lisp, $(wildcard hub/** /** /** /** /** /* .lisp) )
46+ $(filter-out % _lon.lisp, $(wildcard hub/** /* .lisp) ) \
47+ $(filter-out % _lon.lisp, $(wildcard hub/** /** /* .lisp) ) \
48+ $(filter-out % _lon.lisp, $(wildcard hub/** /** /** /* .lisp) ) \
49+ $(filter-out % _lon.lisp, $(wildcard hub/** /** /** /** /* .lisp) ) \
50+ $(filter-out % _lon.lisp, $(wildcard hub/** /** /** /** /** /* .lisp) )
5151
5252LIBRARY := library
5353
@@ -62,12 +62,12 @@ MMIO := mmio
6262MXP := mxp
6363
6464OOB_LON := $(wildcard oob/oob-lon/* .lisp) \
65- $(wildcard oob/oob-lon/** /* .lisp) \
66- $(wildcard oob/oob-lon/** /** /* .lisp)
65+ $(wildcard oob/oob-lon/** /* .lisp) \
66+ $(wildcard oob/oob-lon/** /** /* .lisp)
6767
6868OOB_SHAN := $(wildcard oob/oob-shan/* .lisp) \
69- $(wildcard oob/oob-shan/** /* .lisp) \
70- $(wildcard oob/oob-shan/** /** /* .lisp)
69+ $(wildcard oob/oob-shan/** /* .lisp) \
70+ $(wildcard oob/oob-shan/** /** /* .lisp)
7171
7272RLP_ADDR := rlpaddr
7373
@@ -90,15 +90,14 @@ TABLES := reftables
9090TRM := trm
9191
9292TXN_DATA_LON := $(wildcard txndata/txndata-lon/* .lisp) \
93- $(wildcard txndata/txndata-lon/** /* .lisp)
93+ $(wildcard txndata/txndata-lon/** /* .lisp)
9494
9595TXN_DATA_SHAN := $(wildcard txndata/txndata-shan/* .lisp) \
96- $(wildcard txndata/txndata-shan/** /* .lisp)
96+ $(wildcard txndata/txndata-shan/** /* .lisp)
9797
9898WCP := wcp
9999
100- # Corset is order sensitive - to compile, we load the constants first
101- ZKEVM_MODULES_LONDON := ${CONSTANTS} \
100+ ZKEVM_MODULES_COMMON := ${CONSTANTS} \
102101 ${ALU} \
103102 ${BIN} \
104103 ${BLAKE2f_MODEXP_DATA} \
@@ -108,14 +107,12 @@ ZKEVM_MODULES_LONDON := ${CONSTANTS} \
108107 ${EUC} \
109108 ${EXP} \
110109 ${GAS} \
111- ${HUB_LON} \
112110 ${LIBRARY} \
113111 ${LOG_DATA} \
114112 ${LOG_INFO} \
115113 ${MMIO} \
116114 ${MMU} \
117115 ${MXP} \
118- ${OOB_LON} \
119116 ${RLP_ADDR} \
120117 ${RLP_TXN} \
121118 ${RLP_TXRCPT} \
@@ -126,40 +123,19 @@ ZKEVM_MODULES_LONDON := ${CONSTANTS} \
126123 ${STP} \
127124 ${TABLES} \
128125 ${TRM} \
129- ${TXN_DATA_LON} \
130126 ${WCP}
131127
132- # Corset is order sensitive - to compile, we load the constants first
133- ZKEVM_MODULES_SHANGHAI := ${CONSTANTS} \
134- ${ALU} \
135- ${BIN} \
136- ${BLAKE2f_MODEXP_DATA} \
137- ${BLOCKDATA} \
138- ${BLOCKHASH} \
139- ${EC_DATA} \
140- ${EUC} \
141- ${EXP} \
142- ${GAS} \
128+ ZKEVM_MODULES_LONDON := ${ZKEVM_MODULES_COMMON} \
129+ ${HUB_LON} \
130+ ${OOB_LON} \
131+ ${TXN_DATA_LON}
132+
133+ ZKEVM_MODULES_SHANGHAI := ${ZKEVM_MODULES_COMMON} \
143134 ${HUB_SHAN} \
144- ${LIBRARY} \
145- ${LOG_DATA} \
146- ${LOG_INFO} \
147- ${MMIO} \
148- ${MMU} \
149- ${MXP} \
150135 ${OOB_SHAN} \
151- ${RLP_ADDR} \
152- ${RLP_TXN} \
153- ${RLP_TXRCPT} \
154- ${ROM} \
155- ${ROM_LEX} \
156- ${SHAKIRA_DATA} \
157- ${SHIFT} \
158- ${STP} \
159- ${TABLES} \
160- ${TRM} \
161- ${TXN_DATA_SHAN} \
162- ${WCP}
136+ ${TXN_DATA_SHAN}
137+
138+ all : zkevm_london.bin zkevm_shanghai.bin
163139
164140zkevm_london.bin : ${ZKEVM_MODULES_LONDON}
165141 ${GO_CORSET_COMPILE} -o $@ ${ZKEVM_MODULES_LONDON}
0 commit comments