From nobody Tue Dec 16 16:43:30 2025 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by smtp.lore.kernel.org (Postfix) with ESMTP id 90AA6C4167B for ; Fri, 8 Dec 2023 18:21:25 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S233806AbjLHSVR (ORCPT ); Fri, 8 Dec 2023 13:21:17 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:40434 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229772AbjLHSVP (ORCPT ); Fri, 8 Dec 2023 13:21:15 -0500 Received: from galois.linutronix.de (Galois.linutronix.de [193.142.43.55]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 3AD0E84; Fri, 8 Dec 2023 10:21:21 -0800 (PST) Date: Fri, 08 Dec 2023 18:21:18 -0000 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linutronix.de; s=2020; t=1702059679; h=from:from:sender:sender:reply-to:reply-to:subject:subject:date:date: message-id:message-id:to:to:cc:cc:mime-version:mime-version: content-type:content-type: content-transfer-encoding:content-transfer-encoding; bh=rl/u+AHVkXYVw7Am514fHW33Ua/oZNkO29uc1iwBl68=; b=LH3RzslsFm+94r1TWDQ0IDpO80KOcDzKH2l2oG0x7ZWmAOzKS/swiEwuf86w4dclHsAFyK yacse5vB/xOFwIcMg2wPuj6nzL4aO6ke8Qe2NVJv71ZHTTtSplZfC0L488rZA3hKdN7m6v ccT5hHYMGV3hS0W70Kfihu0VnJ+EhNk7lH2g5+MQ7qdWFdS+uyCxWwR+bjdsDYo7T1A8uM a1QvxGZMXrKj41MS/+O+cawT+KBLa9Ot4dPAX3/3VHTwWsHhSYmff9raw/hD9TfJUmu9Fw JgZTRcuzgPlU46WUgn+mN1Uf/EKd4vqFvt70bdP7GdfNl7TKfXgzvhAYzp2z/g== DKIM-Signature: v=1; a=ed25519-sha256; c=relaxed/relaxed; d=linutronix.de; s=2020e; t=1702059679; h=from:from:sender:sender:reply-to:reply-to:subject:subject:date:date: message-id:message-id:to:to:cc:cc:mime-version:mime-version: content-type:content-type: content-transfer-encoding:content-transfer-encoding; bh=rl/u+AHVkXYVw7Am514fHW33Ua/oZNkO29uc1iwBl68=; b=EzL71+T5A2f2WsDNIIrWruis+ooSXrGjIADrAk6X3YPeENdO6+wB9vt2XtjNdEbzUZg+WT /tPYIpKRL4xDf/Ag== From: "tip-bot2 for Zhao Mengmeng" Sender: tip-bot2@linutronix.de Reply-to: linux-kernel@vger.kernel.org To: linux-tip-commits@vger.kernel.org Subject: [tip: x86/sgx] selftests/sgx: Skip non X86_64 platform Cc: Zhao Mengmeng , Dave Hansen , Jarkko Sakkinen , x86@kernel.org, linux-kernel@vger.kernel.org MIME-Version: 1.0 Message-ID: <170205967894.398.11030924595049592850.tip-bot2@tip-bot2> Robot-ID: Robot-Unsubscribe: Contact to get blacklisted from these emails Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: quoted-printable Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org The following commit has been merged into the x86/sgx branch of tip: Commit-ID: 981cf568a8644161c2f15c02278ebc2834b51ba6 Gitweb: https://git.kernel.org/tip/981cf568a8644161c2f15c02278ebc283= 4b51ba6 Author: Zhao Mengmeng AuthorDate: Tue, 05 Dec 2023 21:56:05 -05:00 Committer: Dave Hansen CommitterDate: Fri, 08 Dec 2023 10:08:17 -08:00 selftests/sgx: Skip non X86_64 platform When building whole selftests on arm64, rsync gives an erorr about sgx: rsync: [sender] link_stat "/root/linux-next/tools/testing/selftests/sgx/tes= t_encl.elf" failed: No such file or directory (2) rsync error: some files/attrs were not transferred (see previous errors) (c= ode 23) at main.c(1327) [sender=3D3.2.5] The root casue is sgx only used on X86_64, and shall be skipped on other platforms. Fix this by moving TEST_CUSTOM_PROGS and TEST_FILES inside the if check, then the build result will be "Skipping non-existent dir: sgx". Fixes: 2adcba79e69d ("selftests/x86: Add a selftest for SGX") Signed-off-by: Zhao Mengmeng Signed-off-by: Dave Hansen Reviewed-by: Jarkko Sakkinen Link: https://lore.kernel.org/all/20231206025605.3965302-1-zhaomzhao%40126.= com --- tools/testing/selftests/sgx/Makefile | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tools/testing/selftests/sgx/Makefile b/tools/testing/selftests= /sgx/Makefile index 8d2ba6a..867f88c 100644 --- a/tools/testing/selftests/sgx/Makefile +++ b/tools/testing/selftests/sgx/Makefile @@ -18,10 +18,10 @@ ENCL_CFLAGS +=3D -Wall -Werror -static-pie -nostdlib -f= freestanding -fPIE \ -fno-stack-protector -mrdrnd $(INCLUDES) ENCL_LDFLAGS :=3D -Wl,-T,test_encl.lds,--build-id=3Dnone =20 +ifeq ($(CAN_BUILD_X86_64), 1) TEST_CUSTOM_PROGS :=3D $(OUTPUT)/test_sgx TEST_FILES :=3D $(OUTPUT)/test_encl.elf =20 -ifeq ($(CAN_BUILD_X86_64), 1) all: $(TEST_CUSTOM_PROGS) $(OUTPUT)/test_encl.elf endif