Received: by 2002:a25:824b:0:0:0:0:0 with SMTP id d11csp2639189ybn; Thu, 26 Sep 2019 15:16:05 -0700 (PDT) X-Google-Smtp-Source: APXvYqwMACJRZn8azjiblDQFOYSMzP6Fvr92RXLBgkAt4OKV3mHovPy+nBzZt3trelm1oX854302 X-Received: by 2002:a17:906:ce46:: with SMTP id se6mr5248418ejb.198.1569536165002; Thu, 26 Sep 2019 15:16:05 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1569536164; cv=none; d=google.com; s=arc-20160816; b=iFOMezP7pZxIxCKAxSX6Ji47Su3wVbqWVG8pS4J3EycqRK2S219QkHXE/IVElAcZjk js0sQcYllC03wPr4YKnIFuj3wJDGyUCtbkdsFA63ubAAeezphmVB9iBV3u+gQdFjUQge itTqBGN9ANNPuxk+HGiHM9FLG8s5YVN091Br5xiAUCOWYDAoOZDRB5gHprbB9cprYrDu dRFqCzMlA9/OKvwiFL6CBRvlmQShwlCnpVw/WXLPBMjLsd1IbAeM012Fyl0ePtfRlx0w 5EiXOWmrZVJXQmS4Rx/3kPkKktuVMrLxkpnOb1IPGGUozU/XTCP5NJL+CwoA+rBjXsRu ybZQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding :content-language:in-reply-to:mime-version:user-agent:date :message-id:from:references:cc:to:subject:dkim-signature; bh=e5GWt3lztsgnfc3sldD8RB9/EhbtgxcMAZ8pv6IBv0o=; b=a6gN1wfBhPIP/Yk8Jbu/BfINOclhLgbC7c+3lEaW+pOXRs778Ky5gH3x5/4ocbTxNa jqq8XMenjm71GhFxLT9z7FQD5SC/u0aas4xjWizYtBVUF4y525wPIO42+8CQBE3DLyX/ +fEzwm7bKrdDgsNsJLQyTo6dTsQNbE4Oo/1WdGDZzYdXUMjtlr9Nmh1Oyu08TWyyFyMj VKQSgrAzQGy6+kOxbSMBsGkPIoJkSwfRkRxcXpYw4cpIkIwogCUKhjrMTqo1UGzE5q4H dUYejp8wClDzJ5CBtkLeD5fMhd8Bbzit7tEZnZiRiW1T3Qxr3uaILES6nLxwe0prDVVM GaVQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linuxfoundation.org header.s=google header.b=DNPR0aGd; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id a15si390900eda.222.2019.09.26.15.15.39; Thu, 26 Sep 2019 15:16:04 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; dkim=pass header.i=@linuxfoundation.org header.s=google header.b=DNPR0aGd; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1728873AbfIZWLj (ORCPT + 99 others); Thu, 26 Sep 2019 18:11:39 -0400 Received: from mail-io1-f67.google.com ([209.85.166.67]:35344 "EHLO mail-io1-f67.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727490AbfIZWLj (ORCPT ); Thu, 26 Sep 2019 18:11:39 -0400 Received: by mail-io1-f67.google.com with SMTP id q10so10810315iop.2 for ; Thu, 26 Sep 2019 15:11:39 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linuxfoundation.org; s=google; h=subject:to:cc:references:from:message-id:date:user-agent :mime-version:in-reply-to:content-language:content-transfer-encoding; bh=e5GWt3lztsgnfc3sldD8RB9/EhbtgxcMAZ8pv6IBv0o=; b=DNPR0aGdrz0Z8MxoYfs7keH6LEZ15NGlhg7uvwGt/utwm1UUTEfsyN4gUyHMfg37WS NFX+lvIQClaCK9QlECR98ZRoQp9yYwjccp/1ZmtZFBlQhRUY0eEkOBXYudCmgsjE3CMT UPWq9nbhTGUrx7AcnsfCUxCnNo8ucyLXg6Ivo= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:subject:to:cc:references:from:message-id:date :user-agent:mime-version:in-reply-to:content-language :content-transfer-encoding; bh=e5GWt3lztsgnfc3sldD8RB9/EhbtgxcMAZ8pv6IBv0o=; b=gcFrvmowoPQEy66m9w29oAshknjmqZyRe9AovqM9JFjDrNE7sH6Nx3ih+/Zcj178oQ RimaEVuuQgS+RwA7d+SJsF2NrCX+hgJGtAUnWoqyHrpkS5voHjTDDqR3DsPYSlRqyIUg jjezHxEezyWBQRM7in0juxF/E3t6hAajNKofKr8OHcPBv6XZNbHUFII5YeRQIYo7enPV z19dGAgRqfTbrj+OQzQUdgz/Blh0X94wRBgq6wmf+mSW8LLpcNus8MoSNv07GQr5vq1W uXqHQXf5Sq/3PeSZU6Qz1p1t1gGJy33JJV/bU/vJq2gBOVCak3HwdWHzZOskYiQZat5u 23Bw== X-Gm-Message-State: APjAAAWFLnNzvjYrQZTg/EUsT73mmas2vt5Z1F0RHywSiQcfNwOzP3nY Y0VyujtEQgNfX4UHUtABjDpk6jAJcXY= X-Received: by 2002:a92:c00d:: with SMTP id q13mr1102096ild.169.1569535898607; Thu, 26 Sep 2019 15:11:38 -0700 (PDT) Received: from [192.168.1.112] (c-24-9-64-241.hsd1.co.comcast.net. [24.9.64.241]) by smtp.gmail.com with ESMTPSA id a17sm320403ilf.22.2019.09.26.15.11.37 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Thu, 26 Sep 2019 15:11:37 -0700 (PDT) Subject: Re: [PATCH 2/2] selftests: Add kselftest_install target to main Makefile To: Masahiro Yamada Cc: Michal Marek , "Cc: Shuah Khan" , Linux Kbuild mailing list , "open list:KERNEL SELFTEST FRAMEWORK" , Linux Kernel Mailing List , "skh >> Shuah Khan" References: From: Shuah Khan Message-ID: <43a7962e-4fae-78e4-1db2-b75c7ff802b1@linuxfoundation.org> Date: Thu, 26 Sep 2019 16:11:36 -0600 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:60.0) Gecko/20100101 Thunderbird/60.8.0 MIME-Version: 1.0 In-Reply-To: Content-Type: text/plain; charset=utf-8; format=flowed Content-Language: en-US Content-Transfer-Encoding: 7bit Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On 9/25/19 9:24 PM, Masahiro Yamada wrote: > Hi Shuah, > > > > On Thu, Sep 26, 2019 at 8:05 AM Shuah Khan wrote: >> >> Add kselftest_install target to install tests from the top level >> Makefile. This is to simplify kselftest use-cases for CI and >> distributions where build and test systems are different. >> >> This change addresses requests from developers and testers to add >> support for installing kselftest from the main Makefile. >> >> In addition, make the install directory the same when install is >> run using "make kselftest_install" or by running kselftest_install.sh. >> Also fix the INSTALL_PATH variable conflict between main Makefile. >> >> Signed-off-by: Shuah Khan > > So, if these two patches were applied, we would see the following: > > > PHONY += kselftest_build > kselftest_build: > $(Q)$(MAKE) -C $(srctree)/tools/testing/selftests all > > PHONY += kselftest > kselftest: > $(Q)$(MAKE) -C $(srctree)/tools/testing/selftests run_tests > > PHONY += kselftest_install > kselftest_install: > $(Q)$(MAKE) -C $(srctree)/tools/testing/selftests install > > PHONY += kselftest-clean > kselftest-clean: > $(Q)$(MAKE) -C $(srctree)/tools/testing/selftests clean > > > I do not want to see this endless crap addition just for > changing the working directory to $(srctree)/tools/testing/selftests > > > > Why don't you use pattern rule? > Those will be reduced into the two rules. > I just didn't think about simplifying it. Thanks for being direct. > > > PHONY += kselftest > kselftest: > $(Q)$(MAKE) -C $(srctree)/tools/testing/selftests run_tests > > kselftest-%: FORCE > $(Q)$(MAKE) -C $(srctree)/tools/testing/selftests $* > > > > This also avoids your inconsistency about > "kselftest-" vs "kselftest_". > > > Given the existing "kselftest-clean" and "kselftest-merge", > "kselftest_build" and "kselftest_install" > (using an underscore instead of n hyphen) > would add needless confusion. > > Done. Sending v2 with two patches collapsed into one. thanks, -- Shuah