From 77a7e11a5180cfbec1457e42b90baf64adf907ad Mon Sep 17 00:00:00 2001 From: Finn Callies Date: Tue, 17 Sep 2024 16:03:23 +0200 Subject: [PATCH] rust/Makefile: Build pvapconfig only on s390x MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Configuring the AP bus only makes sense on s390x. Signed-off-by: Finn Callies Suggested-by: Steffen Eiden Reviewed-by: Harald Freudenberger Reviewed-by: Steffen Eiden Signed-off-by: Jan Höppner --- rust/Makefile | 11 ++++++++++- 1 file changed, 10 insertions(+), 1 deletion(-) diff --git a/rust/Makefile b/rust/Makefile index 1e931870..4c49d75c 100644 --- a/rust/Makefile +++ b/rust/Makefile @@ -19,7 +19,13 @@ ifneq (${HAVE_CARGO},0) ifneq (${HAVE_OPENSSL},0) ifneq (${HAVE_LIBCURL},0) - PV_TARGETS := pvsecret pvapconfig pvattest + PV_TARGETS := pvsecret pvattest + +ifeq ($(HOST_ARCH),s390x) + PV_TARGETS += pvapconfig +else + BUILD_TARGETS += skip-pvapconfig +endif #HOSTARCH PV_BUILD_TARGETS := $(PV_TARGETS) CARGO_TEST_TARGETS += $(addsuffix .test,pv $(PV_TARGETS)) @@ -56,6 +62,9 @@ skip-build: skip-pv-build: echo " SKIP rust-pv-tools due to unresolved dependencies" +skip-pvapconfig: + echo " SKIP pvapconfig due to unsupported architecture (s390x only)" + all: $(BUILD_TARGETS) install: $(INSTALL_TARGETS) $(INSTALL) -d -m 755 $(DESTDIR)$(USRBINDIR)