Received: by 2002:a05:6358:700f:b0:131:369:b2a3 with SMTP id 15csp88429rwo; Tue, 1 Aug 2023 13:25:30 -0700 (PDT) X-Google-Smtp-Source: APBJJlEX0sWDMCBgehaPtA4vk5+dDuwa8fxOxo92nGI7MaKrVyezfRo6pLxdmjSKMzU/XTckOXbE X-Received: by 2002:a17:902:d481:b0:1bc:1d1b:2314 with SMTP id c1-20020a170902d48100b001bc1d1b2314mr6458403plg.26.1690921529835; Tue, 01 Aug 2023 13:25:29 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1690921529; cv=none; d=google.com; s=arc-20160816; b=qmr24/O7MrVuahHpdN+mYehDEvdMhZ4j5MVd/ehrrISmn8vMlitpQGTbagbZLqSyM9 YdnzKndp3t/sCiK7XD0I0xrxVlULE3r7MU1wMWr4dlzAJQ7wC6p+gIaLhy88QagTqpo2 ghnULX3xxiravBoLL9j1rzW3ukeWxHaFs2PeEaX3+Rs+XQSiKlIUhiOERR+2mKtnjGvW vR38L+AaWbAyxMbobYlYEt8MO8hoRA37or4Kbpodsy8ke0wwOgD269W5goozMQ78TkYI vYSd/DBP+9IXRw60O4RFriR3X+OGeNI/Ex4v0aniHi4NuMNJWwaFjgwCwuinH/9Wktnd sTXQ== 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=1xyI/oFKeJOopN6z4II4xqZbSCjC8KUlsrHKy2ehEPQ=; fh=xUlByBi+AOhlmUOP7Fsh4gyC+PRyawzp/HzGQQ0fKGA=; b=oHKoWOvFnzI49e0tvkPV0lsbYYL5T10GYsanXpo4isM53nAxoH4L/6THTTI1xKqm7N 4D4cZfafg6Zc7P9O3dLXbyr1LtujVy1dK849db00tZscg0HB6H3WTMdn6XdHkJwMY4j1 LM7mzoTmO3YpdrRChzooTQK6zkCFsRxDM55tM6rVuN/kxWNLKB5ARgXeyuLyD9T7hFXD mzKWDa8OQLSE1QPaPTPFY2xT4vE9h4kHGt5uEXzOH/WyhHEGK3d1vpKGX0iOrjLOe2R7 PbVFlex8dKkq6gBfNixq1KZghp3kqwlo7LIGWWw6jCSQKrgZyf/DmgdQw8A/Xe3cfcP8 uyIQ== 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 30-20020a63145e000000b0055b731aa9adsi9280160pgu.562.2023.08.01.13.25.16; Tue, 01 Aug 2023 13:25:29 -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 S231209AbjHATnu (ORCPT + 99 others); Tue, 1 Aug 2023 15:43:50 -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: 8bit X-QQ-SENDSIZE: 520 Feedback-ID: bizesmtp:tinylab.org:qybglogicsvrgz:qybglogicsvrgz5a-1 X-Spam-Status: No, score=-0.6 required=5.0 tests=BAYES_00, RCVD_IN_DNSWL_BLOCKED,RCVD_IN_MSPIKE_H2,RCVD_IN_VALIDITY_RPBL, SPF_HELO_NONE,SPF_PASS,T_SCC_BODY_TEXT_LINE autolearn=no 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 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/selftests/nolibc/Makefile index f01b258ef19b..3c9e3963fbad 100644 --- a/tools/testing/selftests/nolibc/Makefile +++ b/tools/testing/selftests/nolibc/Makefile @@ -119,30 +119,32 @@ REPORT ?= awk '/\[OK\][\r]*$$/{p++} /\[FAIL\][\r]*$$/{if (!f) printf("\n"); f++ 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_COMPILE)" - @echo " libc-test build an executable using the compiler's default libc instead" - @echo " run-user runs the executable under QEMU (uses \$$XARCH, \$$TEST)" - @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 \$$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 output files" + @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_COMPILE)" + @echo " libc-test build an executable using the compiler's default libc instead" + @echo " run-user runs the executable under QEMU (uses \$$XARCH, \$$TEST)" + @echo " initramfs prepare the initramfs with nolibc-test" + @echo " nolibc-test-config create a fresh new \$$(CONFIG) config with 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 output 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 = $(ARCH)" - @echo " XARCH = $(XARCH)" - @echo " CROSS_COMPILE = $(CROSS_COMPILE)" - @echo " CC = $(CC)" - @echo " OUTPUT = $(OUTPUT)" - @echo " TEST = $(TEST)" - @echo " QEMU_ARCH = $(if $(QEMU_ARCH),$(QEMU_ARCH),UNKNOWN_ARCH) [determined from \$$XARCH]" - @echo " IMAGE_NAME = $(if $(IMAGE_NAME),$(IMAGE_NAME),UNKNOWN_ARCH) [determined from \$$XARCH]" + @echo " ARCH = $(ARCH)" + @echo " XARCH = $(XARCH)" + @echo " CROSS_COMPILE = $(CROSS_COMPILE)" + @echo " CC = $(CC)" + @echo " OUTPUT = $(OUTPUT)" + @echo " TEST = $(TEST)" + @echo " QEMU_ARCH = $(if $(QEMU_ARCH),$(QEMU_ARCH),UNKNOWN_ARCH) [determined from \$$XARCH]" + @echo " IMAGE_NAME = $(if $(IMAGE_NAME),$(IMAGE_NAME),UNKNOWN_ARCH) [determined from \$$XARCH]" + @echo " NOLIBC_TEST_CONFIG = $(strip $(foreach c,$(NOLIBC_TEST_CONFIG),$(wildcard $(CURDIR)/configs/$c))) [determined from \$$XARCH]" @echo "" all: run -- 2.25.1