Received: by 2002:a05:6358:701b:b0:131:369:b2a3 with SMTP id 27csp1075574rwo; Sat, 22 Jul 2023 06:09:59 -0700 (PDT) X-Google-Smtp-Source: APBJJlGjG5X+awa6ZqCmTaYO/9HJxw5aCMOW7H+AsMFSLDKhbwXQYjp+/+UxA9NvTPZ934C9Gf0q X-Received: by 2002:a05:6a00:8cc:b0:682:54b9:1093 with SMTP id s12-20020a056a0008cc00b0068254b91093mr4338416pfu.15.1690031398689; Sat, 22 Jul 2023 06:09:58 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1690031398; cv=none; d=google.com; s=arc-20160816; b=SgCvmR46aVeafNWHvmZvZYu6Ur2slAnXybaNEZcbJnQGegnyVaigDQYrKk5kUgyTWe g1ZGogxKTqb9LJDxZdcdj1xyr22k1M6TQsh+vgcN9GxthGPNtAOS2iA94KlwyQdh5xhW 5rm0BbAsm9/D24qaD/HZVAdI4Nt/QCe8nGE/XFlhIswOqBc4B1pmzlcD2tr0hDiN+2xp au9f8vSIlVQEwmsctlrYWeIch6j2CoU1COKimrv0l1X699483Ktf1jBH6yA9jDTNhzJo zyU6JIUkgCPMRFqfQMaZtbNHhrC6R1uww7rN3TwYjTHM4vF7Nknx9sMqb4Ddrnj1wbT6 pAyg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:user-agent:in-reply-to:content-disposition :mime-version:references:message-id:subject:cc:to:from:date; bh=w4sAq/MQiWEJormqg4dY8lBqM116h1vrg+JsY2Uaxyw=; fh=ujwW7c4tbJyQEFqfHDIuJXTy68vjNzYK6N7f8YmL270=; b=UygueODbQ3E5KgXHag98AZYNJKr00XJweVEgAuTU1d3d0WAmzMkn01BLzi5XIVPc4C 1qw5752ZD6nmUp5Q309rVNvu4O7+4Cc4aSvuEtFjBSUmmolqw+pF33+t59kPHr/ji9c3 LHZki+Ubk3Nhs2h5ZMX6q8BCdhn9jx/jQJrib0Q5K2HJDlMbvBtGRVLyABcoY+JtUcaj 1mKGE3fx1jJTkuYvXDBdb89Y5Ag1KfyWZpE3Aq+8GkgFFY3AVsomQbpnMiPrlUiVQ9xC E/z7S6VrNCQ+N2Kd67ckd2MMQG1dhRr2E2+zockL1aZb1LmBMcsc9uqu8QiPj43lp7r1 /Kkw== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id s16-20020a63af50000000b0055727399652si3487318pgo.577.2023.07.22.06.09.40; Sat, 22 Jul 2023 06:09:58 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S230023AbjGVMfk (ORCPT + 99 others); Sat, 22 Jul 2023 08:35:40 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:48516 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229493AbjGVMfj (ORCPT ); Sat, 22 Jul 2023 08:35:39 -0400 Received: from 1wt.eu (ded1.1wt.eu [163.172.96.212]) by lindbergh.monkeyblade.net (Postfix) with ESMTP id 7D476E71; Sat, 22 Jul 2023 05:35:37 -0700 (PDT) Received: (from willy@localhost) by pcw.home.local (8.15.2/8.15.2/Submit) id 36MCZR0R017420; Sat, 22 Jul 2023 14:35:27 +0200 Date: Sat, 22 Jul 2023 14:35:27 +0200 From: Willy Tarreau To: Zhangjin Wu Cc: thomas@t-8ch.de, arnd@arndb.de, linux-kernel@vger.kernel.org, linux-kselftest@vger.kernel.org Subject: Re: [PATCH v2 05/14] selftests/nolibc: add menuconfig for development Message-ID: <20230722123527.GG17311@1wt.eu> References: MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: User-Agent: Mutt/1.10.1 (2018-07-13) X-Spam-Status: No, score=-1.9 required=5.0 tests=BAYES_00, RCVD_IN_DNSWL_BLOCKED,SPF_HELO_PASS,SPF_PASS,T_SCC_BODY_TEXT_LINE autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Wed, Jul 19, 2023 at 09:22:37PM +0800, Zhangjin Wu wrote: > The default DEFCONFIG_ may not always work for all architectures, > let's allow users to tune some kernel config options with 'menuconfig'. > > This is important when porting nolibc to a new architecture, it also > allows to speed up nolibc 'run' target testing via manually disabling > tons of unnecessary kernel config options. > > Signed-off-by: Zhangjin Wu > --- > tools/testing/selftests/nolibc/Makefile | 3 +++ > 1 file changed, 3 insertions(+) > > diff --git a/tools/testing/selftests/nolibc/Makefile b/tools/testing/selftests/nolibc/Makefile > index 058e7be070ea..06954b4b3885 100644 > --- a/tools/testing/selftests/nolibc/Makefile > +++ b/tools/testing/selftests/nolibc/Makefile > @@ -202,6 +202,9 @@ KERNEL_IMAGE = $(objtree)/$(IMAGE) > defconfig: > $(Q)$(MAKE_KERNEL) mrproper $(DEFCONFIG) prepare > > +menuconfig: > + $(Q)$(MAKE_KERNEL) menuconfig What is the real benefit of this compared to just running the standard "make menuconfig" ? We should avoid adding makefile targets that do not bring value on top of that the top-level makefile does, because it will make the useful ones much harder to spot, and will tend to encourage users to use only that makefile during the tests, which is a bad practice since many targets will always be missing or work differently. It's important in my opinion that we strictly stick to what is useful to operate the tests themselves and this one doesn't make me feel like it qualifies as such. Willy