Makefile: fix "gnosis-chain-build" (#3503)

This commit is contained in:
Ștefan Talpalaru 2022-03-15 14:56:01 +01:00 committed by GitHub
parent 3f0a5026a4
commit 725692544e
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 16 additions and 11 deletions

View File

@ -427,7 +427,7 @@ clean-prater:
### Gnosis chain binary ### Gnosis chain binary
### ###
# TODO The constants overrides below should not be necessary if we restrore # TODO The constants overrides below should not be necessary if we restore
# the support for compiling with custom const presets. # the support for compiling with custom const presets.
# See the prepared preset file in media/gnosis-chain/preset.yaml # See the prepared preset file in media/gnosis-chain/preset.yaml
# #
@ -435,22 +435,27 @@ clean-prater:
# gains support for multiple "Chain Profiles" that consist of a set of # gains support for multiple "Chain Profiles" that consist of a set of
# consensus object (such as blocks and transactions) that are specific # consensus object (such as blocks and transactions) that are specific
# to the chain. # to the chain.
gnosis-chain-build: gnosis-chain-build: | build deps
+ $(ENV_SCRIPT) nim $(NIM_PARAMS) \ + echo -e $(BUILD_MSG) "build/nimbus_beacon_node_gnosis" && \
-d:gnosisChainBinary \ MAKE="$(MAKE)" V="$(V)" $(ENV_SCRIPT) scripts/compile_nim_program.sh \
-d:has_genesis_detection \ nimbus_beacon_node_gnosis \
-d:SLOTS_PER_EPOCH=16 \ beacon_chain/nimbus_beacon_node.nim \
-d:SECONDS_PER_SLOT=5 \ $(NIM_PARAMS) \
-d:BASE_REWARD_FACTOR=25 \ -d:gnosisChainBinary \
-d:EPOCHS_PER_SYNC_COMMITTEE_PERIOD=512 \ -d:has_genesis_detection \
-o:build/nimbus_beacon_node_gnosis c beacon_chain/nimbus_beacon_node.nim -d:SLOTS_PER_EPOCH=16 \
-d:SECONDS_PER_SLOT=5 \
-d:BASE_REWARD_FACTOR=25 \
-d:EPOCHS_PER_SYNC_COMMITTEE_PERIOD=512 \
&& \
echo -e $(BUILD_END_MSG) "build/nimbus_beacon_node_gnosis"
gnosis-chain: | gnosis-chain-build gnosis-chain: | gnosis-chain-build
$(call CONNECT_TO_NETWORK,gnosis-chain,nimbus_beacon_node_gnosis,$(GNOSIS_WEB3_URLS)) $(call CONNECT_TO_NETWORK,gnosis-chain,nimbus_beacon_node_gnosis,$(GNOSIS_WEB3_URLS))
ifneq ($(LOG_LEVEL), TRACE) ifneq ($(LOG_LEVEL), TRACE)
gnosis-chain-dev: gnosis-chain-dev:
+ "$(MAKE)" LOG_LEVEL=TRACE $@ + "$(MAKE)" --no-print-directory LOG_LEVEL=TRACE $@
else else
gnosis-chain-dev: | gnosis-chain-build gnosis-chain-dev: | gnosis-chain-build
$(call CONNECT_TO_NETWORK_IN_DEV_MODE,gnosis-chain,nimbus_beacon_node_gnosis,$(GNOSIS_WEB3_URLS)) $(call CONNECT_TO_NETWORK_IN_DEV_MODE,gnosis-chain,nimbus_beacon_node_gnosis,$(GNOSIS_WEB3_URLS))