Received: by 2002:a25:824b:0:0:0:0:0 with SMTP id d11csp1857603ybn; Thu, 26 Sep 2019 03:18:07 -0700 (PDT) X-Google-Smtp-Source: APXvYqxvW9JvHh0j4qU3lSEt4fzzkwfdEv6naFwoglfhr/ebDguUzz+M+yjkGHhCq0G2UuAfirf+ X-Received: by 2002:aa7:cdd6:: with SMTP id h22mr2710714edw.132.1569493087303; Thu, 26 Sep 2019 03:18:07 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1569493087; cv=none; d=google.com; s=arc-20160816; b=AVmnvp6oqxwMsyF4e3zCDjOxiNGueoTrtIutN6M69oAtM3QTF2VywzLgd7av1wAJvF oWbUCkiswAP/5hkrbujQU1pLMbUvHpe01oaIPlSdME0OZMTh4DTNNgoEpjotx/wdMZbs 1uxhat1nKYct0WHdtBDMDVtvT3J5COZMKgphWfvwKH3f5EhwudePulz6bUGy0aIPXhpw x2VcwkGT4d6aEbFvfDSCa+8cOXJTfi3AZRpe68GUjmfHeDybyHePd3+XHr1C9oqdOokk O6HgnkhPeyQ+1ajr/S68cOQwebsE2iF8KYxFqEp7ksV46fcsLm01vpyJSygJ2H5oULKy P6kw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version:dkim-signature:dkim-filter; bh=Xc9AZqmoajha0VuwXoxsUg6PKLg6RASYXKitm94bwH0=; b=YKwEmTuBpkCanz6+9+g82xfyqvFCFXVySuuwuoN7mpAtC20lmTU5XX4ynrScO/e+yg xWmFKUxSHxb49g4UK4XYlyMNDE5pbCCCagWW861zuv43zkLqD4UTzvhK/Hf0INHwS+sH zYFDr1it6ygCQC81itugiOd9nG5PofEgQc0skvh4gO5iE4xMstT8jLH1nkEkYY14Ezwx 8sZmtl2ivBcdQ06SYSZa1dLdYVUppoZR7/aHA6Fx9bf0H1/Ont0nl1IdGdfyK/xCmF0k P28jMyWcvidjpGxuoSDFI/+iJ+7ymXXiCM2zfgX9ttQ0DnBeTFTLZpqAG+kmwrwr8F3D RuKQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@nifty.com header.s=dec2015msa header.b="lF/KeIrN"; 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 h19si902302edv.393.2019.09.26.03.17.44; Thu, 26 Sep 2019 03:18:07 -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=@nifty.com header.s=dec2015msa header.b="lF/KeIrN"; 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 S1733289AbfIZDZ1 (ORCPT + 99 others); Wed, 25 Sep 2019 23:25:27 -0400 Received: from conssluserg-03.nifty.com ([210.131.2.82]:38035 "EHLO conssluserg-03.nifty.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727409AbfIZDZ0 (ORCPT ); Wed, 25 Sep 2019 23:25:26 -0400 Received: from mail-vk1-f173.google.com (mail-vk1-f173.google.com [209.85.221.173]) (authenticated) by conssluserg-03.nifty.com with ESMTP id x8Q3PHOj027377; Thu, 26 Sep 2019 12:25:18 +0900 DKIM-Filter: OpenDKIM Filter v2.10.3 conssluserg-03.nifty.com x8Q3PHOj027377 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=nifty.com; s=dec2015msa; t=1569468318; bh=Xc9AZqmoajha0VuwXoxsUg6PKLg6RASYXKitm94bwH0=; h=References:In-Reply-To:From:Date:Subject:To:Cc:From; b=lF/KeIrNoNCRlUtTOKLABr7qQmVAQVYvc38q5JRKYJZaKCRcNGrQbai4cnnXfEFxa J1StlIBDt7cnuw03QeSezEMcA5D7qcPjRFC6xAnVssbkqI8dlq7zk0OTsaZXTvy6BT XrFvMPBAaHlSws1XY08LxNcZw2W7SrBjMV/BwzwYHYbcEnGg09DJZBWcvAIAAwum+2 Mm/L8fB65v+vvF5J4pAdQ4aiu0fU00rQRcclWlzkEjW/TRVCvYqyzbW58qp9R/aTN4 qK6kKQidCkzddSTESeZ2E6P7Vcoe9O6j88uYc7cw/jGDfEZBKsXoxlsRZgd/ZbXsu8 6v5vorpoxxtGw== X-Nifty-SrcIP: [209.85.221.173] Received: by mail-vk1-f173.google.com with SMTP id j21so129632vki.11; Wed, 25 Sep 2019 20:25:18 -0700 (PDT) X-Gm-Message-State: APjAAAXuV7G0Ft5eDNOXNOwecnA/weAxudu0AiARNqulSTsyCx5DCvjS Rs2B38kLJNSKDL10L2Z25asdBQ24bWE9OvdtYL8= X-Received: by 2002:ac5:cc63:: with SMTP id w3mr605734vkm.34.1569468317002; Wed, 25 Sep 2019 20:25:17 -0700 (PDT) MIME-Version: 1.0 References: In-Reply-To: From: Masahiro Yamada Date: Thu, 26 Sep 2019 12:24:41 +0900 X-Gmail-Original-Message-ID: Message-ID: Subject: Re: [PATCH 2/2] selftests: Add kselftest_install target to main Makefile To: Shuah Khan Cc: Michal Marek , "Cc: Shuah Khan" , Linux Kbuild mailing list , "open list:KERNEL SELFTEST FRAMEWORK" , Linux Kernel Mailing List Content-Type: text/plain; charset="UTF-8" Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org 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. 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. -- Best Regards Masahiro Yamada