From patchwork Thu Feb 14 21:37:18 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Brendan Higgins X-Patchwork-Id: 1042445 Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@bilbo.ozlabs.org Authentication-Results: ozlabs.org; spf=none (mailfrom) smtp.mailfrom=lists.infradead.org (client-ip=2607:7c80:54:e::133; helo=bombadil.infradead.org; envelope-from=linux-um-bounces+incoming=patchwork.ozlabs.org@lists.infradead.org; receiver=) Authentication-Results: ozlabs.org; dmarc=fail (p=reject dis=none) header.from=google.com Authentication-Results: ozlabs.org; dkim=pass (2048-bit key; unprotected) header.d=lists.infradead.org header.i=@lists.infradead.org header.b="k5iIfCD7"; dkim=fail reason="signature verification failed" (2048-bit key; unprotected) header.d=google.com header.i=@google.com header.b="BXI2cnVY"; dkim-atps=neutral Received: from bombadil.infradead.org (bombadil.infradead.org [IPv6:2607:7c80:54:e::133]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by ozlabs.org (Postfix) with ESMTPS id 440qXF4l7fz9sDX for ; Fri, 15 Feb 2019 08:38:53 +1100 (AEDT) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20170209; h=Sender: Content-Transfer-Encoding:Content-Type:Cc:List-Subscribe:List-Help:List-Post: List-Archive:List-Unsubscribe:List-Id:To:From:Subject:References:Mime-Version :Message-Id:In-Reply-To:Date:Reply-To:Content-ID:Content-Description: Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID: List-Owner; bh=ZIrazY2khlHGdmI0Xi30Ay8Vl9yeF5UcTTqgerA6Gw8=; b=k5iIfCD7eILDMW KTkbaswMC1GY93I9lsu25azVoiwrk4IAxvOzd3MiOaaOPFMGcLTXJu4Yy9c+HfOAFsyz1m4aex2ee tqegeja8aRfi+0NPXk3yasccyuYoVXvDeE2yyUbpPvlzwTJO4XX7Vj6cE6Ck4DLiM5ZXKiouiGrjM K8txUrZDVRi7YbP9yvAlUEn6xtDY2mchdMhk3p84C4B8MLCCiblW/7uCwG3ZjmKFPXcPKykG/1DBa Aox0HtQWXCsnndA2YhvGybQQ11tsixutTt58OaUgKMKdJYmsKpiCMFwkKE6vrOZrgzWtrcwqGdRoJ zw3Wax77QMXjzalcOh4A==; Received: from localhost ([127.0.0.1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.90_1 #2 (Red Hat Linux)) id 1guOiV-0002AA-Kl; Thu, 14 Feb 2019 21:38:47 +0000 Received: from mail-qt1-x849.google.com ([2607:f8b0:4864:20::849]) by bombadil.infradead.org with esmtps (Exim 4.90_1 #2 (Red Hat Linux)) id 1guOiS-00028g-Qt for linux-um@lists.infradead.org; Thu, 14 Feb 2019 21:38:46 +0000 Received: by mail-qt1-x849.google.com with SMTP id n95so7013278qte.16 for ; Thu, 14 Feb 2019 13:38:43 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=20161025; h=date:in-reply-to:message-id:mime-version:references:subject:from:to :cc; bh=h+keLiQ8UrSvEm7+wL7InKcQs/d0wg/MdPLT1U+V0Ho=; b=BXI2cnVYMUYwcQEU11+rgRhxE47n/thlxwGOpDjMnOxVeEQP0xokJ4nExSRcuK7SM0 QAAmlXECYYny7H4j6j51UL6iuiHYQF3g9l7aEuX2Jvz6oXm+2+CaJkevycJsRcEdkukZ AOTE+D/EYnpm5ajS1mu5g+SjJ9JXgvOFvJ5n1t49w29nl+2WdwVh2sdKeQyBUMSrPWNH fzldV7om7MT58A6bj4ylmdSIJhce8j1K2OfKJiif1T5QxSUGn4JvJ6fTMIn5/RTlHAyq be0LePsoUOPZVHvloaYd2XW+4pmC2FjvjAgvvCvI3eecIy5Y5XwruIR0CekLlogHJIyO 6aiw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:date:in-reply-to:message-id:mime-version :references:subject:from:to:cc; bh=h+keLiQ8UrSvEm7+wL7InKcQs/d0wg/MdPLT1U+V0Ho=; b=N15NzqH+2ew+6LlIZ9L2rhlGOHKKa9SiTes6nHChmLABj1I2UV5elFLbYwe5WdDOL6 EI8ETCZwv/xHCE88/OS6Qma2kWmeFO0PVyydZW1rb+5TeSuqYD9uHGHrcYOr653ogB5X bWy79rr2zI/gOgU8IkXUksk2E3/Y4YlYyBjg0rvvNSkBMLLo4LEUrEDKicWR54R3jeH1 AStbiwYq3MFV1aQaYP9DQhiKRNbndUJ2dZDsCpD/SzFmj2KZwKMOOA6pLXRcZhom4lsE iuUctBSZOpiK2FVMuDzfstmonTwCJ9sEKwYalhkp8ACXf9lFYKdnsvRr7WGKl4AQbwvQ HQrg== X-Gm-Message-State: AHQUAuaWtByZPeT3XRDKCNjKR7+fqXhyCidER+cxAdqdUYds3sDOPoWa v6jNkB+NzTw3Hk8VGJiN9bB2INE4xI+zUJPi9+rSQg== X-Google-Smtp-Source: AHgI3IYUSLyNNiD4a/w4HRwz+V30pDMQuGVooAEVXS4EAMj7mLItRzehEypNmaAk0pIfzA4HniHpwAB5iH9j08ChjsRL2w== X-Received: by 2002:aed:22ac:: with SMTP id p41mr2368970qtc.55.1550180323042; Thu, 14 Feb 2019 13:38:43 -0800 (PST) Date: Thu, 14 Feb 2019 13:37:18 -0800 In-Reply-To: <20190214213729.21702-1-brendanhiggins@google.com> Message-Id: <20190214213729.21702-7-brendanhiggins@google.com> Mime-Version: 1.0 References: <20190214213729.21702-1-brendanhiggins@google.com> X-Mailer: git-send-email 2.21.0.rc0.258.g878e2cd30e-goog Subject: [RFC v4 06/17] kbuild: enable building KUnit From: Brendan Higgins To: keescook@google.com, mcgrof@kernel.org, shuah@kernel.org, robh@kernel.org, kieran.bingham@ideasonboard.com, frowand.list@gmail.com X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20190214_133844_866614_36811F3B X-CRM114-Status: UNSURE ( 7.70 ) X-CRM114-Notice: Please train this message. X-Spam-Score: -7.7 (-------) X-Spam-Report: SpamAssassin version 3.4.2 on bombadil.infradead.org summary: Content analysis details: (-7.7 points) pts rule name description ---- ---------------------- -------------------------------------------------- -0.0 RCVD_IN_DNSWL_NONE RBL: Sender listed at http://www.dnswl.org/, no trust [2607:f8b0:4864:20:0:0:0:849 listed in] [list.dnswl.org] -0.0 SPF_PASS SPF: sender matches SPF record -7.5 USER_IN_DEF_DKIM_WL From: address is in the default DKIM white-list -0.1 DKIM_VALID_EF Message has a valid DKIM or DK signature from envelope-from domain -0.1 DKIM_VALID Message has at least one valid DKIM or DK signature -0.1 DKIM_VALID_AU Message has a valid DKIM or DK signature from author's domain 0.1 DKIM_SIGNED Message has a DKIM or DK signature, not necessarily valid -0.0 DKIMWL_WL_MED DKIMwl.org - Whitelisted Medium sender X-BeenThere: linux-um@lists.infradead.org X-Mailman-Version: 2.1.21 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: brakmo@fb.com, pmladek@suse.com, amir73il@gmail.com, Brendan Higgins , dri-devel@lists.freedesktop.org, Alexander.Levin@microsoft.com, linux-kselftest@vger.kernel.org, linux-nvdimm@lists.01.org, richard@nod.at, knut.omang@oracle.com, wfg@linux.intel.com, joel@jms.id.au, jdike@addtoit.com, dan.carpenter@oracle.com, devicetree@vger.kernel.org, Tim.Bird@sony.com, linux-um@lists.infradead.org, rostedt@goodmis.org, julia.lawall@lip6.fr, dan.j.williams@intel.com, kunit-dev@googlegroups.com, gregkh@linuxfoundation.org, linux-kernel@vger.kernel.org, daniel@ffwll.ch, mpe@ellerman.id.au, joe@perches.com, khilman@baylibre.com Sender: "linux-um" Errors-To: linux-um-bounces+incoming=patchwork.ozlabs.org@lists.infradead.org Add KUnit to root Kconfig and Makefile allowing it to actually be built. Signed-off-by: Brendan Higgins --- Changes Since Last Version - Rewrote patch description. This was previously called "[RFC v3 06/19] arch: um: enable running kunit from User Mode Linux," which was incorrect since this patch does not have any UML specific bits in it. --- Kconfig | 2 ++ Makefile | 2 +- 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/Kconfig b/Kconfig index 48a80beab6853..10428501edb78 100644 --- a/Kconfig +++ b/Kconfig @@ -30,3 +30,5 @@ source "crypto/Kconfig" source "lib/Kconfig" source "lib/Kconfig.debug" + +source "kunit/Kconfig" diff --git a/Makefile b/Makefile index 3142e67d03f1b..d10308eb7f214 100644 --- a/Makefile +++ b/Makefile @@ -958,7 +958,7 @@ endif PHONY += prepare0 ifeq ($(KBUILD_EXTMOD),) -core-y += kernel/ certs/ mm/ fs/ ipc/ security/ crypto/ block/ +core-y += kernel/ certs/ mm/ fs/ ipc/ security/ crypto/ block/ kunit/ vmlinux-dirs := $(patsubst %/,%,$(filter %/, $(init-y) $(init-m) \ $(core-y) $(core-m) $(drivers-y) $(drivers-m) \