From patchwork Fri Feb 16 21:41:13 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Arnd Bergmann X-Patchwork-Id: 10225789 Return-Path: Received: from mail.wl.linuxfoundation.org (pdx-wl-mail.web.codeaurora.org [172.30.200.125]) by pdx-korg-patchwork.web.codeaurora.org (Postfix) with ESMTP id C076C603EE for ; Fri, 16 Feb 2018 21:42:53 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id B1DA228FF5 for ; Fri, 16 Feb 2018 21:42:53 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id A687A29640; Fri, 16 Feb 2018 21:42:53 +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=-6.9 required=2.0 tests=BAYES_00,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 3328528FF5 for ; Fri, 16 Feb 2018 21:42:53 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1751114AbeBPVmj (ORCPT ); Fri, 16 Feb 2018 16:42:39 -0500 Received: from mout.kundenserver.de ([217.72.192.73]:45185 "EHLO mout.kundenserver.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751009AbeBPVmh (ORCPT ); Fri, 16 Feb 2018 16:42:37 -0500 Received: from wuerfel.lan ([95.208.111.237]) by mrelayeu.kundenserver.de (mreue105 [212.227.15.145]) with ESMTPA (Nemesis) id 0MTP5b-1fBFS73myt-00SR9F; Fri, 16 Feb 2018 22:42:29 +0100 From: Arnd Bergmann To: linux-kbuild@vger.kernel.org Cc: "Yann E . MORIN" , Masahiro Yamada , Michal Marek , Greg Kroah-Hartman , linux-kernel@vger.kernel.org, Arnd Bergmann Subject: [PATCH 3/3] Kconfig: add a default allrandom.config Date: Fri, 16 Feb 2018 22:41:13 +0100 Message-Id: <20180216214117.1947175-4-arnd@arndb.de> X-Mailer: git-send-email 2.9.0 In-Reply-To: <20180216214117.1947175-1-arnd@arndb.de> References: <20180216214117.1947175-1-arnd@arndb.de> X-Provags-ID: V03:K0:2DIC57SRIHN6L4/FxhZbOjyeoe3iQokjdOLws9JYYmeSPhCJjJs KzokFHkD0erXyUpBKYtP5suh5NwCGQLo7f2Fx5GVTwkvI2oYF6wqEMwZafGTFmbSlc8cPve FdV+9ZzfDRjdq6F2WPVGboEux5U2vX13eeCLIpO5AFDgxvPJQfVRAarnaa4eput5mCmDMaw AfDxfZ4CZNf8m7g72wp1w== X-UI-Out-Filterresults: notjunk:1; V01:K0:XZn+0LO7HE4=:Czydb2kFXksiVAWj2pPhUd L/V4gSeru1vxzj5jhbe5gisWB7vJ5UgD2bv7IzX1Uccb/EK00Rc5BYQ+c3tRko+IYQQAVSZXX frB7t4Oh4+WvwU6OXvs4FIjyWWQ/5BKUvcP1xxf7x45+n8+N641yP3b7pZrSb7xfZev7W8jTi r3GFI4e8HTiC8a4jdaGbvNrqp9oQoNrnyOykhx3+iwzbU9q2dUat2aGBSv1diaHzTpBj0zLu3 X/EfUjk2tKMvjonYsqvG/gkfEMtPn0kOY/qhjS0SD2m1+KVK11pWy1i8zA6HdkUqVrExoKRmA RTDjLBUJEjylb9xrrRNbw2seC+5PFmJccowx2bkNPCYDbahNgLw+NRiik3ugYZRqCkcSX9vB4 8Rjs02oiwiVoPjfSwvJxvZDSVjOJzhQ6EERyCq8uf+of8NvI8anBVTsjP3CYZRtcN9/FF16eg RxVMAxeYk8r98aRbXN+veHb/4wTxSJhUvNmTWZc3ds9NzHBtebDxCqoxZc48W9Ia1HEwCR41a f4pITNC2B4R882AzjvSBOT0mHv9HBZi+PWj2kUYjGZMgnP4Rw6PIXWjc+L+OivRGprvQ62eRl F1oSd53jEnAZOcr+vYXqD12yZThF8NHAelGgSP5rbTbo5501pAii/MM1CgsEdn4pt25t1VMc+ 0L8yeDYx0CXT02YrKmp0ci3+kTdIoneaDWmKW3TFkhXGFh2/FIQHKQ2TVszvGyZ8auSobaPYo fyNujs+ELYynePyr1NJS+DqRAs00SEnya0M0EQ== 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 Building randconfig kernels frequently leads to build errors from drivers that have additional build dependencies, or that we don't want to build for compile-testing for some other reason. We already have a couple of compile-time options that can deal with this problem, but the complete set is not documented well. We also have a method to override some options during 'make randconfig' and a couple of other make targets. However, we don't yet combine those two. This adds a new allrandom.config file to turn on CONFIG_COMPILE_TEST, CONFIG_STANDALONE and CONFIG_PREVENT_FIRMWARE_BUILD for all randconfig builds. This in turn disables some other options that we already try to avoid in 'allmodconfig' builds and that make no sense in a general randconfig build. Building with 'make randconfig KCONFIG_ALLCONFIG=1' should now always succeed without warnings on x86 and arm64, aside from recent regressions. Other architectures probably need additional bugfixes. Signed-off-by: Arnd Bergmann --- kernel/configs/allrandom.config | 6 ++++++ 1 file changed, 6 insertions(+) create mode 100644 kernel/configs/allrandom.config diff --git a/kernel/configs/allrandom.config b/kernel/configs/allrandom.config new file mode 100644 index 000000000000..67294ef2e3a2 --- /dev/null +++ b/kernel/configs/allrandom.config @@ -0,0 +1,6 @@ +# maximize search space, disable options not worth testing +CONFIG_COMPILE_TEST=y + +# reduce compile-time dependencies +CONFIG_STANDALONE=y +CONFIG_PREVENT_FIRMWARE_BUILD=y