From patchwork Thu Jul 27 20:32:46 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Zhangjin Wu X-Patchwork-Id: 13330715 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 E7C08C41513 for ; Thu, 27 Jul 2023 20:33:12 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S231302AbjG0UdL (ORCPT ); Thu, 27 Jul 2023 16:33:11 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:57686 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231959AbjG0Uc6 (ORCPT ); Thu, 27 Jul 2023 16:32:58 -0400 Received: from bg4.exmail.qq.com (bg4.exmail.qq.com [43.154.54.12]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 45940F5; Thu, 27 Jul 2023 13:32:57 -0700 (PDT) X-QQ-mid: bizesmtp89t1690489968tjf0ydyx Received: from linux-lab-host.localdomain ( [61.141.78.189]) by bizesmtp.qq.com (ESMTP) with id ; Fri, 28 Jul 2023 04:32:46 +0800 (CST) X-QQ-SSF: 01200000002000D0X000B00A0000000 X-QQ-FEAT: +ynUkgUhZJkRxmTCWl75yKqo2fa1gLrTMSfYGM0V6uWTshSZ0cgdrv7cH/mZn dmX2sbf39Iyx1LX2kZa+vgxT8UOo4T5hxuT7dgpiJ6+3y3K8zuQZcX3CaCxWmcYdHJ9+ScP GtJIUU3bQdI6s8wWEomWlMCiLYKRgcLvtXD2NlwTiAdCGYpeChxDvfT3AIwmNa6xpnjdykf F476R5yc11Cn8Ive9Q1+bHgrFnZOLe3e+4hNszy2MRvJMbavTSgYGQ1JdwFqfWcDQg0qmSe yA9ajOz5duRz1dhmUpw0ZewPx1EkoNjQ0VE0Jla10GreyzUpKEo4XLv7AHBjcaVVYGxDTFp zmSCihnPDQlMRJptYUFdN3udt3VV2nKnCwfQYajztRIpHI0bFhWt7qZn1o9bw== X-QQ-GoodBg: 0 X-BIZMAIL-ID: 7408932279377289764 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 v3 10/12] selftests/nolibc: tinyconfig: add extra common options Date: Fri, 28 Jul 2023 04:32:46 +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 tinyconfig target from top-level Makefile has already enabled some common options, but they are not enough to enable boot and print. $ find kernel/ arch/*/ -name "tiny*.config" kernel/configs/tiny-base.config kernel/configs/tiny.config arch/x86/configs/tiny.config To enable qemu boot and console print, additional kernel config options are required, include the common parts and the architecture specific parts. Here adds minimal extra common parts for all architectures: * for initrd: CONFIG_BLK_DEV_INITRD * for init executable: CONFIG_BINFMT_ELF * for test result print: CONFIG_PRINTK, CONFIG_TTY Signed-off-by: Zhangjin Wu --- tools/testing/selftests/nolibc/configs/common.config | 4 ++++ 1 file changed, 4 insertions(+) create mode 100644 tools/testing/selftests/nolibc/configs/common.config diff --git a/tools/testing/selftests/nolibc/configs/common.config b/tools/testing/selftests/nolibc/configs/common.config new file mode 100644 index 000000000000..3957f812faac --- /dev/null +++ b/tools/testing/selftests/nolibc/configs/common.config @@ -0,0 +1,4 @@ +CONFIG_BLK_DEV_INITRD=y +CONFIG_BINFMT_ELF=y +CONFIG_PRINTK=y +CONFIG_TTY=y