From patchwork Mon Apr 11 11:47:07 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Mark Brown X-Patchwork-Id: 12809050 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 1A31FC433F5 for ; Mon, 11 Apr 2022 11:56:13 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S244019AbiDKL6Z (ORCPT ); Mon, 11 Apr 2022 07:58:25 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:56220 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S244487AbiDKL6Y (ORCPT ); Mon, 11 Apr 2022 07:58:24 -0400 Received: from dfw.source.kernel.org (dfw.source.kernel.org [139.178.84.217]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 6565543AC6 for ; Mon, 11 Apr 2022 04:56:08 -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 00A78615B0 for ; Mon, 11 Apr 2022 11:56:08 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id CDCF0C385AC; Mon, 11 Apr 2022 11:56:05 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1649678167; bh=niTA8yGMk6C4xgjH095qVgtFQfGX5ZsTIZzuU2FMXv8=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=EFJU5bXVNAfSusqnS+LiKGPAIpkuRxt8diucNJwIgBkKdH0I3K22j6SOjKmjP8mWj UGKlHV2SQI5dC0dYtTSHJ8pFo+TaZvm1mhbp+aAcQdEVKht+k8T1M5L90xf68DxDAN uEDX6liRBHHVeqlrK/+CQv4oxWH5KtXeMztn3F9uIGugADzCLkIvKRLrxuFqHcMtxL GxZkZZ7ndx4vzrp5sn7iyBvI02IYU76jVxFe/kJKB9wG7r9OpaiwhPY2CC8DKjzWGf MyJFTUNE/gtU+AslzP69jMlPGJhwHIvHO9FxPxXnhbYWPFCqXxdWdXG14HZAzBDm6r Nm99sQsLUpRJQ== 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 v1 1/4] selftests/arm64: Use TEST_GEN_PROGS_EXTENDED in the FP Makefile Date: Mon, 11 Apr 2022 12:47:07 +0100 Message-Id: <20220411114710.16204-2-broonie@kernel.org> X-Mailer: git-send-email 2.30.2 In-Reply-To: <20220411114710.16204-1-broonie@kernel.org> References: <20220411114710.16204-1-broonie@kernel.org> MIME-Version: 1.0 X-Developer-Signature: v=1; a=openpgp-sha256; l=1191; h=from:subject; bh=niTA8yGMk6C4xgjH095qVgtFQfGX5ZsTIZzuU2FMXv8=; b=owEBbQGS/pANAwAKASTWi3JdVIfQAcsmYgBiVBU4EfHRkox3RJIBu/7fbWnH2l7INwpX/OiKMaPF WTHZ5J2JATMEAAEKAB0WIQSt5miqZ1cYtZ/in+ok1otyXVSH0AUCYlQVOAAKCRAk1otyXVSH0CRTB/ 9c/A0eL0KHHXTC4VhKaeT+QLChHSqqNmmFRZclJIsUJByegofEn+vZGnojfDZu/RTzH4wySwLgAWGe v4hhT4ygAlGeDV/2IxVOh5rrhVOve5V0jDfTNrjVO4ucSTBxbu7QW/MEsNvWlBx18UQtL8brr6tgiU 477ypXM05Vy2EfiVO9G8vAWdCsWVmi+WA/0KvQcyXDmqXbVFOiFMdZapVIEmBZYJkoV8hTThB9dgUI ca725LNkTR7FelEMPMqOc+d3H3Hr2NGMlCfioYfpTtBF5XzL1YNZ1IETYZ7rik/JsU4T/YSSYgyH1B CrgXMu6J8J/dQ/Kims2hiNNqAkWe1T 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 | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/tools/testing/selftests/arm64/fp/Makefile b/tools/testing/selftests/arm64/fp/Makefile index 95f0b877a060..774c38cee317 100644 --- a/tools/testing/selftests/arm64/fp/Makefile +++ b/tools/testing/selftests/arm64/fp/Makefile @@ -2,12 +2,11 @@ CFLAGS += -I../../../../../usr/include/ TEST_GEN_PROGS := sve-ptrace sve-probe-vls vec-syscfg -TEST_PROGS_EXTENDED := fp-pidbench fpsimd-test fpsimd-stress \ +TEST_GEN_PROGS_EXTENDED := fp-pidbench fpsimd-test \ rdvl-sve \ - sve-test sve-stress \ + sve-test \ vlset - -all: $(TEST_GEN_PROGS) $(TEST_PROGS_EXTENDED) +TEST_PROGS_EXTENDED := fpsimd-stress sve-stress fp-pidbench: fp-pidbench.S asm-utils.o $(CC) -nostdlib $^ -o $@ From patchwork Mon Apr 11 11:47:08 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Mark Brown X-Patchwork-Id: 12809051 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 52F01C433EF for ; Mon, 11 Apr 2022 11:56:16 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S245603AbiDKL60 (ORCPT ); Mon, 11 Apr 2022 07:58:26 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:56358 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S244487AbiDKL6Z (ORCPT ); Mon, 11 Apr 2022 07:58:25 -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 23E623150B for ; Mon, 11 Apr 2022 04:56:12 -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 CD60DB815A6 for ; Mon, 11 Apr 2022 11:56:10 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id CEEE9C385A4; Mon, 11 Apr 2022 11:56:07 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1649678169; bh=NLOQaF8k2FehRQgK23dKs6nvS8c724u81EF3sa616l0=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=XT7AXWFgvitIp74zJN+jSmXWLafialKODSiDSuaQmvxclNrqRGTB4dWZkpfkOLNEJ LjGqaJoKclIUaGoWOCwLOorG9k/X1TKdinLEUEeQXyXvDyL8cxm/rEVnySvKC4xbC6 1QPvJaXsSppS5MFaw5xPqesMlrdMJEMPGHJVGw9I3EH7i8+6oUody+ymzzBGCgWA4o HEEr+escb4LTy1rOcuFzxMzf98xfs3inQNNIU7uMvDUoaU+Fa8sypgtjtX+x7r4P4q 0H4Tqa9NANRH/k4t5FAW7437OO4J9AzBZVLP1sjD8kaxnO0A1vm+XOzV7AQPcNIm6y TcobanAjIO/dQ== 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 v1 2/4] selftests/arm64: Define top_srcdir for the fp tests Date: Mon, 11 Apr 2022 12:47:08 +0100 Message-Id: <20220411114710.16204-3-broonie@kernel.org> X-Mailer: git-send-email 2.30.2 In-Reply-To: <20220411114710.16204-1-broonie@kernel.org> References: <20220411114710.16204-1-broonie@kernel.org> MIME-Version: 1.0 X-Developer-Signature: v=1; a=openpgp-sha256; l=900; h=from:subject; bh=NLOQaF8k2FehRQgK23dKs6nvS8c724u81EF3sa616l0=; b=owEBbQGS/pANAwAKASTWi3JdVIfQAcsmYgBiVBU5tZfK/ilcHaPTFfvKfsjwxhbshKuSw/rrwZmK AN1XnfCJATMEAAEKAB0WIQSt5miqZ1cYtZ/in+ok1otyXVSH0AUCYlQVOQAKCRAk1otyXVSH0DgbB/ 9gzIzUoqJgy8eZkeipDOYYaEUCYZuz9m/HyqyF8jw75ywY4Uq4Aa7G0z/y1D3CCaXfnFecTmD2Xht2 Hv5bX1vWDNxfMMrwipdN2BxmTGI03ZZCrMxYnpD86i3VlWRw1MgCvgYeKwufFPr93y89gp3LbbKi9S HlIrNkEQhLfqWaOaiG3kcNzFs+K4EbDMTNQIJ9QtCzyMK8TopixlFdbJFG7xbrK01uJvn759ylM1KZ IEWFc6shkbraTABGKQQLHYWwfKAGDkJ8IaEMIOyL7SjNpgNWfu9LrrqFwubUNT4O9tLJXamm+Pi3Y6 gpbgQ315qTjB76odm4QSUGHadN3Wv0 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 774c38cee317..41b420050765 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 TEST_GEN_PROGS_EXTENDED := fp-pidbench fpsimd-test \ rdvl-sve \ From patchwork Mon Apr 11 11:47:09 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Mark Brown X-Patchwork-Id: 12809052 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 B022FC433F5 for ; Mon, 11 Apr 2022 11:56:21 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1345658AbiDKL6d (ORCPT ); Mon, 11 Apr 2022 07:58:33 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:56552 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S244053AbiDKL6a (ORCPT ); Mon, 11 Apr 2022 07:58:30 -0400 Received: from ams.source.kernel.org (ams.source.kernel.org [145.40.68.75]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 20D6F403C7 for ; Mon, 11 Apr 2022 04:56: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 ams.source.kernel.org (Postfix) with ESMTPS id C982AB812AA for ; Mon, 11 Apr 2022 11:56:12 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id DA4F6C385B0; Mon, 11 Apr 2022 11:56:09 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1649678171; bh=D2LmChJ0+2ORzcB56NUTgIYWL7YG0u5JGwAl0YJUK88=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=e6OcA1Zh9rmZt6CHB2utD4yDaCGFCaFJauRYb1yeFXMDZ3LVwz8pBElTbBAgHYHZB W0/Xuk3kZ9SuOzBMg9NjWqtWBrszat0F6GfwlW8esltoIN4GZl17ole7GVF8MT73DX Rh9L+AnZI9dpefBLoOL+n3mSKZjmuThIUsHg/gmbXz7Zurn2OLJ1MopcsnsT14MiKG Qj9OT/zLzXkt9BBhlADukh3LTLRptDKvpNMhGxrwMU+O9UQ2M5WlL96CKqo89y6fZZ jxNyTcGeCaoBVdZQR6/mQtXZJ3InhkY48bH1JmpOzpu6hUEsWZe1u2aj0RoIZv0fdf aXmRs/U/T2baQ== 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 v1 3/4] selftests/arm64: Clean the fp helper libraries Date: Mon, 11 Apr 2022 12:47:09 +0100 Message-Id: <20220411114710.16204-4-broonie@kernel.org> X-Mailer: git-send-email 2.30.2 In-Reply-To: <20220411114710.16204-1-broonie@kernel.org> References: <20220411114710.16204-1-broonie@kernel.org> MIME-Version: 1.0 X-Developer-Signature: v=1; a=openpgp-sha256; l=815; h=from:subject; bh=D2LmChJ0+2ORzcB56NUTgIYWL7YG0u5JGwAl0YJUK88=; b=owEBbQGS/pANAwAKASTWi3JdVIfQAcsmYgBiVBU6V5yPB64tFLSlYRoGTs1wHoZuexnleQTxzN2S MsEBUkSJATMEAAEKAB0WIQSt5miqZ1cYtZ/in+ok1otyXVSH0AUCYlQVOgAKCRAk1otyXVSH0KGpB/ 4zU1JkI/DxI+OIy9PbjV99BF4+1U5zoHP5Dit93fKsLuTSAff7jj+z1LwH9mi9JLIdABzMTdmlqiIB TwWToBM7BqWe1xnqW9VFLINwfcral6w5i8Ua9v6D4Z22G6UEz0hRa24Hq5lwDzEnceBoJIg1//Qyrb h0kQ3ZuD063ueczcqD21X8pMMWTy+ae7kFMS6Vk2b1Y/ghd2Ql/zCFSAhaYOU1nQuQzYAwzlSq0Jf8 CQ/Utnl4Ujc6YOG0i84+8A8kR6tAacHI6Uv2N+IVof7Evi+PcoKi4iCq3qby/Eg+Qp9yI2MCUDzC4E AMTPMtRfuVv4qBDUTfTX5STT/mSueO 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 41b420050765..927b1e83f469 100644 --- a/tools/testing/selftests/arm64/fp/Makefile +++ b/tools/testing/selftests/arm64/fp/Makefile @@ -12,6 +12,8 @@ TEST_GEN_PROGS_EXTENDED := fp-pidbench fpsimd-test \ vlset TEST_PROGS_EXTENDED := fpsimd-stress sve-stress +EXTRA_CLEAN += $(OUTPUT)/asm-utils.o $(OUTPUT)/rdvl.o + fp-pidbench: fp-pidbench.S asm-utils.o $(CC) -nostdlib $^ -o $@ fpsimd-test: fpsimd-test.o asm-utils.o From patchwork Mon Apr 11 11:47:10 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Mark Brown X-Patchwork-Id: 12809053 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 62D7AC433EF for ; Mon, 11 Apr 2022 11:56:22 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1344221AbiDKL6e (ORCPT ); Mon, 11 Apr 2022 07:58:34 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:56578 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1344103AbiDKL6b (ORCPT ); Mon, 11 Apr 2022 07:58:31 -0400 Received: from ams.source.kernel.org (ams.source.kernel.org [145.40.68.75]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 6375243AD4 for ; Mon, 11 Apr 2022 04:56:16 -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 10D0CB815A3 for ; Mon, 11 Apr 2022 11:56:15 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id E6038C385A4; Mon, 11 Apr 2022 11:56:11 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1649678173; bh=O9mTXZ51XW67vYoYCAP8nyhOfuxV/KXn/4qe9Y37o9E=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=KFELqIViQojxOoWGZz/ND1dKVnH+BLKdgsJCqL8fw8AogjmRPP9+M7vIifRz3csD7 3LwTrQmh4Tly6kKhlQrYIhIXJzs5xrcQaj5ckiEJtpZ0SbtYej5aJKoVgD209zlL5s btbtZxdOJoXPHxiC1a+F0qy5ic6M5MibDDBWC7B24o/wzUyds0R1lbYSztuvpXjzrP 26XqFSmP8KRhUrofmGWcKEPA6w24f9abPB3JqQ2cxzNJLK3/Lxt+c/1qkoqXghhmq4 ZEvLbIkPJGxTCtcPDrLC5EPoJh7ykyeFqJN5NBdzeAnJGlJp1fbR616sV9+R2f4X0p BLQBYXSJGusCQ== 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 v1 4/4] selftests/arm64: Fix O= builds for the floating point tests Date: Mon, 11 Apr 2022 12:47:10 +0100 Message-Id: <20220411114710.16204-5-broonie@kernel.org> X-Mailer: git-send-email 2.30.2 In-Reply-To: <20220411114710.16204-1-broonie@kernel.org> References: <20220411114710.16204-1-broonie@kernel.org> MIME-Version: 1.0 X-Developer-Signature: v=1; a=openpgp-sha256; l=1923; h=from:subject; bh=O9mTXZ51XW67vYoYCAP8nyhOfuxV/KXn/4qe9Y37o9E=; b=owEBbQGS/pANAwAKASTWi3JdVIfQAcsmYgBiVBU7Fnp2XJdfrJJ+IraaSXi82rN8btIuPd3SDuKT baVby8uJATMEAAEKAB0WIQSt5miqZ1cYtZ/in+ok1otyXVSH0AUCYlQVOwAKCRAk1otyXVSH0MQ1B/ 9aj0Zc1eeBekYPcJFhWYfq5vgUA8W7HYEs5VtDGQzKe/bHZ5YT45AhWYOtBqop3KA/2NuJRrR1HJeo SdUcV8WA0E4oaoOJOv/ERSyDpoXSHLyvg2xgvO4kB9hjXfUhTzBpKRo5tduD1dzJEB3aYiCKi4Gum2 +Znm3IS/FaCSHos7FP/RJxi9WrxgQ9emL2vWKaYpQK2+mzYNUeC1uYKyYHEwTaTTP2gnzpwfUDpE+8 6kVgjkamEp810cW2GzxiPMrgcmp3+NCMD4tB7KuYI3HQFRKt2WvHcws3uFDsdYaUu4PZpcFZoc7joE NBe+h/vStzhfk1WtwOY5BVwPw9ilSR 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 | 16 ++++++++-------- 1 file changed, 8 insertions(+), 8 deletions(-) diff --git a/tools/testing/selftests/arm64/fp/Makefile b/tools/testing/selftests/arm64/fp/Makefile index 927b1e83f469..45bbbf1c5b97 100644 --- a/tools/testing/selftests/arm64/fp/Makefile +++ b/tools/testing/selftests/arm64/fp/Makefile @@ -14,16 +14,16 @@ TEST_PROGS_EXTENDED := fpsimd-stress sve-stress EXTRA_CLEAN += $(OUTPUT)/asm-utils.o $(OUTPUT)/rdvl.o -fp-pidbench: fp-pidbench.S asm-utils.o +$(OUTPUT)/fp-pidbench: fp-pidbench.S asm-utils.o $(CC) -nostdlib $^ -o $@ -fpsimd-test: fpsimd-test.o asm-utils.o +$(OUTPUT)/fpsimd-test: fpsimd-test.S asm-utils.o $(CC) -nostdlib $^ -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 rdvl.o +$(OUTPUT)/sve-ptrace: sve-ptrace.c +$(OUTPUT)/sve-probe-vls: sve-probe-vls.c rdvl.o +$(OUTPUT)/sve-test: sve-test.S asm-utils.o $(CC) -nostdlib $^ -o $@ -vec-syscfg: vec-syscfg.o rdvl.o -vlset: vlset.o +$(OUTPUT)/vec-syscfg: vec-syscfg.c rdvl.o +$(OUTPUT)/vlset: vlset.c include ../../lib.mk