Received: by 2002:a05:6358:701b:b0:131:369:b2a3 with SMTP id 27csp4600555rwo; Tue, 25 Jul 2023 08:19:28 -0700 (PDT) X-Google-Smtp-Source: APBJJlGtpRu1wDrDwS0uscfAbRggTpiqVW9UE/vFYVWEgpk0RAfBqeKIX9rYPGhWq+3H3ld6fTTv X-Received: by 2002:a17:903:2441:b0:1bb:5fd6:993c with SMTP id l1-20020a170903244100b001bb5fd6993cmr11235896pls.67.1690298367977; Tue, 25 Jul 2023 08:19:27 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1690298367; cv=none; d=google.com; s=arc-20160816; b=f4KVI1XgXXC8vUt5yNzphKri+NyqpLdeWDerXIKQmAOezcHqWdH+atLhZ6WJX0LEyc gsxdx7EywMEW+ATydSfd3YwOKnzszU/TdaQ5y5feL59/CIF1vbpO+wAGteDbMKhl4moQ sLtfYWmqUEQmwwdwEu2PmFy7N0/8Y0b7jC3t9Dl8oOyn0Mgrqj/B4alk8HnsA5g1RDGD tr6lVPdir2fBB9I1ju/GSabmO6rjNaN4zy9Dh2AwWgXm1XxowrF1LgdallPGgO3sVozn RA91Kf0myjkri72IklLCr1GGfy05ApyKVnpVUpFw6m6PNPoT6AxeS+3kJfCltbSsPnIs 5UlQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:feedback-id:content-transfer-encoding :mime-version:references:in-reply-to:message-id:date:subject:cc:to :from; bh=5TTLykaWw1yr4v70MGl4xS/elhEU+ooLPv3Hat+m/nc=; fh=sXngqCw1oXONrSSImRxZmGyzcK67QhJYp1RgY40tBsg=; b=tzBz1ST6N9Zfq1SVVqkl+1OCHuLCkL7+iXC/OhLcik/HFhg5dnr9zeGkoq+vWPn1fi AT+FTV/9kCWYGXPkEctugHMqtiSK3gR3HNkOmdE1evulBEAgWea8abD7X1KKW0iYZDJ9 3tgL5QhfaRucTsqkLlrOMvyvrzoOk8JTLdL7ug11y9a5W+sLoJmQcXS9roM/JAoGAzM2 XxUFIpugh0cSm3E3b1+8714eS5hkBe8fuoSfEeYKOBIZbse2wNXwcqX0AdSVElBKn0bj zwWc4o18d9KEgWW6a8jmAOipbvTKrTZVkbar+agihRTHJBWwXVJfTiRcNQicayW3BeD1 ASGA== 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 k12-20020a170902c40c00b001bb54abfc0fsi2656583plk.380.2023.07.25.08.19.14; Tue, 25 Jul 2023 08:19:27 -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 S232812AbjGYPNu (ORCPT + 99 others); Tue, 25 Jul 2023 11:13:50 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:42838 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S232696AbjGYPNs (ORCPT ); Tue, 25 Jul 2023 11:13:48 -0400 Received: from bg4.exmail.qq.com (bg4.exmail.qq.com [43.155.65.254]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 448E419A0; Tue, 25 Jul 2023 08:13:44 -0700 (PDT) X-QQ-mid: bizesmtp87t1690298014tleezm63 Received: from linux-lab-host.localdomain ( [61.141.78.189]) by bizesmtp.qq.com (ESMTP) with id ; Tue, 25 Jul 2023 23:13:33 +0800 (CST) X-QQ-SSF: 01200000000000D0X000000A0000000 X-QQ-FEAT: 3M0okmaRx3hIZ7n4l5sajWN0x3ZQQGFKpGON0fD5ygebOvoAYIXLchYVcPAEn bIuj+cZpfwuPYUGMT5gVwX+xuHc8DmEUBTA1WzIM2p2r6tjBPLnv4yuQbcwmF/sQDPQcALq d+q/hENcrbutUxStmEpP4mnegTi9mn2LqMcwj30ymVvhlsj40vKWjpViLIP0vuArZLeRGpn g3fBVr+1R0sMvrIv5gkdOzmS/9VqE2VJ/zetHVnUUkgGhs+KiUnERkm0o5VuYtam/Zho0/p nvCjR4t9GQSvIvudEKH4arMzpi/QL/46mKimCpTeLdkLcpbMtyLXbYGMtYtRiNzk63X2bNz biSoZqBCi9xEgJA+QQuKkiBZ12QL9u16UX4+JARG9EezXKbAA6/PUv+YU4ltA== X-QQ-GoodBg: 0 X-BIZMAIL-ID: 9699696357936062444 From: Zhangjin Wu To: w@1wt.eu Cc: arnd@arndb.de, falcon@tinylab.org, linux-kernel@vger.kernel.org, linux-kselftest@vger.kernel.org, thomas@t-8ch.de Subject: Re: [PATCH v2 12/14] selftests/nolibc: add tinyconfig target Date: Tue, 25 Jul 2023 23:13:33 +0800 Message-Id: <20230725151333.37939-1-falcon@tinylab.org> X-Mailer: git-send-email 2.25.1 In-Reply-To: <20230722130759.GL17311@1wt.eu> References: <20230722130759.GL17311@1wt.eu> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-QQ-SENDSIZE: 520 Feedback-ID: bizesmtp:tinylab.org:qybglogicsvrgz:qybglogicsvrgz5a-1 X-Spam-Status: No, score=-0.6 required=5.0 tests=BAYES_00,RCVD_IN_DNSWL_NONE, RCVD_IN_MSPIKE_H2,RCVD_IN_VALIDITY_RPBL,SPF_HELO_NONE,SPF_PASS, T_SCC_BODY_TEXT_LINE autolearn=no 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:30:30PM +0800, Zhangjin Wu wrote: > > The original tinyconfig target only enables minimal kernel config > > options, it can speed up the kernel build and nolibc test a lot and also > > brings us with smaller kernel image size. > > > > But the default enabled options are not enough for qemu boot and console > > print, some additional config options should be added for every > > architecture individually. > > > > 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 eec2935672ad..f42782fa78a9 100644 > > --- a/tools/testing/selftests/nolibc/Makefile > > +++ b/tools/testing/selftests/nolibc/Makefile > > @@ -218,6 +218,9 @@ mrproper: > > defconfig: > > $(Q)$(MAKE_KERNEL) $(DEFCONFIG) prepare > > > > +tinyconfig: > > + $(Q)$(MAKE_KERNEL) tinyconfig prepare > > So for the same reasons as defconfig above, I'd actually keep mrproper > here. Ok, let's add mrproper back here, since tinyconfig is fast enough, so, a mrproper is not that time cost and a cleanup is really good prepare. > And if we figure that tinyconfig is never called by the user > directly but as a dependency from the makefile itself or scripts, > then we likely don't even need to create a visible entry for it. > Great idea, At first, tinyconfig can be triggered by something like: $ make run defconfig DEFCONFIG=tinyconfig Perhaps we can let $(KERNEL_CONFIG) depends on the top-level 'tinyconfig' and trigger it by default: $(KERNEL_CONFIG): $(Q)if [ ! -f "$(KERNEL_CONFIG)" ]; then $(MAKE_KERNEL) --no-print-directory mrproper tinyconfig prepare; fi Of course, we should triger the extra config above. But this change must delay after we add tinyconfig support for all of the nolibc supported architectures. before that, we should use 'defconfig' as we do currently. So, it may be ok for us to drop this patch, but we also need to update some commit messages who uses tinyconfig target directly. Thanks, Zhangjin > Willy