Received: by 2002:a5d:925a:0:0:0:0:0 with SMTP id e26csp789046iol; Thu, 9 Jun 2022 14:07:40 -0700 (PDT) X-Google-Smtp-Source: ABdhPJxyBeDkl0SRo88XUMoM+5T2hXmlneGpZZ1g41408WA988nY2ygjG1PSk9oMg1yGClNKpDyR X-Received: by 2002:a17:907:7249:b0:711:e939:bbb4 with SMTP id ds9-20020a170907724900b00711e939bbb4mr12775427ejc.480.1654808859801; Thu, 09 Jun 2022 14:07:39 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1654808859; cv=none; d=google.com; s=arc-20160816; b=mqKc/6urtGAFxiMUoNLfxleWat9h2FlUFYHWtHNa0I5jWBb0fItLeHYxgEaaPF3EGO DEW4rBEaXFJuibZGyBEafbQheMNjPR0+5CsSE+5ECWeqJVAmMakGquU88tatsUrRvB1w aeeI8ztwrI0hFOD1HmHnvmjc651idfOXpfs5hgmbeeBhAqlTRw6l3gPUZBybBAJje7NS F+pGMaGCewwX3lDRWoGJ7nH+a0fsK+CLWG7HEg1ZchAqRhDZsiX4WRh1TxlrYw+KTKhy qtgs8qvJHviR9DdBM7+Xn+qcly67CzEG5cui+7OcPZwK4PyX6S8165WAs7LCYfGJ02I8 lxWQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:content-language :in-reply-to:mime-version:user-agent:date:message-id:from:references :cc:to:subject:dkim-signature; bh=pCT+y9wLdgLk9pr0qPxcnU+1Oz3gXAHCLeApcNSQYOE=; b=Nab9WQ0G45DIhYyXkA9zBnpcj9FDaEhcM3s+ODupkT/9DLIbMIzQcauvGGM6umrmQu U01pQZXnU1ERAn9dbaqQLwGF0/kGvSR1u1Ksg/RitdDs+LsmQFMa4cHVYr1LpdOEw2Hs rzUbNqluP5F6RzjqEbYRB1YUFzD1g7GRz3Ii+e/us3i2oRH33ZFzZ3hbiJ88ozSkMZHg R/jbjM0+hgOVDCe+dMhYlxzgUXpWkkzSIZ98LhbUxYjUF5CAPE0fosfVuZKZJ9+5ZPSv P/msXt+LCiC6B6myApUWDV0ewkcC4ySPIbfTgztmfyH6jL30z3DwtHK0u82r9aQ608hJ 30KA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linuxfoundation.org header.s=google header.b=L9uVwEcY; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linuxfoundation.org Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id zn2-20020a170906ff0200b006fef50e5303si5285238ejb.330.2022.06.09.14.07.13; Thu, 09 Jun 2022 14:07:39 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=pass header.i=@linuxfoundation.org header.s=google header.b=L9uVwEcY; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linuxfoundation.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S233185AbiFIUTS (ORCPT + 99 others); Thu, 9 Jun 2022 16:19:18 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:37896 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229965AbiFIUTQ (ORCPT ); Thu, 9 Jun 2022 16:19:16 -0400 Received: from mail-io1-xd2d.google.com (mail-io1-xd2d.google.com [IPv6:2607:f8b0:4864:20::d2d]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 198711EACC for ; Thu, 9 Jun 2022 13:19:15 -0700 (PDT) Received: by mail-io1-xd2d.google.com with SMTP id 19so3991924iou.12 for ; Thu, 09 Jun 2022 13:19:15 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linuxfoundation.org; s=google; h=subject:to:cc:references:from:message-id:date:user-agent :mime-version:in-reply-to:content-language:content-transfer-encoding; bh=pCT+y9wLdgLk9pr0qPxcnU+1Oz3gXAHCLeApcNSQYOE=; b=L9uVwEcY/Lap/ZIMMt3tnyaUdoQ9QD4lkE+EslYMWxv7mLtjl6CrudtW9ukzu08cwf ECC4NczaK2O4ruQ36eLwdwcU9SbAPD2uvCdsltcSDUuxfwAQLLKTstARjRKtU6z9Z+WH WREnbUTFFAj9MsTdqb6AmYI3ez3Tigxt48Zvk= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:subject:to:cc:references:from:message-id:date :user-agent:mime-version:in-reply-to:content-language :content-transfer-encoding; bh=pCT+y9wLdgLk9pr0qPxcnU+1Oz3gXAHCLeApcNSQYOE=; b=3tbOLVDlZjDykMw7Xrka6mFtfYDNtEpBwnCqUIL9fuZDdDU4x7s7UHjA2pR6gLKZyN REYL6F4/QSFU4CybJZqJwcXemH7zomJo4YmMS7e28kQ/5E4QXUsv+vIsLKy4KURQYQQc mrgkcOHyZR3V3ztsP+wvdJG7tiSTS4b0lp+07SFPQ6KSPt4l0LvKWAwJTA2Zy/auOq71 ypQbxPrq/g59Oclhhq4wB83RvqC9HFAmmzlD2DEs/sNs/0hB7xiQN3mgB0xfhB8zr5g2 EzEAL0LEvTKHebz4TwD63VkjtQxdA0h4kMHiI2Y0dRS1/t3sxZyXIo7huG5idw1s+cHl VV6Q== X-Gm-Message-State: AOAM533T7c/w0K+LKzfuxUX/FNA4mG4CNe6p2R2SfronfcsQJprin+Zo lkFGmulAmTEX1ZmRDby6VRenhNZrmnoqvw== X-Received: by 2002:a02:3506:0:b0:328:9a29:678 with SMTP id k6-20020a023506000000b003289a290678mr21945056jaa.33.1654805954469; Thu, 09 Jun 2022 13:19:14 -0700 (PDT) Received: from [192.168.1.128] ([38.15.45.1]) by smtp.gmail.com with ESMTPSA id i3-20020a02a0c3000000b00330c5581c03sm10001148jah.1.2022.06.09.13.19.13 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Thu, 09 Jun 2022 13:19:14 -0700 (PDT) Subject: Re: [PATCH v2] selftests/sgx: add test_encl.elf to TEST_GEN_FILES To: Jarkko Sakkinen , Shuah Khan , dave.hansen@linux.intel.com Cc: stable@vger.kernel.org, Jethro Beekman , Borislav Petkov , linux-sgx@vger.kernel.org, linux-kselftest@vger.kernel.org, linux-kernel@vger.kernel.org, Shuah Khan References: <20220523181120.54547-1-jarkko@kernel.org> From: Shuah Khan Message-ID: <7d1a2605-d4c5-3e78-d3cf-ebb9a737abb5@linuxfoundation.org> Date: Thu, 9 Jun 2022 14:19:13 -0600 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:78.0) Gecko/20100101 Thunderbird/78.8.1 MIME-Version: 1.0 In-Reply-To: Content-Type: text/plain; charset=utf-8; format=flowed Content-Language: en-US Content-Transfer-Encoding: 7bit X-Spam-Status: No, score=-4.5 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,NICE_REPLY_A, RCVD_IN_DNSWL_NONE,SPF_HELO_NONE,SPF_PASS,T_SCC_BODY_TEXT_LINE, URIBL_BLOCKED autolearn=ham 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 On 5/25/22 6:39 PM, Jarkko Sakkinen wrote: > On Mon, May 23, 2022 at 09:11:20PM +0300, Jarkko Sakkinen wrote: >> 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 >> > > Dave, would it be by any means possible to pick this? My workload is > kernel testing with buildroot [*]. > > [*] Related: > https://lore.kernel.org/buildroot/2c42570b01b2b51cc33d6623b25a736e4f20c601.camel@iki.fi/T/#t > > BR, Jarkko > I can pick this up with ack from Dave or here is mine to go through Dave's Reviewed-by: Shuah Khan thanks, -- Shuah