From 290ecf4c4698449f9946a0f9735016e4413080a6 Mon Sep 17 00:00:00 2001 From: Hyounggyu Choi Date: Tue, 21 Nov 2023 16:08:22 +0100 Subject: [PATCH] Static-check: Exclude s390x from dragonball and runtime-rs At the moment, a project `dragonball` and `runtime-rs` does not support for s390x. During the enablement, some errors due to the misconfiguration of Makefile for `make check` and `make vendor` were identified. This is to skip the build for the affected target of the projects. Signed-off-by: Hyounggyu Choi --- src/dragonball/Makefile | 2 +- src/runtime-rs/Makefile | 6 ++++++ 2 files changed, 7 insertions(+), 1 deletion(-) diff --git a/src/dragonball/Makefile b/src/dragonball/Makefile index df24d78ed3..4df695072b 100644 --- a/src/dragonball/Makefile +++ b/src/dragonball/Makefile @@ -7,7 +7,7 @@ include ../../utils.mk PROJECT_DIRS := $(shell find . -name Cargo.toml -printf '%h\n' | sort -u) ifeq ($(ARCH), s390x) -default build check test clippy: +default build check test clippy vendor: @echo "s390x not support currently" exit 0 else diff --git a/src/runtime-rs/Makefile b/src/runtime-rs/Makefile index b48b1436a0..66d32c1fc0 100644 --- a/src/runtime-rs/Makefile +++ b/src/runtime-rs/Makefile @@ -467,8 +467,14 @@ clean-generated-files: vendor: @cargo vendor +ifeq ($(ARCH),x86_64) ##TARGET check: run test check: $(GENERATED_FILES) standard_rust_check +else +check: + @echo "$(ARCH) is not currently supported" + exit 0 +endif ##TARGET run: build and run agent run: