Received: by 2002:a05:6602:18e:0:0:0:0 with SMTP id m14csp2163572ioo; Mon, 23 May 2022 11:35:56 -0700 (PDT) X-Google-Smtp-Source: ABdhPJzMSz7x89U8+FSRNjoUWQSUSIW13f14bENA1tE7zXu6lpIVnBCVgYCjqzTr+fHrAkWwHe+Z X-Received: by 2002:a17:902:7d97:b0:162:22ff:493c with SMTP id a23-20020a1709027d9700b0016222ff493cmr6807215plm.132.1653330955998; Mon, 23 May 2022 11:35:55 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1653330955; cv=none; d=google.com; s=arc-20160816; b=SXS65I0BpHi6ZRJwBTVP0XewenE4NeUi0pa866MOon2Td9WUt3GY+IK8RRJ485vfV/ xPBZCysZYqveCPnWTabWMV0fkT+K517f4uHTFEVC6l6xRCHEMqloCyvzamtUTiiL4a7G huAyvsRZMYaa0Aq/1pyxThY/3mv42PrgWWB2P07Y3mNSusqmmYW6Tj4lpqNERqioDu75 yb+5IRsFOhS9A3K4woEr4cNBly9OOS8SQ5PCtuApn6k7lPu2go8rQFkImC9Txu5Pvvog 3+tvc4OUtfeS7T40UfaWsOKhJO1Tu0FhU2DX+7tHqanYd9dWKnZBnHt1nENQQNbsGJgw j03w== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :message-id:date:subject:cc:to:from:dkim-signature; bh=B/Jj+fABsy4Fumw4SWUNuGMZPcXWeufLZhdHZ0qBZwg=; b=ZlBLjNOC5Yll37lWPOR762rhpWvDOCcoEnIvOYc2RzPCqu8MSX5Jnku1OEdLAHA9lb 5kOuLY01me1Zu4cZdPfJ0PeFC3JYgnulS3E+Ud5jgp753cAVdTWVIBlJTe7sqPaqNuMd KeymDHbhcYwOo50IWWbCGQmcmOaSq3h4Fn5mSjyIZA88XJm6I4kfnTmGECLanwJeCGee U/d70BL/u/TagL9fRViW8xVpnrUNdOC69QRMbNL38MuXBdbaFU1bcxZRNIbIwhMLIWAC 5fSjdOAPykvh+IOhN/psbO/yjGHlTE/JSqfZQ4MwkcLGZaTYqWLTNglYRNe+knRK6RQ/ kuRA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=gl809vgi; spf=softfail (google.com: domain of transitioning linux-kernel-owner@vger.kernel.org does not designate 23.128.96.19 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from lindbergh.monkeyblade.net (lindbergh.monkeyblade.net. [23.128.96.19]) by mx.google.com with ESMTPS id e2-20020a17090a804200b001dc5df1edffsi72671pjw.69.2022.05.23.11.35.55 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 23 May 2022 11:35:55 -0700 (PDT) Received-SPF: softfail (google.com: domain of transitioning linux-kernel-owner@vger.kernel.org does not designate 23.128.96.19 as permitted sender) client-ip=23.128.96.19; Authentication-Results: mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=gl809vgi; spf=softfail (google.com: domain of transitioning linux-kernel-owner@vger.kernel.org does not designate 23.128.96.19 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by lindbergh.monkeyblade.net (Postfix) with ESMTP id 3226114E2F5; Mon, 23 May 2022 11:35:52 -0700 (PDT) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S239829AbiEWSfj (ORCPT + 99 others); Mon, 23 May 2022 14:35:39 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:33652 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S239620AbiEWSfQ (ORCPT ); Mon, 23 May 2022 14:35:16 -0400 Received: from dfw.source.kernel.org (dfw.source.kernel.org [139.178.84.217]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 3647237A08; Mon, 23 May 2022 11:13:07 -0700 (PDT) Received: from smtp.kernel.org (relay.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by dfw.source.kernel.org (Postfix) with ESMTPS id 7AA6E614B2; Mon, 23 May 2022 18:13:06 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 63BD5C385A9; Mon, 23 May 2022 18:13:05 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1653329585; bh=5I0HfikDccwyhVscEZO/bun3P5f/cxGvdT/T0TkbS10=; h=From:To:Cc:Subject:Date:From; b=gl809vgi4yyyRaYOOm6YoPjPi0QTc7FJZ7tkdT2ftzR96j3ftaW2lG730jZyAfBlT CGffwUazv+tN80q2pN1PiJr6aZ1btcKPYvmwVB3KnAzNuoVSmR4d3UzEMpx/RHyn/Z wT1hWH8qWEKqyPSRqv/1o6GMCSzScTdev87DtMcH9Z2NVz1K4wMNXN5HCU6e8J/qoc om0XYSg9yMfmPnIIkaXFXUXwVf00RhcF0th0DX2qZtn1Rpt+T2PB3w5toLViMYRMcH So/F90JljZeoZzzCu+i0dkEmBPaz+maTuUqDIQ9kDqnoyGrUe89nbdmNdoEKa/Bmwx kiACbl5zoY0lw== From: Jarkko Sakkinen To: Shuah Khan Cc: Jarkko Sakkinen , stable@vger.kernel.org, Dave Hansen , Jethro Beekman , Borislav Petkov , linux-sgx@vger.kernel.org, linux-kselftest@vger.kernel.org, linux-kernel@vger.kernel.org Subject: [PATCH v2] selftests/sgx: add test_encl.elf to TEST_GEN_FILES Date: Mon, 23 May 2022 21:11:20 +0300 Message-Id: <20220523181120.54547-1-jarkko@kernel.org> X-Mailer: git-send-email 2.36.1 MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Spam-Status: No, score=-3.0 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,MAILING_LIST_MULTI, RDNS_NONE,SPF_HELO_NONE,T_SCC_BODY_TEXT_LINE autolearn=unavailable autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org TEST_GEN_FILES contains files that are generated during compilation and are required to be included together with the test binaries, e.g. when performing: make -C tools/testing/selftests install INSTALL_PATH=/some/other/path [*] Add test_encl.elf to TEST_GEN_FILES because otherwise the installed test binary will fail to run. [*] https://docs.kernel.org/dev-tools/kselftest.html Cc: stable@vger.kernel.org Fixes: 2adcba79e69d ("selftests/x86: Add a selftest for SGX") Signed-off-by: Jarkko Sakkinen --- v2: Use TEST_GEN_FILES in the "all" target, instead of duplicating the path for test_encl.elf. --- tools/testing/selftests/sgx/Makefile | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/tools/testing/selftests/sgx/Makefile b/tools/testing/selftests/sgx/Makefile index 75af864e07b6..7f60811b5b20 100644 --- a/tools/testing/selftests/sgx/Makefile +++ b/tools/testing/selftests/sgx/Makefile @@ -17,9 +17,10 @@ ENCL_CFLAGS := -Wall -Werror -static -nostdlib -nostartfiles -fPIC \ -fno-stack-protector -mrdrnd $(INCLUDES) TEST_CUSTOM_PROGS := $(OUTPUT)/test_sgx +TEST_GEN_FILES := $(OUTPUT)/test_encl.elf ifeq ($(CAN_BUILD_X86_64), 1) -all: $(TEST_CUSTOM_PROGS) $(OUTPUT)/test_encl.elf +all: $(TEST_CUSTOM_PROGS) $(TEST_GEN_FILES) endif $(OUTPUT)/test_sgx: $(OUTPUT)/main.o \ -- 2.36.1