From patchwork Tue Jan 6 19:43:34 2015 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Shuah Khan X-Patchwork-Id: 5576471 Return-Path: X-Original-To: patchwork-linux-kbuild@patchwork.kernel.org Delivered-To: patchwork-parsemail@patchwork2.web.kernel.org Received: from mail.kernel.org (mail.kernel.org [198.145.29.136]) by patchwork2.web.kernel.org (Postfix) with ESMTP id 6ED76BF6C3 for ; Tue, 6 Jan 2015 19:49:15 +0000 (UTC) Received: from mail.kernel.org (localhost [127.0.0.1]) by mail.kernel.org (Postfix) with ESMTP id 9A05F20221 for ; Tue, 6 Jan 2015 19:49:14 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.kernel.org (Postfix) with ESMTP id C42E6200E9 for ; Tue, 6 Jan 2015 19:49:13 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S932958AbbAFTtI (ORCPT ); Tue, 6 Jan 2015 14:49:08 -0500 Received: from resqmta-ch2-02v.sys.comcast.net ([69.252.207.34]:50642 "EHLO resqmta-ch2-02v.sys.comcast.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S932957AbbAFTtD (ORCPT ); Tue, 6 Jan 2015 14:49:03 -0500 X-Greylist: delayed 307 seconds by postgrey-1.27 at vger.kernel.org; Tue, 06 Jan 2015 14:48:52 EST Received: from resomta-ch2-05v.sys.comcast.net ([69.252.207.101]) by resqmta-ch2-02v.sys.comcast.net with comcast id cjin1p0062Bo0NV01jk2WD; Tue, 06 Jan 2015 19:44:02 +0000 Received: from mail.gonehiking.org ([50.134.149.16]) by resomta-ch2-05v.sys.comcast.net with comcast id cjk01p00C0MU7Qa01jk04G; Tue, 06 Jan 2015 19:44:02 +0000 Received: from lorien.internal (lorien-wl.internal [192.168.1.40]) by mail.gonehiking.org (Postfix) with ESMTP id C831E40A31; Tue, 6 Jan 2015 12:43:59 -0700 (MST) From: Shuah Khan To: mmarek@suse.cz, gregkh@linuxfoundation.org, akpm@linux-foundation.org, rostedt@goodmis.org, mingo@redhat.com, davem@davemloft.net, keescook@chromium.org, tranmanphong@gmail.com, mpe@ellerman.id.au, cov@codeaurora.org, dh.herrmann@gmail.com, hughd@google.com, bobby.prani@gmail.com, serge.hallyn@ubuntu.com, ebiederm@xmission.com, tim.bird@sonymobile.com, josh@joshtriplett.org, koct9i@gmail.com, masami.hiramatsu.pt@hitachi.com Cc: Shuah Khan , linux-kbuild@vger.kernel.org, linux-kernel@vger.kernel.org, linux-api@vger.kernel.org, netdev@vger.kernel.org Subject: [PATCH v4 20/20] kbuild: add a new kselftest_install make target to install selftests Date: Tue, 6 Jan 2015 12:43:34 -0700 Message-Id: <2c5a28faaa79d9c2415854a08817ada509fcb943.1420571615.git.shuahkh@osg.samsung.com> X-Mailer: git-send-email 2.1.0 In-Reply-To: References: In-Reply-To: References: DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=comcast.net; s=q20140121; t=1420573442; bh=KQ/4JkwbwQymIZi+U83yoASmrvJFBTbWpCbo5Qh3M/A=; h=Received:Received:Received:From:To:Subject:Date:Message-Id; b=kdqm6UxaX3og3DJNxqeXb2DBu+qoOx2ZigpybziQsd2CI2G9B/q1NEWd9nhv4YQTM TA7NOvqHPeE1x4CLA7CUmlDH3OE56rSJeWe+QaaOXAmPgbOTc4Ulge/OadO2AE6/sx C3xtBwW3ucV6oW64o2DCUzfgz6WpaiDDqmergVxF+B6XtS162F8tG9s8Zj9NYy3eTa TSdprTXXq+7Mx2J36YlQoRFHKkzBGAcbd2j8okqdbF+Z2N6mkBwZEl0BeRvwl+LdWd XfiFJ9IbumOltOWHZrHxhp8cdsr9NXvAzmBdZE+PuQYznB9DV8jQJpQl564LR9VeRm zTWXf/Iu7IHZg== Sender: linux-kbuild-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kbuild@vger.kernel.org X-Spam-Status: No, score=-6.8 required=5.0 tests=BAYES_00,DKIM_SIGNED, RCVD_IN_DNSWL_HI,T_DKIM_INVALID,T_RP_MATCHES_RCVD,UNPARSEABLE_RELAY autolearn=unavailable version=3.3.1 X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on mail.kernel.org X-Virus-Scanned: ClamAV using ClamSMTP Add a new make target to install to install kernel selftests. This new target will build and install selftests. kselftest target now depends on kselftest_install and runs the generated kselftest script to reduce duplicate work and for common look and feel when running tests. make kselftest_target: -- exports kselftest INSTALL_KSFT_PATH default $(INSTALL_MOD_PATH)/lib/kselftest/$(KERNELRELEASE) -- exports INSTALL_KSFT_PATH -- runs selftests make install target Signed-off-by: Shuah Khan Acked-by: Michal Marek --- Makefile | 14 +++++++++++++- 1 file changed, 13 insertions(+), 1 deletion(-) diff --git a/Makefile b/Makefile index b1c3254..99fac47 100644 --- a/Makefile +++ b/Makefile @@ -1072,12 +1072,21 @@ headers_check: headers_install $(Q)$(MAKE) $(hdr-inst)=arch/$(hdr-arch)/include/uapi/asm $(hdr-dst) HDRCHECK=1 # --------------------------------------------------------------------------- -# Kernel selftest +# Kernel selftest targets + +# Default base path for kselftest install +INSTALL_KSFT_PATH = $(INSTALL_MOD_PATH)/lib/kselftest/$(KERNELRELEASE) +export INSTALL_KSFT_PATH PHONY += kselftest kselftest: $(Q)$(MAKE) -C tools/testing/selftests run_tests +# Kernel selftest install +PHONY += kselftest_install +kselftest_install: + $(Q)$(MAKE) -C tools/testing/selftests install + # --------------------------------------------------------------------------- # Modules @@ -1286,6 +1295,9 @@ help: @echo ' Build, install, and boot kernel before' @echo ' running kselftest on it' @echo '' + @echo ' kselftest_install - Install Kselftests to INSTALL_KSFT_PATH' + @echo ' default: $(INSTALL_MOD_PATH)/lib/kselftest/$(KERNELRELEASE)' + @echo '' @echo 'Kernel packaging:' @$(MAKE) $(build)=$(package-dir) help @echo ''