diff --git a/src/runtime-rs/Makefile b/src/runtime-rs/Makefile index 32c2214a04..9ec6bd1f3c 100644 --- a/src/runtime-rs/Makefile +++ b/src/runtime-rs/Makefile @@ -21,6 +21,16 @@ ARCH_DIR = arch ARCH_FILE_SUFFIX = -options.mk ARCH_FILE = $(ARCH_DIR)/$(ARCH)$(ARCH_FILE_SUFFIX) + +ifeq ($(ARCH), s390x) +##TARGET default: build code +default: + @echo "s390x not support currently" + exit 0 +else +default: runtime show-header +endif + ifeq (,$(realpath $(ARCH_FILE))) $(error "ERROR: invalid architecture: '$(ARCH)'") else @@ -327,9 +337,6 @@ endef .DEFAULT_GOAL := default -##TARGET default: build code -default: runtime show-header - runtime: $(TARGET) $(TARGET): $(GENERATED_CODE) $(TARGET_PATH) diff --git a/src/runtime-rs/arch/s390x-options.mk b/src/runtime-rs/arch/s390x-options.mk new file mode 100644 index 0000000000..f6381eee22 --- /dev/null +++ b/src/runtime-rs/arch/s390x-options.mk @@ -0,0 +1,15 @@ +# Copyright (c) 2019-2022 Alibaba Cloud +# Copyright (c) 2019-2022 Ant Group +# +# SPDX-License-Identifier: Apache-2.0 +# + +MACHINETYPE := +KERNELPARAMS := +MACHINEACCELERATORS := +CPUFEATURES := pmu=off + +QEMUCMD := qemu-system-s390x + +# dragonball binary name +DBCMD := dragonball