mirror of
https://github.com/kata-containers/kata-containers.git
synced 2025-05-03 22:17:35 +00:00
runtime-rs:skip the build process when the arch is s390x
github.com/kata-containers/tests#4986.To avoid returning an error when running the ci, we just skip the build process if the arch is s390x Fixes: #4816 Signed-off-by: Zhongtao Hu <zhongtaohu.tim@linux.alibaba.com>
This commit is contained in:
parent
8b0e1859cb
commit
945e02227c
@ -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)
|
||||
|
15
src/runtime-rs/arch/s390x-options.mk
Normal file
15
src/runtime-rs/arch/s390x-options.mk
Normal file
@ -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
|
Loading…
Reference in New Issue
Block a user