From patchwork Wed Jul 19 13:22:37 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Zhangjin Wu X-Patchwork-Id: 13318971 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by smtp.lore.kernel.org (Postfix) with ESMTP id 40E8FEB64DA for ; Wed, 19 Jul 2023 13:22:56 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S231190AbjGSNWz (ORCPT ); Wed, 19 Jul 2023 09:22:55 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:47774 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230509AbjGSNWy (ORCPT ); Wed, 19 Jul 2023 09:22:54 -0400 Received: from bg4.exmail.qq.com (bg4.exmail.qq.com [43.154.54.12]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 7F3C4113; Wed, 19 Jul 2023 06:22:52 -0700 (PDT) X-QQ-mid: bizesmtp82t1689772962tgim8kcd Received: from linux-lab-host.localdomain ( [119.123.130.39]) by bizesmtp.qq.com (ESMTP) with id ; Wed, 19 Jul 2023 21:22:41 +0800 (CST) X-QQ-SSF: 01200000000000D0X000000A0000000 X-QQ-FEAT: +bXiSo2NuBcL7jnLryDuQMhX+oFM/svSg3z6REjIYNvM0REi9CZiqEZnjWRCL ssb+wsQjZ8s935FBqNK3tojAPMVXvl8aV9UwAK4EfLNhW/r5ms/tCdMPpdIOt+EflVmdYDz bGXR5iCBo5Msz82inD3wj21q5qlY68UzWajtjYfmI/qROoSLF/gr8+RZjy0dVjexSpSJAWe ZMJFwMm3toAP1U5OAgMvedAY1thea5XkWrW/IQqVygK0NmrlAtUEjTSFS7v7Asp9KE6SapD ssDVy24csF5bypQdq1aRUxLKlNl2YDCxZxGTf7JBgTaIAPsl6Ys5c8tmCsUlV0nTxpiLOX5 sT+xKsrQRu+BO6ZbNbJYCo79gZik5C5S+DdEarQ8QOA74L72Jrnms/QqWlLrSNmZW5/ZfEV X-QQ-GoodBg: 0 X-BIZMAIL-ID: 1272607350294726886 From: Zhangjin Wu To: w@1wt.eu Cc: thomas@t-8ch.de, arnd@arndb.de, falcon@tinylab.org, linux-kernel@vger.kernel.org, linux-kselftest@vger.kernel.org Subject: [PATCH v2 05/14] selftests/nolibc: add menuconfig for development Date: Wed, 19 Jul 2023 21:22:37 +0800 Message-Id: X-Mailer: git-send-email 2.25.1 In-Reply-To: References: MIME-Version: 1.0 X-QQ-SENDSIZE: 520 Feedback-ID: bizesmtp:tinylab.org:qybglogicsvrgz:qybglogicsvrgz5a-1 Precedence: bulk List-ID: X-Mailing-List: linux-kselftest@vger.kernel.org The default DEFCONFIG_ may not always work for all architectures, let's allow users to tune some kernel config options with 'menuconfig'. This is important when porting nolibc to a new architecture, it also allows to speed up nolibc 'run' target testing via manually disabling tons of unnecessary kernel config options. 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 058e7be070ea..06954b4b3885 100644 --- a/tools/testing/selftests/nolibc/Makefile +++ b/tools/testing/selftests/nolibc/Makefile @@ -202,6 +202,9 @@ KERNEL_IMAGE = $(objtree)/$(IMAGE) defconfig: $(Q)$(MAKE_KERNEL) mrproper $(DEFCONFIG) prepare +menuconfig: + $(Q)$(MAKE_KERNEL) menuconfig + extconfig: $(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