From patchwork Wed Sep 25 23:04:34 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Shuah Khan X-Patchwork-Id: 11161709 Return-Path: Received: from mail.kernel.org (pdx-korg-mail-1.web.codeaurora.org [172.30.200.123]) by pdx-korg-patchwork-2.web.codeaurora.org (Postfix) with ESMTP id 898C014E5 for ; Wed, 25 Sep 2019 23:05:20 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.kernel.org (Postfix) with ESMTP id 67B9821D7E for ; Wed, 25 Sep 2019 23:05:20 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1569452720; bh=jx/eTol9BT3RLhSnBjjs2zJL4ifSJRVlikJzjCBw9oI=; h=From:To:Cc:Subject:Date:In-Reply-To:References:List-ID:From; b=L7v2o4WpqJfPo7loDO5HGYtqQ4cXl6UTAGq5TWBtzklGM2w7l2kjVkbpQsZYSz/3I SPJvkkNym6GBot2oTOZBwe5vqJ57VLQ9wznU1pAWLEzH3qz7So8OC7mMK/Ei/+5Eko nRs0+326giEhUSCVA3/uBqGRIr9BoILlMu1ARu+k= Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1731055AbfIYXFJ (ORCPT ); Wed, 25 Sep 2019 19:05:09 -0400 Received: from mail-io1-f67.google.com ([209.85.166.67]:42423 "EHLO mail-io1-f67.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1731028AbfIYXFI (ORCPT ); Wed, 25 Sep 2019 19:05:08 -0400 Received: by mail-io1-f67.google.com with SMTP id n197so1296800iod.9 for ; Wed, 25 Sep 2019 16:05:07 -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:in-reply-to:references :mime-version:content-transfer-encoding; bh=+b6H124ZTnuWVLwpA+w8I3lt6Bfem5vLH0ApPGFNuR4=; b=CEKaiLvSUKGkt9kJikJ4frh0/mKqeP2axdt/8who5BPBFIDeQM39dUFtxSf3ibq+XU t9DvdyOX/lF/ZfMY7hJi6Eizlu/gZEyxqUoRwvJKNLKrIq+f5BA2o8cIMfXOv/0S5SdM 16CkWbqDTanlWQQK554kaOOzjZqaqneNE1aRQ= 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:in-reply-to :references:mime-version:content-transfer-encoding; bh=+b6H124ZTnuWVLwpA+w8I3lt6Bfem5vLH0ApPGFNuR4=; b=bK5B9du/WASz+iu1SlLC2+3ppiWt66ytNI++p9Du7SS4DkG9e4X5CbFwXGEYrIZWo2 llKd2HVa/+KHkSDuMMz7N4vRiNjP/7QvbNwhgvDKVk1qNxk4C5lXzSklUhIw/kseS/CQ DF54Ih7ECxoFfzgNmrk8bq/jBZk/b9Y3tcPWRCAJg55k63AVhihOKWqG9fTEf67SSdCp 7Bm+QCmdmXnGa+FIVqE0EOqNyPCfhKQb+JUEYcbfj4djStJmOzErk6rs0BHziNY9lBoT MftuKT5XJbqeqezU/B4K3cOyYsxC59KNYyllJONVhChrkNZmOM0XGBoztn0x82DTGi+N DISg== X-Gm-Message-State: APjAAAVWfTFNQk/jskgHSecVPQ5Iybtr3CJLf78fHZ8I3pY3GY79b2ZJ j2N6CjfbM2MDnAD0zJq50U8Zhg== X-Google-Smtp-Source: APXvYqyjRRInxClK01iFOyoqVb48oB0vJYhbYNGchBjzPtQmKBhsAVGG+7+KJMKiPJZOg6kqgAf0+Q== X-Received: by 2002:a02:ac82:: with SMTP id x2mr883743jan.18.1569452707372; Wed, 25 Sep 2019 16:05:07 -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 f23sm70767ioc.36.2019.09.25.16.05.06 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 25 Sep 2019 16:05:06 -0700 (PDT) From: Shuah Khan To: yamada.masahiro@socionext.com, michal.lkml@markovi.net, shuah@kernel.org Cc: Shuah Khan , linux-kbuild@vger.kernel.org, linux-kselftest@vger.kernel.org, linux-kernel@vger.kernel.org Subject: [PATCH 1/2] Makefile: Add kselftest_build target to build tests Date: Wed, 25 Sep 2019 17:04:34 -0600 Message-Id: X-Mailer: git-send-email 2.20.1 In-Reply-To: References: MIME-Version: 1.0 Sender: linux-kbuild-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kbuild@vger.kernel.org Add kselftest_build target to build tests from the top level Makefile. This is to simplify kselftest use-cases for CI and distributions where build and test systems are different. Current kselftest target builds and runs tests on a development system which is a developer use-case. This change addresses requests from developers and testers to add support for building from the main Makefile. Signed-off-by: Shuah Khan --- Makefile | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/Makefile b/Makefile index d456746da347..ac4af6fc4b50 100644 --- a/Makefile +++ b/Makefile @@ -1233,6 +1233,10 @@ scripts_unifdef: scripts_basic # --------------------------------------------------------------------------- # 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