From patchwork Tue Apr 19 20:04:39 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Mark Brown X-Patchwork-Id: 564604 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 4CB0EC433EF for ; Tue, 19 Apr 2022 20:05:00 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S238819AbiDSUHm (ORCPT ); Tue, 19 Apr 2022 16:07:42 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:57220 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1353459AbiDSUHl (ORCPT ); Tue, 19 Apr 2022 16:07:41 -0400 Received: from ams.source.kernel.org (ams.source.kernel.org [145.40.68.75]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 5280526E2 for ; Tue, 19 Apr 2022 13:04:55 -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 F3140B81BE5 for ; Tue, 19 Apr 2022 20:04:53 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 1CA44C385AD; Tue, 19 Apr 2022 20:04:50 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1650398692; bh=niTA8yGMk6C4xgjH095qVgtFQfGX5ZsTIZzuU2FMXv8=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=cmoiAeVJQLpEEO1xoBGc+MggPwsq+kaIj4CQps+oRe3pNr6onqbu4cO+tAPEMxK0z Vd78pGt+WdYxAZreW8uu/5XXx0gyE2Z5TTP9y8Qv313UQYzXteQfP8JXr+kJARbg9I 59E7J1QyZ3YrE4gkq6u7lhv5VLn0zOfKhFQwaTE/tnYJXQ6yW11/d0jwinRlCfpibn EYwx+ST333cjYz8/AKB9+lWANv2lrqcQc4J0cNYLgpywhjIM5+hfxsPxqmHli5zFYH d9CbbOfHALf9rFDBpfViuntY2p2bV/vpTppQNdYkfqpaWErcyNUoTZmhYZeSOdVZKW WlmgXDejvdAxg== 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 v2 1/4] selftests/arm64: Use TEST_GEN_PROGS_EXTENDED in the FP Makefile Date: Tue, 19 Apr 2022 21:04:39 +0100 Message-Id: <20220419200442.1374548-2-broonie@kernel.org> X-Mailer: git-send-email 2.30.2 In-Reply-To: <20220419200442.1374548-1-broonie@kernel.org> References: <20220419200442.1374548-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/pANAwAKASTWi3JdVIfQAcsmYgBiXxXXEfHRkox3RJIBu/7fbWnH2l7INwpX/OiKMaPF WTHZ5J2JATMEAAEKAB0WIQSt5miqZ1cYtZ/in+ok1otyXVSH0AUCYl8V1wAKCRAk1otyXVSH0C1TB/ 9w0toICpb9ncpkP6RjijQOYWHz6puq5CkBW0Ucba1gBnW2AyLFr03nsrPJ7euQ2TPbVCzLfHpe+tsY wXYYYVaCUQQkp68gapJwjehjGrcEHkpw9gInBlVEW/zr82Re4FZAR1iHTOHs4NXVpBjvpJoEIA0+4H WGFIvGE/oVdWf9rAdr76NO34UBj4wDS3X3gXzDCaY8QV0xKOco7kZWun1OP1oSMBrm0rqVr9WJhCiN dIueHk9XiS0wAofTpvXL7esfpsSP0fr3RaVYX5/upEfT2cW345NKxfnSDjhR2mRWJxCVFYjCpgMsz2 xULFIk3ToXIj6y7KuXXl4mcJ3ttWA9 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 Tue Apr 19 20:04:40 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Mark Brown X-Patchwork-Id: 563595 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 B47BFC433F5 for ; Tue, 19 Apr 2022 20:05:00 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1353459AbiDSUHm (ORCPT ); Tue, 19 Apr 2022 16:07:42 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:57222 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1353707AbiDSUHl (ORCPT ); Tue, 19 Apr 2022 16:07:41 -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 5039A3895 for ; Tue, 19 Apr 2022 13:04:57 -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 F2DB4B81BE7 for ; Tue, 19 Apr 2022 20:04:55 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 205FCC385A5; Tue, 19 Apr 2022 20:04:52 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1650398694; bh=NLOQaF8k2FehRQgK23dKs6nvS8c724u81EF3sa616l0=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=SRhyA5dJ5UanUisWsTQqcIqwal+akgzSvsRwWbvGdF1WlwteR/0l8QUbRYPqW6wLp Bq+ERQ1pepO3JNZIUuypKDjFkaKrUUrdB5xv4ymIry4XZy/d9BiRFOFrVMmWfgsxFX oSy583qqcNAC2vUoPEznCNrXZ75qmbfcivUV/4B8wxU36/Pl3CQKCKQQqwHdtD3SuL AfBB7YCivlvBpeONAZ5TPbJkBiNxid5LQBA7FgiMKbQ3hB9A9VGNLC/hHCdiXQyC1n bpoGetwcLNUmjSBzACy+RTD8mh0v6P/COdD65IzUeCFwT8m7YwKOCmI1Q9RiKNRTS5 UzvZeFaO/+DuA== 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 v2 2/4] selftests/arm64: Define top_srcdir for the fp tests Date: Tue, 19 Apr 2022 21:04:40 +0100 Message-Id: <20220419200442.1374548-3-broonie@kernel.org> X-Mailer: git-send-email 2.30.2 In-Reply-To: <20220419200442.1374548-1-broonie@kernel.org> References: <20220419200442.1374548-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/pANAwAKASTWi3JdVIfQAcsmYgBiXxXXtZfK/ilcHaPTFfvKfsjwxhbshKuSw/rrwZmK AN1XnfCJATMEAAEKAB0WIQSt5miqZ1cYtZ/in+ok1otyXVSH0AUCYl8V1wAKCRAk1otyXVSH0DvTB/ sGoCYKdyI75HYeYOdarpJ/UJWCXyOdp8RZ8XfXngkyXPJyvnHTN01zXcPsqLB2LV+/jkCReBRO2+qq 2kufaMzpLPbwUcvdwRr8hed/by8+jBN0TK6NH+K7yE68yxiKXe81m+bIwpR2nBNT7diKxsJc5439V+ P43kf0hIjMMU68ipMxvGjtOfUdaQz3ZlkqTTcmtfkxVeGBNsGjsdygAutorMh5JpPMQYRI0x0O/y27 xwgVZ7WBeY/wNakiBdToDITpnDlf55Kdlz7SOAJ+La8O5krTtsPisLtPDMJ0Ue4M55p9fox3CopcYF wRyICCL2NB5x1YPZ0FSrg7E/mgtJp9 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 Tue Apr 19 20:04:41 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Mark Brown X-Patchwork-Id: 564603 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 A1526C433FE for ; Tue, 19 Apr 2022 20:05:01 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1353707AbiDSUHn (ORCPT ); Tue, 19 Apr 2022 16:07:43 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:57282 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1356498AbiDSUHm (ORCPT ); Tue, 19 Apr 2022 16:07:42 -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 465CB5FB7 for ; Tue, 19 Apr 2022 13:04:59 -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 F2207B81BE0 for ; Tue, 19 Apr 2022 20:04:57 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 286A2C385AD; Tue, 19 Apr 2022 20:04:54 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1650398696; bh=D2LmChJ0+2ORzcB56NUTgIYWL7YG0u5JGwAl0YJUK88=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=SvLI6N/Z/pO6GA0ItDkuPRTKJeY6pXth/xHfPO7bOa3AxcFYw/aPt+GXeP6Jw4QIP 2AT0ItrrwpaWa3nv/5Q59T1IlO2bFMVu6J8fHXpEYYPzwgofgH1x15zTpeHd9rO2Cu 7kvR+rJYV7O0CiHVM75cu9oqe9Dl1x3C1AWQ+I7Ts735nbsaacpoT1ReujvVeUO7yS waKtJhuHoE5O+Cpz/r04ik0xAe8rDIPj4+FB26X5ZlDiXOzABfDXmjaP5ZI6axnam3 b2xKsjHBn2hhMif9uKUS1D4O34+Q66sySdg3GExPoa/ZgF1f+9IjbDlxduAmCTuEQ2 htl8enRjikpoA== 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 v2 3/4] selftests/arm64: Clean the fp helper libraries Date: Tue, 19 Apr 2022 21:04:41 +0100 Message-Id: <20220419200442.1374548-4-broonie@kernel.org> X-Mailer: git-send-email 2.30.2 In-Reply-To: <20220419200442.1374548-1-broonie@kernel.org> References: <20220419200442.1374548-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/pANAwAKASTWi3JdVIfQAcsmYgBiXxXYV5yPB64tFLSlYRoGTs1wHoZuexnleQTxzN2S MsEBUkSJATMEAAEKAB0WIQSt5miqZ1cYtZ/in+ok1otyXVSH0AUCYl8V2AAKCRAk1otyXVSH0FCKB/ 9nogYuQDOniRGydMHkt71jgwtiAF8oXgJzdpLi5QEKHreCqQnFY5/gMudNK0Xy3WvWPy5VWWkDy7Ct 13l9HVplXRdMvfm95lGsw4KRm4MngjC9L2HgnaMjH39ns9aYfxXD5G8EJfu33TcjNOVqAnkmBQz/2T B4xDlE02t/rglFgCrXuMdYlHHyNJDxvJGsJt9UnCEnc4TY55991r+uI3INxNtRQJY4wRARfBymist3 2+o7ODbMck9ooqV50yVgJeSa6+6qa2WWkBTa6mc/LyyTup/DYDxs4juLBmdm4Z8JJD/8xsXr7MZelT FVGAJOqPDY1PdGxSDhjPlW2p0D+hPF 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 Tue Apr 19 20:04:42 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Mark Brown X-Patchwork-Id: 563594 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 9EA4FC433EF for ; Tue, 19 Apr 2022 20:05:04 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1356453AbiDSUHp (ORCPT ); Tue, 19 Apr 2022 16:07:45 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:57366 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1356516AbiDSUHo (ORCPT ); Tue, 19 Apr 2022 16:07:44 -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 34EE46277 for ; Tue, 19 Apr 2022 13:04:59 -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 5DF96616B2 for ; Tue, 19 Apr 2022 20:04:59 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 303F2C385A9; Tue, 19 Apr 2022 20:04:57 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1650398698; bh=O9mTXZ51XW67vYoYCAP8nyhOfuxV/KXn/4qe9Y37o9E=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=nA+lndyq2nuRa5DCVgxF7CHYWzPZpp72PxenTRdUoIo2ersIXu9ymJMEUaWm+EcbC TVYqMtddG5U5/ATfSV5xuX7siZ3H0zB+9Y6ys10teElAczqLrbxVGTTvMxmNfZF6ZO VbdgH/tOHpzxQoQlsfGv5J2s4b52duCtUu0W8hLdfGKuXNT26qcAGQookBOHrnGmWE OcFcUgoNUo+IC+GiUx1l5CzcG5ObkDk42405TQw3YO5Bw4kfTsnds7VFIUHOHWZ4t6 0+vIshe0yYWH32KljYHM+2hlrjv31x5gXCD3bh/P8BbGhqbmr41vjTVnBA5oGtIimB gvu1H/XXv43Xg== 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 v2 4/4] selftests/arm64: Fix O= builds for the floating point tests Date: Tue, 19 Apr 2022 21:04:42 +0100 Message-Id: <20220419200442.1374548-5-broonie@kernel.org> X-Mailer: git-send-email 2.30.2 In-Reply-To: <20220419200442.1374548-1-broonie@kernel.org> References: <20220419200442.1374548-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/pANAwAKASTWi3JdVIfQAcsmYgBiXxXZFnp2XJdfrJJ+IraaSXi82rN8btIuPd3SDuKT baVby8uJATMEAAEKAB0WIQSt5miqZ1cYtZ/in+ok1otyXVSH0AUCYl8V2QAKCRAk1otyXVSH0PuyB/ 9hzMfitS2eGLSXNCQXpMcMpghJMIExHbwqAYSN+qoSM7I37xTxo2tjqsPxbV1c1P3fnVLr1dQQ6lNG JZ3Wjy7Eob225NLToe9gGd5Xgjb1RwwrhaPKyzvC8pShu68Vqt7Y9qZBycwezhl6fCpkowGx2SEVnx 0PywoOSyAT4XyFhg48rwjYpm521yp1LaGX92+bV6kV5kBDLvFiPAh6PDm7IHoPnHRkNYESjIAS+/+b tsyWHLH8TWiiRlW4gZS/cTrIz1rWxHWP6uBMQwlKcrt76MGU/6LAFlLomlnbtxD54EGZwZol02LcgV L6MS5+Uzj/cGKCM2vanBXjmpcdlahr 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