From nobody Wed Jun 17 06:13:00 2026 Received: from todd.t-8ch.de (todd.t-8ch.de [159.69.126.157]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 8360B34A3DB; Mon, 27 Apr 2026 16:05:55 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=159.69.126.157 ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1777305958; cv=none; b=oXqbnTrnypPffCsuxOe1GWwNUzgRv67bO3oOj8kmIFmoE7zw4mZXDTQow3hYHR/URrrP7VIaM9UHN75FSLDO7JKHTsMEL1HzpnzcVA7tAadh4aFCxP3qgZvFAkq2ndsGv/xJkqVkV/xFIUBmEloD4NzQsxYxHVLFkv0KcehOpXM= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1777305958; c=relaxed/simple; bh=W1SRkiYTcWvF7f8ZhGxDMMs6COXEzVoexFW7mmyLsJU=; h=From:Date:Subject:MIME-Version:Content-Type:Message-Id:References: In-Reply-To:To:Cc; b=NAzqfd2706pHQIKGP3ICalhJI2Yt1hrmK8W++UuKyejbGd4tCCxuKeWWIyKtI8H3DFfvNWow1iLfYEzVCEHYQQP5MvzdURFP2p8j7e+cwyxBa2LtilySWzURRjR7P9xYbPnFCIxP/byYoFW5Bk6BfSbprkGLJ0npBsTShfSJBoY= ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dmarc=pass (p=quarantine dis=none) header.from=weissschuh.net; spf=pass smtp.mailfrom=weissschuh.net; dkim=pass (1024-bit key) header.d=weissschuh.net header.i=@weissschuh.net header.b=p8/Z+wr4; arc=none smtp.client-ip=159.69.126.157 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=quarantine dis=none) header.from=weissschuh.net Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=weissschuh.net Authentication-Results: smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=weissschuh.net header.i=@weissschuh.net header.b="p8/Z+wr4" DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=weissschuh.net; s=mail; t=1777305953; bh=W1SRkiYTcWvF7f8ZhGxDMMs6COXEzVoexFW7mmyLsJU=; h=From:Date:Subject:References:In-Reply-To:To:Cc:From; b=p8/Z+wr4vF81Ktggcm0AYWPwIuUxpe4cy3ZTh0Tjsf0pZHwFC8irRxi8kyCMezMQe NUsEH8/S2KgpAg7CWLPR2ViljyELsfcu7ZHVRb3vQBts0YSkXxC06rL2fqRp5+DWLo Xc7bV4i7CWBzBd11XDKhaPyiUtSE//v9wEFzIv7c= From: =?utf-8?q?Thomas_Wei=C3=9Fschuh?= Date: Mon, 27 Apr 2026 18:04:56 +0200 Subject: [PATCH 1/2] gen_compile_commands: Ignore libgcc.a Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: quoted-printable Message-Id: <20260427-kunit-or1k-v1-1-9d3109e991e8@weissschuh.net> References: <20260427-kunit-or1k-v1-0-9d3109e991e8@weissschuh.net> In-Reply-To: <20260427-kunit-or1k-v1-0-9d3109e991e8@weissschuh.net> To: Nathan Chancellor , Nicolas Schier , Nick Desaulniers , Bill Wendling , Justin Stitt , Brendan Higgins , David Gow , Rae Moar Cc: linux-kbuild@vger.kernel.org, llvm@lists.linux.dev, linux-kernel@vger.kernel.org, linux-kselftest@vger.kernel.org, kunit-dev@googlegroups.com, =?utf-8?q?Thomas_Wei=C3=9Fschuh?= X-Mailer: b4 0.15.2 X-Developer-Signature: v=1; a=ed25519-sha256; t=1777305952; l=1058; i=linux@weissschuh.net; s=20221212; h=from:subject:message-id; bh=W1SRkiYTcWvF7f8ZhGxDMMs6COXEzVoexFW7mmyLsJU=; b=PkYJWX4OrJ4otoup4YBc14tAcNA3dUrRAwcqp1uvK4FvToc8XmhGf1n4+XMv4ieYpbJzOtTMm 7fQJM+stmh+Baq7Mst3fv42iip0Z/k0d3bKx/ogXwkm1MZ1E54LZhiK X-Developer-Key: i=linux@weissschuh.net; a=ed25519; pk=KcycQgFPX2wGR5azS7RhpBqedglOZVgRPfdFSPB1LNw= Some architectures link libgcc.a from the toolchain into the kernel. gen_compile_commands trie to read the kbuild .cmd files of its constituent object files, which are not available. Flat out ignore libgcc.a, as it is not built as part of the kernel anyways. Signed-off-by: Thomas Wei=C3=9Fschuh Acked-by: Nathan Chancellor --- scripts/clang-tools/gen_compile_commands.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/scripts/clang-tools/gen_compile_commands.py b/scripts/clang-to= ols/gen_compile_commands.py index 96e6e46ad1a7..8d14b81efd73 100755 --- a/scripts/clang-tools/gen_compile_commands.py +++ b/scripts/clang-tools/gen_compile_commands.py @@ -201,6 +201,8 @@ def main(): # Modules are listed in modules.order. if os.path.isdir(path): cmdfiles =3D cmdfiles_in_dir(path) + elif os.path.basename(path) =3D=3D 'libgcc.a': + cmdfiles =3D [] elif path.endswith('.a'): cmdfiles =3D cmdfiles_for_a(path, ar) elif path.endswith('modules.order'): --=20 2.53.0 From nobody Wed Jun 17 06:13:00 2026 Received: from todd.t-8ch.de (todd.t-8ch.de [159.69.126.157]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 83451346E6C; Mon, 27 Apr 2026 16:05:55 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=159.69.126.157 ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1777305958; cv=none; b=krx5diTucX8C9B12n4CVpJ5sDdnf0X0K+SkcJVROh4n1rC5kw/Fpy3HARF11BuLGkJHVnW+XVo/o0x9doTpYeVXcjNtbqEvsjE55DmbZSimfPuvk30oZWFlax+TRFsfTGTL20jav2z1cIisynoeVFb87EndqeDxFN4kKk0vqO9U= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1777305958; c=relaxed/simple; bh=KDqdcpwLRgMcJZZ9U4l5WYgq5WaDe7InhUdteuY4YUw=; h=From:Date:Subject:MIME-Version:Content-Type:Message-Id:References: In-Reply-To:To:Cc; b=W0ll32C7IDziyvt4ySrVRyXv+bl3svDgBWxwlNIYSl3LzyECuTlV9Ye8aiCbhHBsQdgRuWQjCedHtsZk9Z9/VULjvFcmOFjTDZt8UiQ8FHiTJ46YDhZQizeXqtXmAjhcdJjUfwvNKrPrz/m29ohkxpc5iI9rYFH8qP4AkLm5g3o= ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dmarc=pass (p=quarantine dis=none) header.from=weissschuh.net; spf=pass smtp.mailfrom=weissschuh.net; dkim=pass (1024-bit key) header.d=weissschuh.net header.i=@weissschuh.net header.b=sVy+2WOs; arc=none smtp.client-ip=159.69.126.157 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=quarantine dis=none) header.from=weissschuh.net Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=weissschuh.net Authentication-Results: smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=weissschuh.net header.i=@weissschuh.net header.b="sVy+2WOs" DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=weissschuh.net; s=mail; t=1777305953; bh=KDqdcpwLRgMcJZZ9U4l5WYgq5WaDe7InhUdteuY4YUw=; h=From:Date:Subject:References:In-Reply-To:To:Cc:From; b=sVy+2WOs6id/L1QgiCb4xTlWL/j70DW2kGIQdlGMktuVoXJ31gGcvMktldrQ3Do/J z+q6DgmUnn2SrQpNvzDvOdrZTnT3mY8wJSHgARTC8sJizq1lS9X7QxPCQjrtZdpBMf L2JuNAG5IWrPTqWmHEOr4hc5StObt8Jfq1XlXkqw= From: =?utf-8?q?Thomas_Wei=C3=9Fschuh?= Date: Mon, 27 Apr 2026 18:04:57 +0200 Subject: [PATCH 2/2] kunit: qemu_configs: Add or1k / openrisc configuration Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: quoted-printable Message-Id: <20260427-kunit-or1k-v1-2-9d3109e991e8@weissschuh.net> References: <20260427-kunit-or1k-v1-0-9d3109e991e8@weissschuh.net> In-Reply-To: <20260427-kunit-or1k-v1-0-9d3109e991e8@weissschuh.net> To: Nathan Chancellor , Nicolas Schier , Nick Desaulniers , Bill Wendling , Justin Stitt , Brendan Higgins , David Gow , Rae Moar Cc: linux-kbuild@vger.kernel.org, llvm@lists.linux.dev, linux-kernel@vger.kernel.org, linux-kselftest@vger.kernel.org, kunit-dev@googlegroups.com, =?utf-8?q?Thomas_Wei=C3=9Fschuh?= X-Mailer: b4 0.15.2 X-Developer-Signature: v=1; a=ed25519-sha256; t=1777305952; l=998; i=linux@weissschuh.net; s=20221212; h=from:subject:message-id; bh=KDqdcpwLRgMcJZZ9U4l5WYgq5WaDe7InhUdteuY4YUw=; b=fvthQpQdUVU5xSX+VQMUdvkUiGXWFoydb3pelGO/xhYPuS/TnyyKmxV9G3HC6Vg8Yg7nK/IGH 7VTMREdU3XIAEiUl4+caVWS9NCaql+HUjHbi3DxouKHYpc2fiPUcFew X-Developer-Key: i=linux@weissschuh.net; a=ed25519; pk=KcycQgFPX2wGR5azS7RhpBqedglOZVgRPfdFSPB1LNw= Add a basic configuration to run kunit tests on or1k / openrisc. Signed-off-by: Thomas Wei=C3=9Fschuh Reviewed-by: David Gow --- tools/testing/kunit/qemu_configs/or1k.py | 18 ++++++++++++++++++ 1 file changed, 18 insertions(+) diff --git a/tools/testing/kunit/qemu_configs/or1k.py b/tools/testing/kunit= /qemu_configs/or1k.py new file mode 100644 index 000000000000..dfbbad0f9076 --- /dev/null +++ b/tools/testing/kunit/qemu_configs/or1k.py @@ -0,0 +1,18 @@ +# SPDX-License-Identifier: GPL-2.0-only +from ..qemu_config import QemuArchParams + +QEMU_ARCH =3D QemuArchParams(linux_arch=3D'openrisc', + kconfig=3D''' +CONFIG_SERIAL_8250=3Dy +CONFIG_SERIAL_8250_CONSOLE=3Dy +CONFIG_SERIAL_OF_PLATFORM=3Dy +CONFIG_POWER_RESET=3Dy +CONFIG_POWER_RESET_SYSCON=3Dy +''', + qemu_arch=3D'or1k', + kernel_path=3D'vmlinux', + kernel_command_line=3D'console=3DttyS0', + extra_qemu_params=3D[ + '-machine', 'virt', + '-m', '512', + ]) --=20 2.53.0