From patchwork Wed Apr 27 18:19:51 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Mark Brown X-Patchwork-Id: 12829319 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 3043AC433EF for ; Wed, 27 Apr 2022 18:20:15 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S232738AbiD0SXY (ORCPT ); Wed, 27 Apr 2022 14:23:24 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:55928 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S244736AbiD0SXW (ORCPT ); Wed, 27 Apr 2022 14:23:22 -0400 Received: from ams.source.kernel.org (ams.source.kernel.org [IPv6:2604:1380:4601:e00::1]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 77E253D494 for ; Wed, 27 Apr 2022 11:20:09 -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 ams.source.kernel.org (Postfix) with ESMTPS id 36EA4B828C7 for ; Wed, 27 Apr 2022 18:20:08 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id B1D61C385AE; Wed, 27 Apr 2022 18:20:04 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1651083606; bh=wmz3PwuOvlMzXQTJatnv2wCvt/2+MqR+bsBQ3HiNApE=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=vNdvikKk24GE5RtWiV7PVN7Seyp1RDLuRVDkaCoX2iye8lH04QOxDft3Cb8TFcWM4 s/p62OVvnBqOaJFeA7oZgewCzwHKHwYmkPYUeuXbNyVVK51OdKZhzB0lesfj8Q+BHI IX5q9S+8Ekxqji7koNHZPU9Vuqr9PLWLBXz98I3tTkuFQF5NUN2KTL4PDnh/bCtsHq 3WJiKL4rMwtcRlFxsHO3cN3VDVP9DgfiZsOn1cacBEaYrtqrSUGoVEFGdvkZaAh7Qg p+i+HPk7RSCFxzHN75QlcdIhe6sSa4AfWpc2bMfTAm4JIeG/n4kIb6XcfrOMb+MQEW Iyx7I3ToOz02w== From: Mark Brown To: Catalin Marinas , Will Deacon , Shuah Khan , Shuah Khan Cc: linux-arm-kernel@lists.infradead.org, linux-kselftest@vger.kernel.org, Mark Brown Subject: [PATCH v3 1/4] selftests/arm64: Use TEST_GEN_PROGS_EXTENDED in the FP Makefile Date: Wed, 27 Apr 2022 19:19:51 +0100 Message-Id: <20220427181954.357975-2-broonie@kernel.org> X-Mailer: git-send-email 2.30.2 In-Reply-To: <20220427181954.357975-1-broonie@kernel.org> References: <20220427181954.357975-1-broonie@kernel.org> MIME-Version: 1.0 X-Developer-Signature: v=1; a=openpgp-sha256; l=1364; h=from:subject; bh=wmz3PwuOvlMzXQTJatnv2wCvt/2+MqR+bsBQ3HiNApE=; b=owEBbQGS/pANAwAKASTWi3JdVIfQAcsmYgBiaYlGAYn/Esfdx4aZYt8/4V2Dka5jpcovBRub8atp ahQ7xq+JATMEAAEKAB0WIQSt5miqZ1cYtZ/in+ok1otyXVSH0AUCYmmJRgAKCRAk1otyXVSH0AAvB/ 94QZzXYQDcmTmcF8OfwAsbAh1iZZFrMFwe/E9OlLXDSatvm+6iALLyWIWaoQl8lB1HbVA2Eb3qJc7o JmhkT+1WYd+uj/ogRCJgJpngKq5rKdcLsZYL9mJ418+S8kWLkLfL63EHuZ5pPnWNpMWRbLNqotXl10 gQtPEn7OM7vFHqBxvuJNcCPXv7pc1bO5IgWqSlBLb87fLQqOe3IF4AZWTqTD8B3fcO+kGJKp5jCYgJ qNUVloczMxv3FM7+byRty02kxEtf748j3pyuJrv3LzrzoRgew+pR9wkPrW0x4Tp1T8IhRfK2n7e1B0 xrODZeDydWtpjmqoZ+IwZqTmDkbvFW X-Developer-Key: i=broonie@kernel.org; a=openpgp; fpr=3F2568AAC26998F9E813A1C5C3F436CA30F5D8EB Precedence: bulk List-ID: X-Mailing-List: linux-kselftest@vger.kernel.org The kselftest lib.mk provides a default all target which builds additional programs from TEST_GEN_PROGS_EXTENDED, use that rather than using TEST_PROGS_EXTENDED which is for programs that don't need to be built like shell scripts. Leave fpsimd-stress and sve-stress there since they are scripts. Signed-off-by: Mark Brown --- tools/testing/selftests/arm64/fp/Makefile | 11 +++++------ 1 file changed, 5 insertions(+), 6 deletions(-) diff --git a/tools/testing/selftests/arm64/fp/Makefile b/tools/testing/selftests/arm64/fp/Makefile index 95e707e32247..a0b8cc59947e 100644 --- a/tools/testing/selftests/arm64/fp/Makefile +++ b/tools/testing/selftests/arm64/fp/Makefile @@ -2,14 +2,13 @@ CFLAGS += -I../../../../../usr/include/ TEST_GEN_PROGS := sve-ptrace sve-probe-vls vec-syscfg za-fork za-ptrace -TEST_PROGS_EXTENDED := fp-pidbench fpsimd-test fpsimd-stress \ +TEST_GEN_PROGS_EXTENDED := fp-pidbench fpsimd-test \ rdvl-sme rdvl-sve \ - sve-test sve-stress \ - ssve-test ssve-stress \ - za-test za-stress \ + sve-test \ + ssve-test \ + za-test \ vlset - -all: $(TEST_GEN_PROGS) $(TEST_PROGS_EXTENDED) +TEST_PROGS_EXTENDED := fpsimd-stress sve-stress ssve-stress za-stress # Build with nolibc to avoid effects due to libc's clone() support fp-pidbench: fp-pidbench.S asm-utils.o From patchwork Wed Apr 27 18:19:52 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Mark Brown X-Patchwork-Id: 12829320 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 41DCEC433FE for ; Wed, 27 Apr 2022 18:20:15 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S244722AbiD0SXY (ORCPT ); Wed, 27 Apr 2022 14:23:24 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:55718 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S244759AbiD0SXX (ORCPT ); Wed, 27 Apr 2022 14:23:23 -0400 Received: from dfw.source.kernel.org (dfw.source.kernel.org [IPv6:2604:1380:4641:c500::1]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 7BF0557B00 for ; Wed, 27 Apr 2022 11:20:11 -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 E4B8261EC5 for ; Wed, 27 Apr 2022 18:20:10 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 72840C385B0; Wed, 27 Apr 2022 18:20:07 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1651083610; bh=gHy5Pzdnv72scy6DqvoelzyZ/H/4ii7tQ9zROCUikWA=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=b2sO6LnVw7kZIEMqCaiCxxYPbBsjA1vdtFsktLbKZpIvN1Bj/mXiRHfYtwy+GjUQp ot04Jv/CxPGNh03LKwDV8EvLgcFHs6Hqh0zyEsl5hdLW+wR1xJEQt+jm4kcxrVJCFW Ws8BrXraVKQ2jL+TueqhzCb4hYfLE7YWMQ+9hjziVioepiOIZDv+2pFSXe8AjRvCSJ JKbvHwEuETE7VtWTKH0hU2xZnKykT1PR6RKS2VqvBKnUdQVkuN/p9uvEjvy1ebAKZ9 6fW+HJ7ox0ZRK4knvwaIISQkkFPnjZl3vdNU7yrjfJt6yw4KeqIdHo82SX1Jngqv6q 8JzBlQ7tP+6Hw== From: Mark Brown To: Catalin Marinas , Will Deacon , Shuah Khan , Shuah Khan Cc: linux-arm-kernel@lists.infradead.org, linux-kselftest@vger.kernel.org, Mark Brown Subject: [PATCH v3 2/4] selftests/arm64: Define top_srcdir for the fp tests Date: Wed, 27 Apr 2022 19:19:52 +0100 Message-Id: <20220427181954.357975-3-broonie@kernel.org> X-Mailer: git-send-email 2.30.2 In-Reply-To: <20220427181954.357975-1-broonie@kernel.org> References: <20220427181954.357975-1-broonie@kernel.org> MIME-Version: 1.0 X-Developer-Signature: v=1; a=openpgp-sha256; l=927; h=from:subject; bh=gHy5Pzdnv72scy6DqvoelzyZ/H/4ii7tQ9zROCUikWA=; b=owEBbQGS/pANAwAKASTWi3JdVIfQAcsmYgBiaYlHq83De5xKzh1CORvbTOM15QkgGr2W+XxhGK0O ZyTeMPWJATMEAAEKAB0WIQSt5miqZ1cYtZ/in+ok1otyXVSH0AUCYmmJRwAKCRAk1otyXVSH0FshB/ 4nsTQASi7s0/tXtJ6ZDMBC9EL4uCGwwjfW1WOExi46uSjRcXH0Yz8f2Z1LPMcy+OTtUAhD936LOEUk T3X8tRnDabLKSCsWCBf9ojAhZeZpb9sFYhNN16qQ7LkVXfeMQN2FdBU9vRJhZlscgmDxjNw9Kedr4s KlnhdV1m2ODAGYmzKhvPfPyJWNQv1fTI9lQQ1rfdy1vvkArMrPO4/6HAetUeHA8jX2p6Bhe4w4pZB8 ZQKK3G7To3v/yIP7hSje6hGSuZZY890CpB822UatT7y+7CLHcALSmCGJXPtYC6ZA4oNHCbimAgJLLY 1uoEGmYgG5YEq2MRBJOE1G0w8DgUts X-Developer-Key: i=broonie@kernel.org; a=openpgp; fpr=3F2568AAC26998F9E813A1C5C3F436CA30F5D8EB Precedence: bulk List-ID: X-Mailing-List: linux-kselftest@vger.kernel.org Some of the rules in lib.mk use a top_srcdir variable to figure out where the top of the kselftest tree is, provide it. Signed-off-by: Mark Brown --- tools/testing/selftests/arm64/fp/Makefile | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/tools/testing/selftests/arm64/fp/Makefile b/tools/testing/selftests/arm64/fp/Makefile index a0b8cc59947e..ba758a6c6b9a 100644 --- a/tools/testing/selftests/arm64/fp/Makefile +++ b/tools/testing/selftests/arm64/fp/Makefile @@ -1,6 +1,10 @@ # SPDX-License-Identifier: GPL-2.0 -CFLAGS += -I../../../../../usr/include/ +# A proper top_srcdir is needed by KSFT(lib.mk) +top_srcdir = $(realpath ../../../../../) + +CFLAGS += -I$(top_srcdir)/usr/include/ + TEST_GEN_PROGS := sve-ptrace sve-probe-vls vec-syscfg za-fork za-ptrace TEST_GEN_PROGS_EXTENDED := fp-pidbench fpsimd-test \ rdvl-sme rdvl-sve \ From patchwork Wed Apr 27 18:19:53 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Mark Brown X-Patchwork-Id: 12829321 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 52124C433F5 for ; Wed, 27 Apr 2022 18:20:16 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229690AbiD0SX0 (ORCPT ); Wed, 27 Apr 2022 14:23:26 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:56384 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S244725AbiD0SXZ (ORCPT ); Wed, 27 Apr 2022 14:23:25 -0400 Received: from dfw.source.kernel.org (dfw.source.kernel.org [139.178.84.217]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 3FA3856779 for ; Wed, 27 Apr 2022 11:20:14 -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 CE6D061B1C for ; Wed, 27 Apr 2022 18:20:13 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 0FCE4C385AF; Wed, 27 Apr 2022 18:20:10 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1651083613; bh=KeHxjI3X0KHJ4YKwVGdoQpHrsUbHr5T16xq2vz+3ddM=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=HBhatwDLQAO4qeAhL9w8aLnLHNSQj456s8Bb5MgdWK+LJ3XYVBYcsDwxFcWcgS/YF SX7BsjOpTxa/2V1/ZOgOFAHRMG4udYmicBCgslK5OKQqSOJ1HX6OkoGm97RFMaNuv1 480dFKj+T11JbcUEXvw1+LGCnXxhrD6zpuu2nFW+vpAx4CFZ6fkxfG8lH+eHuf5YJ0 rxjrz8pqLvmuBAXSVf+1JiPKvHmopw3I2jm3hciQyx2Dmznj9CO8dEsDqZa3gd7aMU bLI1n2cHTfkAyQT56fv5swgSLLdvY8btOUJ8xjlb5GNpUOfzQaOkgBLJX0nbHdmhzv gqmvzmsQUZjdg== From: Mark Brown To: Catalin Marinas , Will Deacon , Shuah Khan , Shuah Khan Cc: linux-arm-kernel@lists.infradead.org, linux-kselftest@vger.kernel.org, Mark Brown Subject: [PATCH v3 3/4] selftests/arm64: Clean the fp helper libraries Date: Wed, 27 Apr 2022 19:19:53 +0100 Message-Id: <20220427181954.357975-4-broonie@kernel.org> X-Mailer: git-send-email 2.30.2 In-Reply-To: <20220427181954.357975-1-broonie@kernel.org> References: <20220427181954.357975-1-broonie@kernel.org> MIME-Version: 1.0 X-Developer-Signature: v=1; a=openpgp-sha256; l=889; h=from:subject; bh=KeHxjI3X0KHJ4YKwVGdoQpHrsUbHr5T16xq2vz+3ddM=; b=owEBbQGS/pANAwAKASTWi3JdVIfQAcsmYgBiaYlHtRa4HrvcFyy6aPu897kqHpF4KvhnoI0/VS4u g8sERlGJATMEAAEKAB0WIQSt5miqZ1cYtZ/in+ok1otyXVSH0AUCYmmJRwAKCRAk1otyXVSH0Gd8B/ 93X6kmzuItkJLuNqb7/aS8CQH/7pqYwf1cYa9p/9S1UKoKAoY41OGcIw9H0p1cLhZdQK+R4iDzgN+Z 56qUex/Wt1H6XQVshFlAn6U79LAtMgcX8TsQuKrGO+Jq+mqJmuDHjQ5GiKd037IHGXGUOoewjd/VhE Cvwp9AtdGWG3ERht36dpBo1yZH79VwkZv2dVvGlIDkaaO/upnex+zXJEGob96svB7gSweQY9rtwq1T CKKpeJuLiR7+xAlPabMH2JDVRNGAudL4Sj5UgBBmu7mDERdAGZub/fHyIA8n0VjUaudI6Cni4QFGT7 uHVQR4k4B/U5HbMUMeT9FVLwWUq0Tm X-Developer-Key: i=broonie@kernel.org; a=openpgp; fpr=3F2568AAC26998F9E813A1C5C3F436CA30F5D8EB Precedence: bulk List-ID: X-Mailing-List: linux-kselftest@vger.kernel.org We provide a couple of object files with helpers linked into several of the test programs, ensure they are cleaned. Signed-off-by: Mark Brown --- tools/testing/selftests/arm64/fp/Makefile | 2 ++ 1 file changed, 2 insertions(+) diff --git a/tools/testing/selftests/arm64/fp/Makefile b/tools/testing/selftests/arm64/fp/Makefile index ba758a6c6b9a..7e5d48c4a59d 100644 --- a/tools/testing/selftests/arm64/fp/Makefile +++ b/tools/testing/selftests/arm64/fp/Makefile @@ -14,6 +14,8 @@ TEST_GEN_PROGS_EXTENDED := fp-pidbench fpsimd-test \ vlset TEST_PROGS_EXTENDED := fpsimd-stress sve-stress ssve-stress za-stress +EXTRA_CLEAN += $(OUTPUT)/asm-utils.o $(OUTPUT)/rdvl.o $(OUTPUT)/za-fork-asm.o + # Build with nolibc to avoid effects due to libc's clone() support fp-pidbench: fp-pidbench.S asm-utils.o $(CC) -nostdlib $^ -o $@ From patchwork Wed Apr 27 18:19:54 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Mark Brown X-Patchwork-Id: 12829322 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 2E99EC433EF for ; Wed, 27 Apr 2022 18:20:23 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S244679AbiD0SXd (ORCPT ); Wed, 27 Apr 2022 14:23:33 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:56572 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S244723AbiD0SXa (ORCPT ); Wed, 27 Apr 2022 14:23:30 -0400 Received: from ams.source.kernel.org (ams.source.kernel.org [IPv6:2604:1380:4601:e00::1]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 105E0580C8 for ; Wed, 27 Apr 2022 11:20:18 -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 ams.source.kernel.org (Postfix) with ESMTPS id BE08AB828C3 for ; Wed, 27 Apr 2022 18:20:16 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id B8E42C385B0; Wed, 27 Apr 2022 18:20:13 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1651083615; bh=cSixAmlTKw2H16xY90fD7WUxVIixGgp++6gG6bobZN4=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=c0zPWuZ61bxd2O36m2WONC/A11wEeAfoaz3iOH4pPyemaDoVKRmfclY0TjBz1vQzb KRRfpBHnL5w7ARMm60jEV2I/kqM9TNUEz9OGxevAJcliln9XlL/Y4xCjTilrCEGFZX Rm3XUcnsARcSiEDgkeQaNy/bA6MR/62EoGwfPWt/irg1MgZlX9c9udwUb3Y0vc5l+1 R/TkUYl1V93f1+UGwyuqY+Tk4SzKOt3ckVVZJ6XJeV6Akh3IYJjJH+eKuNkYG4q/Ou HNkKj5/tljapuJyp6aQ8Akf8qQJus34LxcXNFeLnffk+6VXlMvzSfd82UnXVBp4x75 U+Ud9znCVuejA== From: Mark Brown To: Catalin Marinas , Will Deacon , Shuah Khan , Shuah Khan Cc: linux-arm-kernel@lists.infradead.org, linux-kselftest@vger.kernel.org, Mark Brown Subject: [PATCH v3 4/4] selftests/arm64: Fix O= builds for the floating point tests Date: Wed, 27 Apr 2022 19:19:54 +0100 Message-Id: <20220427181954.357975-5-broonie@kernel.org> X-Mailer: git-send-email 2.30.2 In-Reply-To: <20220427181954.357975-1-broonie@kernel.org> References: <20220427181954.357975-1-broonie@kernel.org> MIME-Version: 1.0 X-Developer-Signature: v=1; a=openpgp-sha256; l=2912; h=from:subject; bh=cSixAmlTKw2H16xY90fD7WUxVIixGgp++6gG6bobZN4=; b=owEBbQGS/pANAwAKASTWi3JdVIfQAcsmYgBiaYlIGvewxxC8WRJH/MZ9rckliMw+BcxTDoacoDZk y0L/jdKJATMEAAEKAB0WIQSt5miqZ1cYtZ/in+ok1otyXVSH0AUCYmmJSAAKCRAk1otyXVSH0DvIB/ 9BgsWRrlKD4/z8sAmXXd9W29zuNfcoXDM3fl4iPLwzkHDKxfveLr68wW+S39yuxJ8d7RSU4cGRxK4C OkFYYvS7jEuP0aGPVDyKbNilfWfqjbog9MxUJtIvgUtcgtfwxCzNrq4BgdGJPYD0NtI6F8DWP+VaEb Ukcs79GSfNAr57zrN1el4rsnH78fqpc5Sga3vpPT4rSy6Y6CrCu0CZ84awNHRnXfkTk760hfkhPtu/ ZhTG0JFs9F1vylyt5prgfkkr7HgeEtBWWlkSR2fD4oiPAvtZnrSJtcF0LHk9CzUcJ7r+VRTwlisIYC 3UzgWB/MWblR7w0j1qoS1FrWBxNLLX X-Developer-Key: i=broonie@kernel.org; a=openpgp; fpr=3F2568AAC26998F9E813A1C5C3F436CA30F5D8EB Precedence: bulk List-ID: X-Mailing-List: linux-kselftest@vger.kernel.org Currently the arm64 floating point tests don't support out of tree builds due to two quirks of the kselftest build system. One is that when building a program from multiple files we shouldn't separately compile the main program to an object file as that will result in the pattern rule not matching when adjusted for the output directory. The other is that we also need to include $(OUTPUT) in the names of the binaries when specifying the dependencies in order to ensure that they get picked up with O=. Rewrite the dependencies for the executables to fix these issues. The kselftest build system will ensure OUTPUT is always defined. Signed-off-by: Mark Brown --- tools/testing/selftests/arm64/fp/Makefile | 32 +++++++++++------------ 1 file changed, 15 insertions(+), 17 deletions(-) diff --git a/tools/testing/selftests/arm64/fp/Makefile b/tools/testing/selftests/arm64/fp/Makefile index 7e5d48c4a59d..a7c2286bf65b 100644 --- a/tools/testing/selftests/arm64/fp/Makefile +++ b/tools/testing/selftests/arm64/fp/Makefile @@ -17,28 +17,26 @@ TEST_PROGS_EXTENDED := fpsimd-stress sve-stress ssve-stress za-stress EXTRA_CLEAN += $(OUTPUT)/asm-utils.o $(OUTPUT)/rdvl.o $(OUTPUT)/za-fork-asm.o # Build with nolibc to avoid effects due to libc's clone() support -fp-pidbench: fp-pidbench.S asm-utils.o +$(OUTPUT)/fp-pidbench: fp-pidbench.S $(OUTPUT)/asm-utils.o $(CC) -nostdlib $^ -o $@ -fpsimd-test: fpsimd-test.o asm-utils.o +$(OUTPUT)/fpsimd-test: fpsimd-test.S $(OUTPUT)/asm-utils.o $(CC) -nostdlib $^ -o $@ -rdvl-sme: rdvl-sme.o rdvl.o -rdvl-sve: rdvl-sve.o rdvl.o -sve-ptrace: sve-ptrace.o -sve-probe-vls: sve-probe-vls.o rdvl.o -sve-test: sve-test.o asm-utils.o +$(OUTPUT)/rdvl-sve: rdvl-sve.c $(OUTPUT)/rdvl.o +$(OUTPUT)/rdvl-sme: rdvl-sme.c $(OUTPUT)/rdvl.o +$(OUTPUT)/sve-ptrace: sve-ptrace.c +$(OUTPUT)/sve-probe-vls: sve-probe-vls.c $(OUTPUT)/rdvl.o +$(OUTPUT)/sve-test: sve-test.S $(OUTPUT)/asm-utils.o $(CC) -nostdlib $^ -o $@ -ssve-test: sve-test.S asm-utils.o +$(OUTPUT)/ssve-test: sve-test.S $(OUTPUT)/asm-utils.o $(CC) -DSSVE -nostdlib $^ -o $@ -vec-syscfg: vec-syscfg.o rdvl.o -vlset: vlset.o -za-fork: za-fork.o za-fork-asm.o - $(CC) -nostdlib -static $^ -o $@ -lgcc -za-fork.o: za-fork.c - $(CC) -c -fno-asynchronous-unwind-tables -fno-ident -s -Os -nostdlib \ +$(OUTPUT)/vec-syscfg: vec-syscfg.c $(OUTPUT)/rdvl.o +$(OUTPUT)/vlset: vlset.c +$(OUTPUT)/za-fork: za-fork.c $(OUTPUT)/za-fork-asm.o + $(CC) -fno-asynchronous-unwind-tables -fno-ident -s -Os -nostdlib \ -include ../../../../include/nolibc/nolibc.h \ - -ffreestanding -Wall $^ -o $@ -za-test: za-test.o asm-utils.o + -static -ffreestanding -Wall $^ -o $@ +$(OUTPUT)/za-ptrace: za-ptrace.c +$(OUTPUT)/za-test: za-test.S $(OUTPUT)/asm-utils.o $(CC) -nostdlib $^ -o $@ -za-ptrace: za-ptrace.o include ../../lib.mk