Received: by 2002:a05:6a10:9afc:0:0:0:0 with SMTP id t28csp1168123pxm; Thu, 3 Mar 2022 11:40:04 -0800 (PST) X-Google-Smtp-Source: ABdhPJysYinyRN8dkxmj7SZfwUcLguOujsJCWGOaKbn+UjfcDfla0ZcG6LnJlKQ4fbgIDSGDqBeU X-Received: by 2002:a17:906:58b:b0:6cf:65f5:de28 with SMTP id 11-20020a170906058b00b006cf65f5de28mr27992508ejn.614.1646336403672; Thu, 03 Mar 2022 11:40:03 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1646336403; cv=none; d=google.com; s=arc-20160816; b=vc8gQImUmA9b7lJqO8Aa/aU67BAN7mjLE98oltOsIJ9yrOXnvBQHi3dHt3XFOM/dsA rp6GCV3h8/xSCf7B2blDKpAdgLi4FtNroZtsCn0ab/xLutjKeY2Owks35DqrKk+ABTw5 K/aBzZB6DAwmaJJ9+DbCYzBXnRAsjDXiuIfU9szLcr2opkv2q3ZIaEM5LfawU/i+5D16 bAH48fu9finZ8f8aS9n8I03ujDed8ICoiPHhqElRPZUCaqFPW/cxCNC7Os892hkJ58cL 7tOfbEvUd0fUUMO6OJ4hwnoDGnnlmtoWYpYMFcLDEPnOySJbYi13xFhTeHIQMcath47R riGQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:in-reply-to:from :references:to:content-language:subject:cc:user-agent:mime-version :date:message-id:dkim-signature; bh=CDvDlPtOO23ZgeiI+fxsAPa56/W7nBvI/9YnHJJuEj4=; b=Vn6eBbixKXjjCkPMR7GR34Gn/Xv6taaU6QWMsCFslSsOLvoSDKHu1lpm+63wdlr1Z8 wfAin2bNJcq9ib+/uSe0owXPOyEQy9nVNbpqF5SdvWwOWeEVhE0NFCarTBPXAGfFgTiP D9ZVw+FWQL9IYQy7ad5tDuXsgttCURXo+lebi1CrGGfdtXCX2W+xltZLQ/xWD6MVS8zw uidaOSrKxiD8rUmQnYz8BLwt2ji+vcPJmc9zognP46Ugbv9pIltxRIphV1qFL2nfFYJy V+L1NSFYqmhicplIymalyL2F/Hw5txmIuHfFhDGr5yCu+s4EVgyallaRnejSw0bQQmYk z6Dg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@collabora.com header.s=mail header.b=hEoKOkp+; 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=collabora.com Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id b9-20020a056402278900b00415d08cdac6si2029743ede.478.2022.03.03.11.39.40; Thu, 03 Mar 2022 11:40:03 -0800 (PST) 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=@collabora.com header.s=mail header.b=hEoKOkp+; 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=collabora.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S235618AbiCCSHb (ORCPT + 99 others); Thu, 3 Mar 2022 13:07:31 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:38242 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S232718AbiCCSHa (ORCPT ); Thu, 3 Mar 2022 13:07:30 -0500 Received: from bhuna.collabora.co.uk (bhuna.collabora.co.uk [46.235.227.227]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 697E51A3609; Thu, 3 Mar 2022 10:06:44 -0800 (PST) Received: from [127.0.0.1] (localhost [127.0.0.1]) (Authenticated sender: usama.anjum) with ESMTPSA id 6420A1F45E8C DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=collabora.com; s=mail; t=1646330802; bh=J76Vn4BYI49TDNde5zTexbAoFbKETp612SL58Qyj3/s=; h=Date:Cc:Subject:To:References:From:In-Reply-To:From; b=hEoKOkp+WUuT+ICsXUyjC2wvR4B/L/qv6AYihAU1IbQRMR5wQu7xqwfJ6E40P2BI4 WXyQksuijp44a1m8APtlfPTZ79Gqt3NTaFWJuo7kVi3Ymw732l4h1wjQvwPwedgyAE QSIGrcZKAHknUoQgNrz1Wra6AGSmj0Q7C3Wl7OyQfJDA+TL+OFIbZKQ7Au0GUbYqAd pQasVjTk20C7iUQkwHUEf8lbNVO4fr/vAkLZmoWnrJwlpZspd3CMaEi0C218YmSAti n20wYhxqEEr8TCoKef+gAbYz/buPiAlfa6CzZW9AJAXwWAPDrze8Jly9CyjZvX/W8L 7DfVpJDDR6oew== Message-ID: <2ca0d1c4-ab75-6e16-26f8-e48b0389144c@collabora.com> Date: Thu, 3 Mar 2022 23:06:35 +0500 MIME-Version: 1.0 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:91.0) Gecko/20100101 Thunderbird/91.6.1 Cc: usama.anjum@collabora.com, kernel@collabora.com, kernelci@groups.io, linux-kselftest@vger.kernel.org, linux-kbuild@vger.kernel.org, linux-kernel@vger.kernel.org Subject: Re: [PATCH] Makefile: Fix separate output directory build of kselftests Content-Language: en-US To: Masahiro Yamada , Michal Marek , Nick Desaulniers , keescook@chromium.org, shuah@kernel.org References: <20220223191016.1658728-1-usama.anjum@collabora.com> From: Muhammad Usama Anjum In-Reply-To: <20220223191016.1658728-1-usama.anjum@collabora.com> Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit X-Spam-Status: No, score=-2.1 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,NICE_REPLY_A,SPF_HELO_PASS, SPF_PASS,T_SCC_BODY_TEXT_LINE,UNPARSEABLE_RELAY 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 Hi, Any thoughts about this patch? On 2/24/22 12:10 AM, Muhammad Usama Anjum wrote: > Build of kselftests fail if kernel's top most Makefile is used for > running or building kselftests with separate output directory. The > absolute path is needed to reference other files during this kind of > build. Set KBUILD_ABS_SRCTREE to use absolute path during the build. It > fixes the following different types of errors: > > make kselftest-all O=/linux_mainline/build > Makefile:1080: ../scripts/Makefile.extrawarn: No such file or directory > > make kselftest-all O=build > Makefile:1080: ../scripts/Makefile.extrawarn: No such file or directory > > Signed-off-by: Muhammad Usama Anjum > --- > I've tested this patch on top of next-20220217. The latest next-20220222 > have missing patches. > --- > Makefile | 4 ++-- > 1 file changed, 2 insertions(+), 2 deletions(-) > > diff --git a/Makefile b/Makefile > index 86f633c2809ea..62b3eb8a102ab 100644 > --- a/Makefile > +++ b/Makefile > @@ -1411,10 +1411,10 @@ tools/%: FORCE > > PHONY += kselftest > kselftest: > - $(Q)$(MAKE) -C $(srctree)/tools/testing/selftests run_tests > + $(Q)$(MAKE) -C $(srctree)/tools/testing/selftests KBUILD_ABS_SRCTREE=1 run_tests > > kselftest-%: FORCE > - $(Q)$(MAKE) -C $(srctree)/tools/testing/selftests $* > + $(Q)$(MAKE) -C $(srctree)/tools/testing/selftests KBUILD_ABS_SRCTREE=1 $* > > PHONY += kselftest-merge > kselftest-merge: -- -- Muhammad Usama Anjum