Revision d02a832570328edc9a91101c406117bc05b69b90 authored by Marge Bot on 19 July 2023, 07:56:07 UTC, committed by Marge Bot on 19 July 2023, 07:56:07 UTC
Co-authored-by: KOBAYASHI Kazuhiro <kazuhiro.kobayashi@dailambda.jp> Approved-by: satos <sota.sato@dailambda.jp> Approved-by: Jun Furuse <jun.furuse@gmail.com> See merge request https://gitlab.com/tezos/tezos/-/merge_requests/9438
kernels.mk
KERNELS = evm_kernel.wasm sequenced_kernel.wasm
SDK_DIR=src/kernel_sdk
EVM_DIR=src/kernel_evm
SEQUENCER_DIR=src/kernel_sequencer
EVM_KERNEL_PREIMAGES = _evm_installer_preimages
.PHONY: all
all: build-dev-deps check test build
.PHONY: kernel_sdk
kernel_sdk:
@make -C src/kernel_sdk build
@cp src/kernel_sdk/target/$(NATIVE_TARGET)/release/smart-rollup-installer .
evm_kernel.wasm::
@make -C src/kernel_evm build
@cp src/kernel_evm/target/wasm32-unknown-unknown/release/evm_kernel.wasm $@
@wasm-strip $@
evm_installer.wasm:: kernel_sdk evm_kernel.wasm
ifdef EVM_CONFIG
$(eval CONFIG := --setup-file ${EVM_CONFIG})
endif
@./smart-rollup-installer get-reveal-installer \
--upgrade-to evm_kernel.wasm \
--preimages-dir ${EVM_KERNEL_PREIMAGES} \
--output $@ \
${CONFIG}
evm_installer_dev.wasm::
@${MAKE} -f kernels.mk EVM_CONFIG=src/kernel_evm/config/dev.yaml evm_installer.wasm
sequenced_kernel.wasm:
@make -C src/kernel_sequencer build
@cp src/kernel_sequencer/target/wasm32-unknown-unknown/release/examples/sequenced_kernel.wasm $@
@wasm-strip $@
.PHONY: build
build: ${KERNELS} kernel_sdk
.PHONY: build-dev-deps
build-dev-deps: build-deps
@make -C ${SDK_DIR} build-dev-deps
@make -C ${EVM_DIR} build-dev-deps
@make -C ${SEQUENCER_DIR} build-dev-deps
.PHONY: build-deps
build-deps:
@make -C ${SDK_DIR} build-deps
@make -C ${EVM_DIR} build-deps
@make -C ${SEQUENCER_DIR} build-deps
.PHONY: test
test:
@make -C ${SDK_DIR} test
@make -C ${EVM_DIR} test
@make -C ${SEQUENCER_DIR} test
.PHONY: check
check:
@make -C ${SDK_DIR} check
@make -C ${EVM_DIR} check
@make -C ${SEQUENCER_DIR} check
.PHONY: publish-sdk-deps
publish-sdk-deps: build-deps
@make -C ${SDK_DIR} publish-deps
.PHONY: publish-sdk
publish-sdk:
@make -C ${SDK_DIR} publish
.PHONY: clean
clean:
@rm -f ${KERNELS}
@make -C ${SDK_DIR} clean
@make -C ${EVM_DIR} clean
@make -C ${SEQUENCER_DIR} clean
@rm -rf ${EVM_KERNEL_PREIMAGES}
![swh spinner](/static/img/swh-spinner.gif)
Computing file changes ...