From nobody Thu Sep 11 10:19:18 2025 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 08131C04A94 for ; Tue, 1 Aug 2023 19:43:52 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S231354AbjHATnv (ORCPT ); Tue, 1 Aug 2023 15:43:51 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:34736 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229737AbjHATnt (ORCPT ); Tue, 1 Aug 2023 15:43:49 -0400 Received: from bg4.exmail.qq.com (bg4.exmail.qq.com [43.155.65.254]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 6B2F5B4; Tue, 1 Aug 2023 12:43:47 -0700 (PDT) X-QQ-mid: bizesmtp89t1690919018teg55b9x Received: from linux-lab-host.localdomain ( [116.30.131.233]) by bizesmtp.qq.com (ESMTP) with id ; Wed, 02 Aug 2023 03:43:36 +0800 (CST) X-QQ-SSF: 01200000000000E0X000000A0000000 X-QQ-FEAT: zT6n3Y95oi2xncCjfYqLvJjjsbmRl6823fPDREAyxCfDLSYkITqMOhNFYQoTq fivLI5x5TaCGmPT/OKdI79+yUj/BuxvA81Sdh8jMTIBfzX33G8EXZBxNLzldQkmaunbFXhb 2L4G45fpUSVcUWoTtL3GH4uEdr/tr/25txzbX8dYoTsQeYfMCxbmvQm5s3jyFSFMWvhgauJ hM76g5fiRw+WiGJbh2uN12XBTiXUjLY6PYQqtzXDszvM87qr67HPKvHxbvWgNIImRDsZdO2 VpUuzBlQkSTDF6XWH7WfGvVRko/YrkRNdWSTokLRhhDWCplQeThc78G5BFgQcgV0tUEPLg9 TGcpqsRA6KWERb8Qg9gxan+4pFA3stL8pZC/N+g5X3n6juuX/LqiaARi7QhiA== X-QQ-GoodBg: 0 X-BIZMAIL-ID: 13231898566651143164 From: Zhangjin Wu To: thomas@t-8ch.de Cc: falcon@tinylab.org, arnd@arndb.de, linux-kernel@vger.kernel.org, linux-kselftest@vger.kernel.org, w@1wt.eu Subject: [PATCH v4 07/12] selftests/nolibc: add help for nolibc-test-config target Date: Wed, 2 Aug 2023 03:43:36 +0800 Message-Id: <8302ff1aebab6906a9c26349db1f1fd178c92cb8.1690916314.git.falcon@tinylab.org> X-Mailer: git-send-email 2.25.1 In-Reply-To: References: MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable X-QQ-SENDSIZE: 520 Feedback-ID: bizesmtp:tinylab.org:qybglogicsvrgz:qybglogicsvrgz5a-1 Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Type: text/plain; charset="utf-8" Both the nolibc-test-config target and the NOLIBC_TEST_CONFIG marco are listed in the help output. Signed-off-by: Zhangjin Wu --- tools/testing/selftests/nolibc/Makefile | 42 +++++++++++++------------ 1 file changed, 22 insertions(+), 20 deletions(-) diff --git a/tools/testing/selftests/nolibc/Makefile b/tools/testing/selfte= sts/nolibc/Makefile index f01b258ef19b..3c9e3963fbad 100644 --- a/tools/testing/selftests/nolibc/Makefile +++ b/tools/testing/selftests/nolibc/Makefile @@ -119,30 +119,32 @@ REPORT ?=3D awk '/\[OK\][\r]*$$/{p++} /\[FAIL\][\r]*= $$/{if (!f) printf("\n"); f++ =20 help: @echo "Supported targets under selftests/nolibc:" - @echo " all call the \"run\" target below" - @echo " help this help" - @echo " sysroot create the nolibc sysroot here (uses \$$ARCH)" - @echo " nolibc-test build the executable (uses \$$CC and \$$CROSS_COMPI= LE)" - @echo " libc-test build an executable using the compiler's default li= bc instead" - @echo " run-user runs the executable under QEMU (uses \$$XARCH, \$$T= EST)" - @echo " initramfs prepare the initramfs with nolibc-test" - @echo " defconfig create a fresh new default config (uses \$$XARCH)" - @echo " kernel (re)build the kernel with the initramfs (uses \$$XA= RCH)" - @echo " run runs the kernel in QEMU after building it (uses \$$= XARCH, \$$TEST)" - @echo " rerun runs a previously prebuilt kernel in QEMU (uses \$$= XARCH, \$$TEST)" - @echo " clean clean the sysroot, initramfs, build and output file= s" + @echo " all call the \"run\" target below" + @echo " help this help" + @echo " sysroot create the nolibc sysroot here (uses \$$A= RCH)" + @echo " nolibc-test build the executable (uses \$$CC and \$$C= ROSS_COMPILE)" + @echo " libc-test build an executable using the compiler's = default libc instead" + @echo " run-user runs the executable under QEMU (uses \$$X= ARCH, \$$TEST)" + @echo " initramfs prepare the initramfs with nolibc-test" + @echo " nolibc-test-config create a fresh new \$$(CONFIG) config wit= h extra options from \$$NOLIBC_TEST_CONFIG files (uses \$$XARCH)" + @echo " defconfig do nolibc-test-config with default config= (uses \$$XARCH)" + @echo " kernel (re)build the kernel with the initramfs (= uses \$$XARCH)" + @echo " run runs the kernel in QEMU after building it= (uses \$$XARCH, \$$TEST)" + @echo " rerun runs a previously prebuilt kernel in QEMU= (uses \$$XARCH, \$$TEST)" + @echo " clean clean the sysroot, initramfs, build and o= utput files" @echo "" @echo "The output file is \"run.out\". Test ranges may be passed using \$= $TEST." @echo "" @echo "Currently using the following variables:" - @echo " ARCH =3D $(ARCH)" - @echo " XARCH =3D $(XARCH)" - @echo " CROSS_COMPILE =3D $(CROSS_COMPILE)" - @echo " CC =3D $(CC)" - @echo " OUTPUT =3D $(OUTPUT)" - @echo " TEST =3D $(TEST)" - @echo " QEMU_ARCH =3D $(if $(QEMU_ARCH),$(QEMU_ARCH),UNKNOWN_ARCH) [= determined from \$$XARCH]" - @echo " IMAGE_NAME =3D $(if $(IMAGE_NAME),$(IMAGE_NAME),UNKNOWN_ARCH)= [determined from \$$XARCH]" + @echo " ARCH =3D $(ARCH)" + @echo " XARCH =3D $(XARCH)" + @echo " CROSS_COMPILE =3D $(CROSS_COMPILE)" + @echo " CC =3D $(CC)" + @echo " OUTPUT =3D $(OUTPUT)" + @echo " TEST =3D $(TEST)" + @echo " QEMU_ARCH =3D $(if $(QEMU_ARCH),$(QEMU_ARCH),UNKNOW= N_ARCH) [determined from \$$XARCH]" + @echo " IMAGE_NAME =3D $(if $(IMAGE_NAME),$(IMAGE_NAME),UNKN= OWN_ARCH) [determined from \$$XARCH]" + @echo " NOLIBC_TEST_CONFIG =3D $(strip $(foreach c,$(NOLIBC_TEST_CON= FIG),$(wildcard $(CURDIR)/configs/$c))) [determined from \$$XARCH]" @echo "" =20 all: run --=20 2.25.1