From patchwork Sun Jun 25 16:22:41 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Zhangjin Wu X-Patchwork-Id: 112633 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:a59:994d:0:b0:3d9:f83d:47d9 with SMTP id k13csp6997082vqr; Sun, 25 Jun 2023 09:30:02 -0700 (PDT) X-Google-Smtp-Source: ACHHUZ4R+Id+aL8+TbEh/tAsLutcfai5AmiqhsyLYag3Eeqr50APd2Yb117o4sENNdiD0QgAVWxH X-Received: by 2002:a17:907:72c2:b0:991:b2a2:e424 with SMTP id du2-20020a17090772c200b00991b2a2e424mr600675ejc.76.1687710602415; Sun, 25 Jun 2023 09:30:02 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1687710602; cv=none; d=google.com; s=arc-20160816; b=iErf7B19YXHnyW65y731WhfjVUgFuayY56g5dahlRtaqFbAzBS4ci/BYTv8YI/X+Ic FcFxSZaYyeRWHKJUdc88wFxCRgQFepBupXOMu2+/0OPiZJPxvpHey6qPNcp72JgPjVhn Ze3vfEXvkBqptp7AonV1YN6uiqC+8XyuBcY7mexeoVg8V5XVXDryHuEPVeF7fsxO3WKh qU0/MbyGNn4EOiMJv+BC1Ey906XEEYcBo7WFeYminNi3U+JZ09ab/YYh4iG56TqC3TvG FNaK2DkVHXdrvutbCatySYFlDPp8wqEsAxyPmc7I4IjL+5jJeikQmRt3bG0KE18+bC0O ACzA== 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=l0IPO2cCgCWOZTo9fObhgay9MiyOLHrisvs/JhP8WoY=; fh=GzghTQzqgly4pZn8BwQ4U8bZ8zCadAK8Sl/utskeyEs=; b=oTtlCToW8vSMp7ziWD3UNVE8niAERHv9QZpiMMxzet6c8G/puJIuNrM5720xuAc5on L/HX4HRn1b1ZneSXKhOVsCCFXzsbz7td9rdtXxYfPvTnTNBbUGtorXCCJd9Ex8LA7VDV lh73Ke9E6hHx5XPFVXijAdaa844AMCCzegHu1Qe6bzaWHtTFVzYr5Q/6DTKcIwi8Kn02 h4BsAwjGFWTTLA3TcG+fncXTDiL1PuPIpgVg0mM4CjD/2hiIAw/lcdm6Ikl0cb9VknYt RNt+Vk/U7+/juEDUQ2hzpcjerBZ2mSurA12lUyL7le510j3EUlOlm2j3/wR/aCln9mRm NXQQ== 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 n7-20020a170906840700b00988ac1314absi1919081ejx.648.2023.06.25.09.29.38; Sun, 25 Jun 2023 09:30:02 -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 S229941AbjFYQXK (ORCPT + 99 others); Sun, 25 Jun 2023 12:23:10 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:54912 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229634AbjFYQXH (ORCPT ); Sun, 25 Jun 2023 12:23:07 -0400 Received: from bg4.exmail.qq.com (bg4.exmail.qq.com [43.154.54.12]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 5420EF7; Sun, 25 Jun 2023 09:23:05 -0700 (PDT) X-QQ-mid: bizesmtp75t1687710174trrepom4 Received: from linux-lab-host.localdomain ( [116.30.129.193]) by bizesmtp.qq.com (ESMTP) with id ; Mon, 26 Jun 2023 00:22:53 +0800 (CST) X-QQ-SSF: 01200000000000D0V000000A0000000 X-QQ-FEAT: znfcQSa1hKYSewel9R5tfK6iXWL0tG+7XzUCS2dRMwYgVkTzq+dnMLaN0SZdd KsHYnCbiyvVHTBeIzWRqb8bviJBXXxVYzlfu/Om2L6rc3PHQKwooqGWi+zqIfThXS6Dygc3 WwkE3aWak9gg+eo3ddAO6C3qsX3MPEs+JoyzlUprXf84p3nQiUBXkvMjRNPw3TWJLyqILmG JO/YbLUK870quZTewdQq9dfIbi590Lk8nEDkN/agMayfvxS+cgcS5XpbronNLem/armSCfW FnsFRrtHGzfkuU5V26Me6cYIWZvM0rvrs3OHJm+42uVvr8Tr0861JBI+aG3d4ibT3XzibwY 5oV5+sNF+xT1otht/uwHo5ZcTu4vDaAN04QmE6Z0cbUA+o34hw= X-QQ-GoodBg: 0 X-BIZMAIL-ID: 13042838406856188047 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 v1 07/22] selftests/nolibc: add common extra config options Date: Mon, 26 Jun 2023 00:22:41 +0800 Message-Id: <8eec688082dc5c3fde88748600b3763d13b0ba09.1687706332.git.falcon@tinylab.org> 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:qybglogicsvrsz:qybglogicsvrsz3a-3 X-Spam-Status: No, score=-1.9 required=5.0 tests=BAYES_00,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 X-getmail-retrieved-from-mailbox: =?utf-8?q?INBOX?= X-GMAIL-THRID: =?utf-8?q?1769692832527043556?= X-GMAIL-MSGID: =?utf-8?q?1769692832527043556?= This adds config options required by all of the architectures. * for initrd -e BLK_DEV_INITRD --set-str CONFIG_INITRAMFS_SOURCE $(CURDIR)/initramfs * for init executable -e BINFMT_ELF * for test result print -e PRINTK -e TTY * for panic reset instead of hang --set-val PANIC_TIMEOUT 1 Signed-off-by: Zhangjin Wu --- tools/testing/selftests/nolibc/Makefile | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/tools/testing/selftests/nolibc/Makefile b/tools/testing/selftests/nolibc/Makefile index 0b810681547b..147c2db49635 100644 --- a/tools/testing/selftests/nolibc/Makefile +++ b/tools/testing/selftests/nolibc/Makefile @@ -49,7 +49,10 @@ DEFCONFIG_loongarch = defconfig DEFCONFIG = $(DEFCONFIG_$(ARCH)) # extra kernel configs shared among architectures -EXTCONFIG_COMMON = --set-str CONFIG_INITRAMFS_SOURCE $(CURDIR)/initramfs +EXTCONFIG_COMMON = -e BLK_DEV_INITRD --set-str INITRAMFS_SOURCE $(CURDIR)/initramfs +EXTCONFIG_COMMON += --set-val PANIC_TIMEOUT 1 +EXTCONFIG_COMMON += -e PRINTK -e TTY +EXTCONFIG_COMMON += -e BINFMT_ELF # extra kernel configs by architecture EXTCONFIG_ARCH = $(EXTCONFIG_$(ARCH))