From patchwork Fri Apr 19 23:24:04 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Shuah Khan X-Patchwork-Id: 10909861 Return-Path: Received: from mail.wl.linuxfoundation.org (pdx-wl-mail.web.codeaurora.org [172.30.200.125]) by pdx-korg-patchwork-2.web.codeaurora.org (Postfix) with ESMTP id 3472414DB for ; Fri, 19 Apr 2019 23:24:13 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 246AA28E16 for ; Fri, 19 Apr 2019 23:24:13 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 184D928E1A; Fri, 19 Apr 2019 23:24:13 +0000 (UTC) X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on pdx-wl-mail.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-8.0 required=2.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,MAILING_LIST_MULTI,RCVD_IN_DNSWL_HI autolearn=ham version=3.3.1 Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id B4A3428E16 for ; Fri, 19 Apr 2019 23:24:12 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726989AbfDSXYM (ORCPT ); Fri, 19 Apr 2019 19:24:12 -0400 Received: from mail-it1-f194.google.com ([209.85.166.194]:35686 "EHLO mail-it1-f194.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726392AbfDSXYM (ORCPT ); Fri, 19 Apr 2019 19:24:12 -0400 Received: by mail-it1-f194.google.com with SMTP id w15so10421902itc.0 for ; Fri, 19 Apr 2019 16:24:11 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linuxfoundation.org; s=google; h=from:to:cc:subject:date:message-id:mime-version :content-transfer-encoding; bh=j4DS1avFnyiFdbdES9jLYf8qPJs2YzliRnZrOZCnaiE=; b=bv9PZPjz4UM3jJ1eA22hJuuUCMIB4jApD+F1S6Du7axvH2paeH8uQafo2y4uPTjWY4 qZZ8Q24N0/COCI/xyWmYT7BdiVxDoFdRDmGzt6Obv/aZUsW971bQNenCaJ8TjloBZKst fmk/gDNIIZR58r6YruZdBzmFL3sPMLpNacHmM= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id:mime-version :content-transfer-encoding; bh=j4DS1avFnyiFdbdES9jLYf8qPJs2YzliRnZrOZCnaiE=; b=ZWnmuoXoygFLNbARMLF6ulQN1wgCnaKdm7Z01KCIYKdVMLTfYHe3IoQmLffwAKUB8T 9r5RxFXXXIheCz2xCWEHeRW7FY0rai7h2NzvBe3Zw3fQBb7XF+3P/kuCv9XrTJ2eFRaZ ZwdtS/7vWt4SdTGBCj3CDMT6ioHkb998bDJiD2ZuSJtOAsPWMmiNTaXLNDreEBQV5f3e 1oHx9QR40dxaAJwWKrY912XvpHHBmfDW+2qjg0gVoK0hsnmgTkzOPEprj157kgu0Pq03 ea3lqwaQFN47ysD3PpIUP3tSfNB1UkdahUSETLbAUTkayG1PoK46Mtgodnb3juDaS28Z QzcA== X-Gm-Message-State: APjAAAWyYEEDY2wyBfCu46Oaycr28d9Ik0V+KouZoC9PmWQYbLbdYGLn MTw/N+3QLILNU7Ph0GlfDOLsYw== X-Google-Smtp-Source: APXvYqzdb+VtILtrZX1epLwLh4qM/D82AVtK8J3TKNxGh2nkBweMBbH9P1IKI/mHPeXUSdX1SCzgtA== X-Received: by 2002:a24:953:: with SMTP id 80mr5188678itm.139.1555716251433; Fri, 19 Apr 2019 16:24:11 -0700 (PDT) Received: from shuah-t480s.internal (c-24-9-64-241.hsd1.co.comcast.net. [24.9.64.241]) by smtp.gmail.com with ESMTPSA id f17sm2727001itb.13.2019.04.19.16.24.10 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Fri, 19 Apr 2019 16:24:10 -0700 (PDT) From: Shuah Khan To: yamada.masahiro@socionext.com, michal.lkml@markovi.net Cc: Shuah Khan , linux-kbuild@vger.kernel.org, linux-kernel@vger.kernel.org Subject: [PATCH] Makefile: add kselftest-build target Date: Fri, 19 Apr 2019 17:24:04 -0600 Message-Id: <20190419232404.9746-1-skhan@linuxfoundation.org> X-Mailer: git-send-email 2.19.1 MIME-Version: 1.0 Sender: linux-kbuild-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kbuild@vger.kernel.org X-Virus-Scanned: ClamAV using ClamSMTP One of the use-cases is building kselftest and then installing. Adding a target to just build the tests from the main Makefile will help users and makes it easier. Signed-off-by: Shuah Khan --- Makefile | 3 +++ 1 file changed, 3 insertions(+) diff --git a/Makefile b/Makefile index 15c8251d4d5e..38a2ce3c343f 100644 --- a/Makefile +++ b/Makefile @@ -1195,6 +1195,9 @@ endif # --------------------------------------------------------------------------- # Kernel selftest +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