Received: by 2002:ac0:a5a7:0:0:0:0:0 with SMTP id m36-v6csp1492459imm; Tue, 10 Jul 2018 02:47:35 -0700 (PDT) X-Google-Smtp-Source: AAOMgpckv6pJoTRTIiAM94Yfa0QwP0DbavOKKjxT2MaM6IHBZg2/JXJCTjMUp++gYfU0FT/EfnpC X-Received: by 2002:a17:902:622:: with SMTP id 31-v6mr23884363plg.135.1531216055469; Tue, 10 Jul 2018 02:47:35 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1531216055; cv=none; d=google.com; s=arc-20160816; b=EQCSn/RhmKL+qiLkgwDT/DIJdj6lV+GwD1LkRbKCTiiJ2ACGqlv+5X5DcV1cSX7KHn jQOAVJ0/ALpse/slIW5SWLL0YVNMQWOo8NCQcJzz7APEriSJC8xV5N23cOMd3ED2HP2z JFQ3qgDtymO7+wD1M8EGk9z9ax9tryLtbtCe2tPRFrZr8ZKtiHFVZLIu8BYhejKKeWpo uWRQH60iY1KAueO/V5oQo4pBltwOU6uO6Zd/6t/0MkBSY0mWC3QLiszww+D/Ps9SrHx9 vYttfurbj7QKjsQhWBJSMEGeyoweY/8CO5FBFzBOoTMejLnierw35Pkqttl7e0vfXdBK 2tJg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding :content-language:in-reply-to:mime-version:user-agent:date :message-id:from:references:cc:to:subject:arc-authentication-results; bh=VojXz36/koIfuwzxCdbk75P32VLrNzKwT6M2TcPItWc=; b=DPDNhxEclsjmaD1oO+EURLs+tYS4fgG4Muo3Cbb+TsY/j0F/0Ms+Zk0eO3/P5iL5wd q/fP5ub8tUg+V4TUk/10ooX2aOROsJxvDsVZrHcdeswOmudHLj8CE5z9zJsO4g3ZxYhu 3THaHYhn42KTxPQsCka9sKveo4ty5M40dWqbNVXvYM41yoiiSplvH4bQprT/QFOAIm9F Vt9ZBqJ6RA5rFnpKvCqrvxY5e5cdcq3qGVhjMLP73+3O7lAMIl7P4OkZz4TmhEZWYPsB fv2xHlLjL4INOPyQmj4H1MY+1nn6mB0/0rwC8IbnHZfgCFeoogb/p+I76IlVeHe7X+7A BsDw== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id h4-v6si15987859pgm.441.2018.07.10.02.47.19; Tue, 10 Jul 2018 02:47:35 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S932620AbeGJJqm (ORCPT + 99 others); Tue, 10 Jul 2018 05:46:42 -0400 Received: from mail.cn.fujitsu.com ([183.91.158.132]:38003 "EHLO heian.cn.fujitsu.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1751194AbeGJJqk (ORCPT ); Tue, 10 Jul 2018 05:46:40 -0400 X-IronPort-AV: E=Sophos;i="5.43,368,1503331200"; d="scan'208";a="42059564" Received: from unknown (HELO cn.fujitsu.com) ([10.167.33.5]) by heian.cn.fujitsu.com with ESMTP; 10 Jul 2018 17:46:38 +0800 Received: from G08CNEXCHPEKD01.g08.fujitsu.local (unknown [10.167.33.80]) by cn.fujitsu.com (Postfix) with ESMTP id E83C24B473FE; Tue, 10 Jul 2018 17:46:37 +0800 (CST) Received: from [10.167.226.60] (10.167.226.60) by G08CNEXCHPEKD01.g08.fujitsu.local (10.167.33.89) with Microsoft SMTP Server (TLS) id 14.3.399.0; Tue, 10 Jul 2018 17:46:41 +0800 Subject: Re: kconfig usage in automatic kernel test To: Masahiro Yamada CC: Michal Marek , "linux-kernel@vger.kernel.org" , Linux Kbuild mailing list References: From: Cao jin Message-ID: Date: Tue, 10 Jul 2018 17:45:34 +0800 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:52.0) Gecko/20100101 Thunderbird/52.7.0 MIME-Version: 1.0 In-Reply-To: Content-Type: text/plain; charset="utf-8" Content-Language: en-US Content-Transfer-Encoding: 7bit X-Originating-IP: [10.167.226.60] X-yoursite-MailScanner-ID: E83C24B473FE.AA120 X-yoursite-MailScanner: Found to be clean X-yoursite-MailScanner-From: caoj.fnst@cn.fujitsu.com X-Spam-Status: No Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On 07/08/2018 10:15 AM, Masahiro Yamada wrote: > 2018-07-06 17:49 GMT+09:00 Cao jin : >> Masahiro-san, >> >> I am writing some utility for internal kdump test with latest kernel, >> my purpose is to test the new introduced kernel feature. For automatical >> test, I see several config target could help, like olddefconfig, all*config. >> >> But for my purpose, I don't find a good way. For example, olddefconfig >> will let the now config item has default value, while some feature may >> default to "N"; allyesconfig will slow the compilation notably. >> But "all*config" has KCONFIG_ALLCONFIG help to customizing some config >> item, that is a good utility, but seems it can't be used in olddefconfig. >> >> All these things let me have 2 questions: >> >> 1. What would you suggest for my purpose? > > > scripts/kconfig/merge_config.sh > can be used with any *config target. > I took a quick glance at the script, it seems a good method to me. Thanks very much, Masahiro-san. > If you want to tweak some symbols based on olddefconfig, > this could be the one you want. > > >> 2. allyesconfig, allmodconfig, randconfig seems useful for test kbuild, >> but what's the purpose of allnoconfig, alldefconfig? In others words, >> when people would need allnoconfig, alldefconfig? > > I sometimes use allnoconfig for build testing. > > When I want to test the whole build process quickly, > I disable as many drivers as possible to save time. > > > I do not use alldefconfig. > Anyway, it would not hurt to have it for completeness. > Thanks for clarifying. -- Sincerely, Cao jin