Received: by 2002:a05:6358:c692:b0:131:369:b2a3 with SMTP id fe18csp2685298rwb; Sat, 29 Jul 2023 11:36:58 -0700 (PDT) X-Google-Smtp-Source: APBJJlF07Nsd2tXbVvtdJRxmlalK3B7AQ1SLfX0l+QcysxldzAF1cALsin91CUtFqI9Xplqw+hPD X-Received: by 2002:a17:90a:fe1:b0:267:ffcf:e9e3 with SMTP id 88-20020a17090a0fe100b00267ffcfe9e3mr5381653pjz.46.1690655817698; Sat, 29 Jul 2023 11:36:57 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1690655817; cv=none; d=google.com; s=arc-20160816; b=BKJqXM2INiZ0Jksgesp4borccdhlOG4tKYV+YFWAn9gF7ButyoLErrytKAFk6ibuOO 8YRDyipG+0ho4ARBtjZj2CcL3xISCRwAy955ZXf0zrsht/jO1Vh8dQ7rm8941m9qsusX mJs0U3Un2xNvqlF2E5JJd+RuFJ5Dp64dKDlhXwLeSDGXoiRNw+cI7y/vADxIrwhprc6C c13PtzIHKCMcp0rIWTXcsrBO9tPo5YGDvT3htx2NLDFlYAvjjwVb86rmGH4QfQkBfIQK Rg1D3LZuVDt1lcIl2jAGLeGCBaeD/gLczVd0kvzmN3I8QR7EoXJuvh9d5ydxa7or1cbA do8A== 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=ds0xj0gAZMWr/7gThwzgTtiDPxQeKkteXqK1iQ2kbcI=; fh=ujwW7c4tbJyQEFqfHDIuJXTy68vjNzYK6N7f8YmL270=; b=BTW50XIAhd5FtCxFLvVyCypTnHBe6+IeqZytL4Yis8DHErc6wHQZhmfgDz4/KLot6q PCAsfMM/gpLo6A+Im8A05AuI+CQuqHd3KM5b9Vg7A+ILmcTDM8IiA6jXCfKPj9KZDh+C 2iR21jqqYByX85rx3o1B9g6xJqV05u3NlBQx0fj+FF6aepUxcpEjT5m3x+fNabUkiqB6 BK5Jsehv8ih+myd1TAFcNu7c2R4YT4JFbDNjoTrTsI1hFehn+lpCs9S0VuXeKWlgp2J/ vw98QXdenuJjNemsrKhVEL9FFFpjtXj3mIrRh9dHMQLV1NnFsDElBCgD48wZ8Rn56HXk Plqg== 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 o42-20020a17090a0a2d00b0025bc95b20b8si2229453pjo.15.2023.07.29.11.36.45; Sat, 29 Jul 2023 11:36:57 -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 S229653AbjG2Q3U (ORCPT + 99 others); Sat, 29 Jul 2023 12:29:20 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:51720 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229515AbjG2Q3T (ORCPT ); Sat, 29 Jul 2023 12:29:19 -0400 Received: from 1wt.eu (ded1.1wt.eu [163.172.96.212]) by lindbergh.monkeyblade.net (Postfix) with ESMTP id A989D1FF0; Sat, 29 Jul 2023 09:29:17 -0700 (PDT) Received: (from willy@localhost) by pcw.home.local (8.15.2/8.15.2/Submit) id 36TGT7bV005278; Sat, 29 Jul 2023 18:29:07 +0200 Date: Sat, 29 Jul 2023 18:29:07 +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 v3 3/7] selftests/nolibc: add extra configs customize support Message-ID: <20230729162907.GA5219@1wt.eu> References: <74f6a3b5-666c-41e9-a3d5-0ed5457f20f5@t-8ch.de> <20230729143933.14462-1-falcon@tinylab.org> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20230729143933.14462-1-falcon@tinylab.org> User-Agent: Mutt/1.10.1 (2018-07-13) X-Spam-Status: No, score=-1.9 required=5.0 tests=BAYES_00,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 Sat, Jul 29, 2023 at 10:39:33PM +0800, Zhangjin Wu wrote: > > > diff --git a/tools/testing/selftests/nolibc/Makefile b/tools/testing/selftests/nolibc/Makefile > > > index f42adef87e12..9576f1a0a98d 100644 > > > --- a/tools/testing/selftests/nolibc/Makefile > > > +++ b/tools/testing/selftests/nolibc/Makefile > > > @@ -39,6 +39,9 @@ DEFCONFIG_s390 = defconfig > > > DEFCONFIG_loongarch = defconfig > > > DEFCONFIG = $(DEFCONFIG_$(ARCH)) > > > > > > +# extra kernel config files under configs/, include common + architecture specific > > > +EXTCONFIG = common.config $(ARCH).config > > > > As this series seems to need a respin anyways: > > > > extconfig means "extended config", correct? > > That is fairly nondescript. > > > > It is more about 'extra' as commented (or 'additional'), for both > defconfig (may) and tinyconfig (must) require more options to make boot > and print work for nolibc-test. > > defconfig ------\ > \ > \ > EXTCONFIG ----> a working .config for nolibc-test > / > / > tinyconfig------/ > > > I would prefer something like "NOLIBC_TEST_CONFIG" > > > > Using NOLIBC_TEST_CONFIG is ok, but with this name, do we still only put > the 'additional' options there? or we simply use EXTRA_CONFIG instead? > > # extra kernel config files under configs/, include common + architecture specific > EXTRA_CONFIG = common.config $(ARCH).config Either are fine to me. The most important is to mention that these configs are appended to the config during the defconfig and tinyconfig targets. Also I find it odd to use $(ARCH) here, I would have expected $(XARCH) since you probably want to distinguish ppc64 from ppc for example. > > something like "make nolibctestconfig" to make an existing config ready for > > nolibc-test. > > Do you mean rename 'defconfig' to 'nolibctestconfig'? or something > nolibc-test-config: > > nolibc-test-config: > $(Q)$(MAKE) -C $(srctree) ARCH=$(ARCH) CC=$(CC) CROSS_COMPILE=$(CROSS_COMPILE) mrproper $(DEFCONFIG) prepare > $(Q)$(srctree)/scripts/kconfig/merge_config.sh -O "$(srctree)" -m "$(srctree)/.config" $(foreach c,$(EXTRA_CONFIG),$(wildcard $(CURDIR)/configs/$c)) > $(Q)$(MAKE) -C $(srctree) ARCH=$(ARCH) CC=$(CC) CROSS_COMPILE=$(CROSS_COMPILE) KCONFIG_ALLCONFIG="$(srctree)/.config" allnoconfig > > It looks too long ;-) I think that as long as we don't claim to call topdir's makefile targets from this directory, we can reuse some similarly named targets which are documented in "make help" and are non-ambiguous. > Currently, we use 'defconfig' by default and we use 'make defconfig > DEFCONFIG=tinyconfig' to switch to tinyconfig, in the next weeks, when > all of the nolibc supported architectures have tinyconfig support, it is > able to switch 'tinyconfig' as the default config target. As long as it doesn't require to locally maintain too many options, I think I'm fine with that. But we'll see. Willy