Received: by 2002:a05:6358:c692:b0:131:369:b2a3 with SMTP id fe18csp345459rwb; Thu, 27 Jul 2023 13:46:20 -0700 (PDT) X-Google-Smtp-Source: APBJJlH64/XWmYzzQQeiX2IjLbfg2HPvv1adFS/xLjrAZnhc6iBkKSgYZp8PFz9U5IyqJ3yBChAz X-Received: by 2002:a05:6a20:9382:b0:133:8784:15f7 with SMTP id x2-20020a056a20938200b00133878415f7mr4568050pzh.14.1690490779868; Thu, 27 Jul 2023 13:46:19 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1690490779; cv=none; d=google.com; s=arc-20160816; b=sjPgLfV29lMyLfhRyTlgGP1TbSUt/CGURDQbE8DjpssI8nrr2oSjWYmDKLUk/BVD9G pqaF6r8t0u4zapqWJ4v7975gkFWBJtMpw1yoRZHOvjR7Qnh7G3a9pmwEjAlO7qL0UDy7 gwh41bHOBXi0dt2wnybLZdmofLeICE1GHEdmCh5fwT3Hxkf9gV+URBfR7/1rkpcivCWD WjY8qYDde7MfADAdOW+xwBx+9mceQuFipzjJqZzhihUGR9wBux7qNF05M9P2YN0Hix2T DqGsNcV5lnKjxBw8sCtts/pJtasHEFJg+bYRJntr88JwXSfwGl3siX3z+Gz8LiyKZ9Le YuJQ== 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=jCMqmw6cLqU8M5itJWcByLcRXrfHP3sDg5TCFvxaHWU=; fh=CR7OSt3Y+a8PS+dgzZNHcKmuduX0vKjLX+CD3ki537g=; b=w488OIObF293lk0KDIazlm/SwxCf6ONrej4vtX0p+LE5gxn0PMoFvCDKmBvo5DQeNR hSsplrsHCa47aDLcmvJ29gxcbkfd13DhHP3Oh4CzTjLkV11HcJWBr15gfny16y6B4eCx ewlB3mNdVfvBcIB0+X4AvskfuaHra4kVtmvLIxjzhpyVoufb1GPMZ9z3l4A3Jh0mZbIY yFkYOuy9bxvs8rZsq0C0EWkRcSiW8ltF7T6PnwwtswyKmH0X7b38XW6s/mwHbJyi5+BS nxmsrXOEPR3y/I5OxPQdRb2j6LtHnOSwu6xTmkfsG97H90OLOAhwJmTU21EE8eiBdVn6 oppw== 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 o2-20020a63a802000000b0055b618c77f6si1706693pgf.180.2023.07.27.13.46.06; Thu, 27 Jul 2023 13:46:19 -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 S230031AbjG0U3i (ORCPT + 99 others); Thu, 27 Jul 2023 16:29:38 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:55066 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229448AbjG0U3h (ORCPT ); Thu, 27 Jul 2023 16:29:37 -0400 Received: from bg4.exmail.qq.com (bg4.exmail.qq.com [43.154.54.12]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 8A5BC2688; Thu, 27 Jul 2023 13:29:35 -0700 (PDT) X-QQ-mid: bizesmtp65t1690489766t9v338bu Received: from linux-lab-host.localdomain ( [61.141.78.189]) by bizesmtp.qq.com (ESMTP) with id ; Fri, 28 Jul 2023 04:29:25 +0800 (CST) X-QQ-SSF: 01200000000000D0X000000A0000000 X-QQ-FEAT: 3M0okmaRx3hs8KjjHXgV3Mnz1SbuFa76sKO20ziBuLGO5QLIvoP9RFy4OEgee Cy0+ZWIn7BRQWovusTQnisGvElCqSK+hdthX7FIZJa0rDEywrtYE9JwNPGXNfugDB1nTF7U +JD/jIMyAb7+eEg0Bn/XSgdSX5NQVY0+YUYRJWS4/IHQE1Ym0tZSaJxcMRrXSsP6FflLo58 ld499Ozr6Eo+sFi2CqSszJD/SCrP5OBpOuy7ATwW2fq0QokE/CUxRfcyR92DNJ5NFMCuU7c TAx3dnUznunh2zaCrxSAqWa6uSZUfImNSRnq/BT2eRS9LgbGmvO6jNZ56OyddZZ0bBhKyOE iCrVoZGvHR+BjNUKyxKqLGA7XIeg1nMUOzYarGvfLMWgJIkVJCEtrVdioJdpq2hM3UldzBO X-QQ-GoodBg: 0 X-BIZMAIL-ID: 17253053822244597306 From: Zhangjin Wu To: thomas@t-8ch.de, w@1wt.eu Cc: falcon@tinylab.org, arnd@arndb.de, linux-kernel@vger.kernel.org, linux-kselftest@vger.kernel.org Subject: [PATCH v3 07/12] selftests/nolibc: add menuconfig and mrproper for development Date: Fri, 28 Jul 2023 04:29:24 +0800 Message-Id: <45c0c24e77f4ae78ac3ace099f2e6678d15456e0.1690489039.git.falcon@tinylab.org> X-Mailer: git-send-email 2.25.1 In-Reply-To: References: 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_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 menuconfig and mrproper are frequently used operations during a new architecture porting, testing or debugging. menuconfig is required to tune and test extra kernel config options for tinyconfig. mrproper is required to get a clean srctree while want to start a new building with O= option, the old generated files in srctree must be mrproper-ed. differ from local nolibc targets, the menuconfig and mrproper targets from top-level Makefile accept different ARCH variable and require extra '-C /path/to/srctree', which make development not consistent and therefore very painful, let's add local menuconfig and mrproper targets too. To reduce duplicated entries, menuconfig and mrproper are added together. 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 6385915d16c9..a214745e0f3e 100644 --- a/tools/testing/selftests/nolibc/Makefile +++ b/tools/testing/selftests/nolibc/Makefile @@ -215,6 +215,9 @@ defconfig: $(Q)$(srctree)/scripts/kconfig/merge_config.sh -O "$(objtree)" -m "$(KERNEL_CONFIG)" $(foreach c,$(EXTCONFIG),$(wildcard $(CURDIR)/configs/$c)) $(Q)$(MAKE_KERNEL) KCONFIG_ALLCONFIG="$(KERNEL_CONFIG)" allnoconfig +menuconfig mrproper: + $(Q)$(MAKE_KERNEL) $@ + PHONY += $(KERNEL_CONFIG) $(KERNEL_CONFIG): $(Q)if [ ! -f "$(KERNEL_CONFIG)" ]; then $(MAKE) --no-print-directory defconfig; fi -- 2.25.1