From mboxrd@z Thu Jan 1 00:00:00 1970 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 7A502C54EBD for ; Fri, 6 Jan 2023 22:09:36 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S233592AbjAFWJF (ORCPT ); Fri, 6 Jan 2023 17:09:05 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:47066 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229726AbjAFWIg (ORCPT ); Fri, 6 Jan 2023 17:08:36 -0500 Received: from out1-smtp.messagingengine.com (out1-smtp.messagingengine.com [66.111.4.25]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 4F24384BCB for ; Fri, 6 Jan 2023 14:08:35 -0800 (PST) Received: from compute6.internal (compute6.nyi.internal [10.202.2.47]) by mailout.nyi.internal (Postfix) with ESMTP id B59925C0115; Fri, 6 Jan 2023 17:08:32 -0500 (EST) Received: from mailfrontend1 ([10.202.2.162]) by compute6.internal (MEProxy); Fri, 06 Jan 2023 17:08:32 -0500 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=tyhicks.com; h= cc:cc:content-transfer-encoding:date:date:from:from:in-reply-to :message-id:mime-version:reply-to:sender:subject:subject:to:to; s=fm2; t=1673042912; x=1673129312; bh=TJI6CLhMshXv2JlUkkxc9kHMw OuqUdP7GM1fLmCfyAM=; b=k744/aaxD9Z7koZoCfpvTCsDWnWIyU7LyaqDjygoI mOPTkPS+glbjVFG/cB6ca1iX8LBXpKBcSJo1RMZmoSgz+p86sa2UHt6DwWnYSktq PnHHQaMcTrNb3K5TigVxsQT/JRKJ7664KUq8W2ovRGSdC1mZCVGoEeHoZLfPENI9 wSX9ioOs6CU1DbVN27ZultKVPBpvziEoc2M6WmpxmcZfl7MrOMiKzva2KdEQLhwy FjzqPe9YEDNoRXaYI5keplCZybE+8JnWB8wvljfu3oJrzVhXGK8Ua5l5pyD4dyx9 Nbj9XT2gsya8SZs4wlkLXvFlBGvcp8Ge0QS3XaQI1Jl/Q== DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d= messagingengine.com; h=cc:cc:content-transfer-encoding:date:date :feedback-id:feedback-id:from:from:in-reply-to:message-id :mime-version:reply-to:sender:subject:subject:to:to:x-me-proxy :x-me-proxy:x-me-sender:x-me-sender:x-sasl-enc; s=fm2; t= 1673042912; x=1673129312; bh=TJI6CLhMshXv2JlUkkxc9kHMwOuqUdP7GM1 fLmCfyAM=; b=nRESi4nn4ECcIxTZPjbT7xkAAI1pooZGeulZF+LKVcvvTMUiBAK 4qxWsD0h6keIZ1tV6+aJd8uR/haoQQxwUAAwQ0n37e3AJcDtkylxmID0EdjpTs4p aRFCtQlhERGCe2C4u48sgO7+mSiBQIY7UiYYKwWfmswINbnCjyRYrjnrOqsDBAu8 KkbeIr1n5Jhst603aqr54mKJ6dke2BcwWz2elsiDHhPf2UnUVdNRRJipcvEdgZfl NkflFc1c5Bad89mPG6G+PREkM7JMuS+iQjmx7qVNjNyjEdIy5mLd+Mrr1butA80L ta5RAOvQqm6pVPepNAzF/ZziSubGlq9scog== X-ME-Sender: X-ME-Received: X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgedvhedrkedtgdduheejucetufdoteggodetrfdotf fvucfrrhhofhhilhgvmecuhfgrshhtofgrihhlpdfqfgfvpdfurfetoffkrfgpnffqhgen uceurghilhhouhhtmecufedttdenucesvcftvggtihhpihgvnhhtshculddquddttddmne cujfgurhephffvvefufffkofgggfestdekredtredttdenucfhrhhomhepvfihlhgvrhcu jfhitghkshcuoegtohguvgesthihhhhitghkshdrtghomheqnecuggftrfgrthhtvghrnh epjeetteejvdefleekuddtgfelgeejudefieegfeekjeehtedvgefgfeffvdegudeknecu vehluhhsthgvrhfuihiivgeptdenucfrrghrrghmpehmrghilhhfrhhomheptghouggvse hthihhihgtkhhsrdgtohhm X-ME-Proxy: Feedback-ID: i78e14604:Fastmail Received: by mail.messagingengine.com (Postfix) with ESMTPA; Fri, 6 Jan 2023 17:08:32 -0500 (EST) From: Tyler Hicks To: stable@vger.kernel.org Cc: Shuah Khan , Muhammad Usama Anjum , "Tyler Hicks" Subject: [PATCH 5.15 5.10 0/1] Fix kselftest builds when specifying an output dir Date: Fri, 6 Jan 2023 16:08:15 -0600 Message-Id: <20230106220816.763835-1-code@tyhicks.com> X-Mailer: git-send-email 2.34.1 MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Precedence: bulk List-ID: X-Mailing-List: stable@vger.kernel.org From: "Tyler Hicks" When attempting to build kselftests with a separate output directory, a number of the tests fail to build. For example, $ rm -rf build && \ make INSTALL_HDR_PATH=build/usr headers_install > /dev/null && \ make O=build FORCE_TARGETS=1 TARGETS=breakpoints -C tools/testing/selftests > /dev/null /usr/bin/ld: cannot open output file build/kselftest/breakpoints/step_after_suspend_test: No such file or directory collect2: error: ld returned 1 exit status make[1]: *** [../lib.mk:146: build/kselftest/breakpoints/step_after_suspend_test] Error 1 make: *** [Makefile:163: all] Error 2 This has already been addressed upstream with v5.18 commit 5ad51ab618de ("selftests: set the BUILD variable to absolute path"). It is a clean cherry pick to the linux-5.15.y and linux-5.10.y branches. Tyler Muhammad Usama Anjum (1): selftests: set the BUILD variable to absolute path tools/testing/selftests/Makefile | 26 +++++++++++++++++--------- 1 file changed, 17 insertions(+), 9 deletions(-) -- 2.34.1