From patchwork Wed Dec 24 16:27:56 2014 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Shuah Khan X-Patchwork-Id: 5539771 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.19.201]) by patchwork2.web.kernel.org (Postfix) with ESMTP id CA5C5BEEA8 for ; Wed, 24 Dec 2014 16:33:44 +0000 (UTC) Received: from mail.kernel.org (localhost [127.0.0.1]) by mail.kernel.org (Postfix) with ESMTP id 113F9201CD for ; Wed, 24 Dec 2014 16:33:44 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.kernel.org (Postfix) with ESMTP id 3C99A2012D for ; Wed, 24 Dec 2014 16:33:43 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752013AbaLXQdZ (ORCPT ); Wed, 24 Dec 2014 11:33:25 -0500 Received: from resqmta-po-01v.sys.comcast.net ([96.114.154.160]:58066 "EHLO resqmta-po-01v.sys.comcast.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752612AbaLXQdW (ORCPT ); Wed, 24 Dec 2014 11:33:22 -0500 Received: from resomta-po-01v.sys.comcast.net ([96.114.154.225]) by resqmta-po-01v.sys.comcast.net with comcast id XUUG1p00E4s37d401UUHMz; Wed, 24 Dec 2014 16:28:17 +0000 Received: from mail.gonehiking.org ([50.134.149.16]) by resomta-po-01v.sys.comcast.net with comcast id XUUF1p00h0MU7Qa01UUGtv; Wed, 24 Dec 2014 16:28:16 +0000 Received: from lorien.internal (lorien-wl.internal [192.168.1.40]) by mail.gonehiking.org (Postfix) with ESMTP id A3D643FED4; Wed, 24 Dec 2014 09:28:15 -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 Cc: Shuah Khan , linux-kbuild@vger.kernel.org, linux-kernel@vger.kernel.org, linux-api@vger.kernel.org, netdev@vger.kernel.org Subject: [PATCH v3 20/20] kbuild: add a new kselftest_install make target to install selftests Date: Wed, 24 Dec 2014 09:27:56 -0700 Message-Id: <05d750bb46f4f20c668b13c312c520c1e56f7ba1.1419387513.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=1419438497; bh=PnveOv6DSTXXT9pnuvOM9faZveww6nzkHrRc1q1VnhM=; h=Received:Received:Received:From:To:Subject:Date:Message-Id; b=WlxDf0MAin/3a8fdnUlqglM56KDLncggCLf5H6572QTqxL+O1CJpICBy2Wa3W5GNR DicQHuWZN9osZl2idRyDl218yyDXzKawZk0/40Z+4xf0Vyuj5qWlSb2LS2nEioI5rF PegEMMH8lLZjRywlehYa1LmBGW2dX3BoctvARVOujWyO1JT8xQuc5AoTEqWx77Vo0H 0fXQ7Lr7EgWhREmzP3NxezV1QkBQLIctpLPNBgajPdTbfrdMLGXqJyhW6t9y0WZbbq R5UTTI5gNVDlnvok9v98WlO0kbv/IyyOmRdZcN2KYrVdqTDHTWE+R4qBCfvHwQ+yyf rjIf9Fl4eQ/8g== 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 --- 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 ''