Message ID | 45c0c24e77f4ae78ac3ace099f2e6678d15456e0.1690489039.git.falcon@tinylab.org |
---|---|
State | New |
Headers |
Return-Path: <linux-kernel-owner@vger.kernel.org> Delivered-To: ouuuleilei@gmail.com Received: by 2002:a05:6358:d09a:b0:134:c3fc:3153 with SMTP id jc26csp185151rwb; Thu, 27 Jul 2023 13:39:14 -0700 (PDT) X-Google-Smtp-Source: APBJJlG4vvHczhOnsIhGAWDr0f2Nk/8nKZsG9jhwvbYzgGVFyiLy9jRYhWpPWTO1HagaGyUeTifC X-Received: by 2002:aa7:d4d6:0:b0:522:214c:516 with SMTP id t22-20020aa7d4d6000000b00522214c0516mr52382edr.42.1690490354614; Thu, 27 Jul 2023 13:39:14 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1690490354; cv=none; d=google.com; s=arc-20160816; b=zA9IrjM91x21VVVPIIHLCSkNZh3BZsUWZD6+hSXDDWnKNS97nbnHx/uZHM+b6lF7Va ZSi+EHCoSXG/1cfk1WM8S/dS3yhv4oMiV4QHjA+pL6eOD7ca8h75sopTlWOyKYYZ7zeU D4SiMCtwg9VpCe0lklZV8e9jDIZB9gnVOvxStXVycGq4J8TXOljHhWDMFgyf3qdKghy6 GI1j1gyNgck6ot8m76zAPuGSyaBGEh37HSFIguslYPmcw8D20BaU891S76simOi3gTlb 7G/tD9iZ/rd5gwsnWqmAOny77WV1TyytFheEPopOMHr25C0Fc4Uwq96/v1ByyQ/iTvbA 7QvA== 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 Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id a25-20020a50e719000000b0051e52d264b6si1533107edn.236.2023.07.27.13.38.49; Thu, 27 Jul 2023 13:39:14 -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 S230043AbjG0U3i (ORCPT <rfc822;kloczko.tomasz@gmail.com> + 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 <rfc822;linux-kernel@vger.kernel.org>); 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 <falcon@tinylab.org> 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: <cover.1690489039.git.falcon@tinylab.org> References: <cover.1690489039.git.falcon@tinylab.org> 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: <linux-kernel.vger.kernel.org> X-Mailing-List: linux-kernel@vger.kernel.org X-getmail-retrieved-from-mailbox: INBOX X-GMAIL-THRID: 1772607613880837772 X-GMAIL-MSGID: 1772607613880837772 |
Series |
selftests/nolibc: add minimal kernel config support - part1
|
|
Commit Message
Zhangjin Wu
July 27, 2023, 8:29 p.m. UTC
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 <falcon@tinylab.org>
---
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