Received: by 2002:a05:6358:c692:b0:131:369:b2a3 with SMTP id fe18csp3081260rwb; Sat, 29 Jul 2023 22:59:50 -0700 (PDT) X-Google-Smtp-Source: APBJJlFTKtVfnfDyZio4dtjGdrrp6dyaGallavrYFK50uz9F5m2QZ0paxqcs026+NlDVBX8+wHB+ X-Received: by 2002:a17:907:75ed:b0:982:79fa:4532 with SMTP id jz13-20020a17090775ed00b0098279fa4532mr4896414ejc.53.1690696789909; Sat, 29 Jul 2023 22:59:49 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1690696789; cv=none; d=google.com; s=arc-20160816; b=SAEQuHOhVztFPrUfNICwumEFUZpAXvFNyHJ/CcwUz2Fo4E8Zbmz6gg5iQtLJtEYXVH hf+atNlcoe5X22E8Rx72aXA/iB65Vdkz70Cuc1JN/qCHpc6d3uNyZZNavmw/OsWUv7qz suXuRZUQzwr+ulSJ9h25FhZ6wpkxTk2VKkE/DKGcDQc4cBbSzI4ypQDHPP8Iah9C26dr mMZrMalgEB0wYMb1Rb8CjXVmDTL3PtPKU9EvAu/WpMdNDKngKRtxiXoxHJ/a95ii2XOf CApdDQaIrSge4dw42sXIBbcu5nXIwBZuVN2oW2fvSMuNTcODkEYDJ3JEhj6EJFR22Dss hUbQ== 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=y423sHL+bZ/U9SaK4C4OoXcJN3r4JoC//kBriZzffPQ=; fh=sXngqCw1oXONrSSImRxZmGyzcK67QhJYp1RgY40tBsg=; b=GQT48CK/3/fodu3sk81ZB2Na6EGDOzw0z+5Vk9PiiFDW1CvrzfIY0kNXqo2CY3AmxQ 5T03qR4tB3T076zufRtGtm0P8AeJP5ZCemevSux9GDIdW3/4Gqfq/AbMLaMHi81P/XzH +xgfsnLK53xsERNUgMiQyWWLfUa2O0kUDOXGUcY1MSQKAlQ3OUE7bZoB6/PlRc13Vkpz PBl0l5k4er7x9mWTEy6s9I6BAn+TU4Lr8MF+4kHDuUrLVbEvBH9uoQ4ChGVgEc5f8YDQ lbnsBnLo83ix8bpH2I86mMCGauAz5k3ICEMyKACufM0f06zz+x0ngdygvWAYQSX2em8o 4Vow== 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 i5-20020a170906850500b009665172f30esi5610259ejx.876.2023.07.29.22.59.15; Sat, 29 Jul 2023 22:59:49 -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 S229572AbjG3EyY (ORCPT + 99 others); Sun, 30 Jul 2023 00:54:24 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:41560 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229379AbjG3EyW (ORCPT ); Sun, 30 Jul 2023 00:54:22 -0400 Received: from bg4.exmail.qq.com (bg4.exmail.qq.com [43.154.54.12]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id CFE5B210B; Sat, 29 Jul 2023 21:54:19 -0700 (PDT) X-QQ-mid: bizesmtp85t1690692849tj81rdk5 Received: from linux-lab-host.localdomain ( [61.141.77.223]) by bizesmtp.qq.com (ESMTP) with id ; Sun, 30 Jul 2023 12:54:07 +0800 (CST) X-QQ-SSF: 01200000000000E0X000000A0000000 X-QQ-FEAT: HIVLo4mOhq424Et56kvGrPQKRRrEGuy362sgJ5tS+pZFVUKO2Et4LfRgKZ6dR vEzeOtI7p/kpYXbebFYLhvICN92nhNG3TZ795I4HnIkum6oTuSvj7e6Mijkn+qL/ONhFCJ9 e6Kv7OK1ZGX6drUWPBGzSWCFChEOhgnAmtULMVKr6vtvwa7ip9A92oE8rwC7I9eGdAf9Rsi EZahsLSUI91Rpa2t/Letv5I/XrxlBPMoyR5DxC85vO7g3uy4mXX523aNLjHhlkkztjUGtOd UDPOQnhHdEEpm44vZkv21K6H8RKpGRWOoSqJxQpppU6oi0lxjdLZjCSLNEiF4aqWOau808w oPoXwpW/sP36ipH26p+Xhf6tdyzj4rvh/95e+ABgjgYOLvYz0y3qO+W6QCTGQ== X-QQ-GoodBg: 0 X-BIZMAIL-ID: 17043835208750504561 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 v3 3/7] selftests/nolibc: add extra configs customize support Date: Sun, 30 Jul 2023 12:54:07 +0800 Message-Id: <20230730045407.8804-1-falcon@tinylab.org> X-Mailer: git-send-email 2.25.1 In-Reply-To: <20230729171017.GC5219@1wt.eu> References: <20230729171017.GC5219@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=-1.9 required=5.0 tests=BAYES_00, RCVD_IN_DNSWL_BLOCKED,RCVD_IN_MSPIKE_H2,SPF_HELO_NONE,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 Sun, Jul 30, 2023 at 12:54:45AM +0800, Zhangjin Wu wrote: > > > 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. > > > > > > > Yes, we do, but the XARCH and ARCH mmapping patch is the 4th, will > > update this to XARCH, this one is the 3rd one, do we need to add this > > one after the 4th one? > > OK indeed it's the 4th one that will modify this one then, no need > to reorder. > > > > > > 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. > > > > Seems 'nolibc-test-config' is really more meaningful than 'defconfig', especially > > when we want to use tinyconfig through it? > > > > $ make nolibc-test-config DEFCONFIG=tinyconfig > > As a user, I'd ask "why not make tinyconfig" ? But see my other message, > now I'm having strong doubts about the relevance of tinyconfig if it works > as bad as you described it. > I have added a nolibc tinyconfig target before, as the same reason, based on your suggestion, I have removed the tinyconfig target and even moved the extconfig to this defconfig to avoid add more similar or extra complex targets in nolibc Makefile. before, tinyconfig + extconfig together work for nolibc-test, so, tinyconfig is the same as the top-level one, it should be removed as your suggested. But since now, we are ready to get a real different target from the top-level one, we may be able to have different targets for 'defconfig+EXTRA_CONFIG' and 'tinyconfig+EXTRA_CONFIG' like this: nolibc-test-config: $(Q)echo $(MAKE_KERNEL) mrproper $(or $(CONFIG),defconfig) $(Q)echo $(srctree)/scripts/kconfig/merge_config.sh -Q -O "$(objtree)" -m "$(KERNEL_CONFIG)" $(foreach c,$(EXTRA_CONFIG),$(wildcard $(CURDIR)/configs/$c)) $(Q)echo $(MAKE_KERNEL) KCONFIG_ALLCONFIG="$(KERNEL_CONFIG)" allnoconfig $(Q)echo $(MAKE_KERNEL) prepare nolibc-test-defconfig nolibc-test-tinyconfig: nolibc-test-config nolibc-test-tinyconfig: CONFIG=tinyconfig The complexity here is we have planned to support both defconfig and tinyconfig, what about this solution? Thanks, Zhangjin > Willy