From nobody Sun Feb 8 11:22:16 2026 Received: from sender4-op-o15.zoho.com (sender4-op-o15.zoho.com [136.143.188.15]) (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 B7231347BA5; Thu, 29 Jan 2026 17:53:34 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=pass smtp.client-ip=136.143.188.15 ARC-Seal: i=2; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1769709216; cv=pass; b=PZrNhKgGFiQmELkYS0AVFpYtpIYI7HmRpl9kaW/rmJS9Dyg2cgJ/QtUYudytHe818iFBISsGVE7y/Y2apj5bnan8C5R1fCxoBiP4sH5Tk4EQQMZAo4FASNebuu6uv1TUr4AbyHM24drzK0Qgh0l7al7mJeUb8BNL1FBa6UOTBpo= ARC-Message-Signature: i=2; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1769709216; c=relaxed/simple; bh=3jh6etQiQN7UEAuOT5VdLbdscjAco6a+KyWUy0JnVxo=; h=From:To:Cc:Subject:Date:Message-ID:MIME-Version; b=h/caNhjDOOGWMQio2aYMuU9aAGHVpjdpY/9Bom4vDOta6yq4tOFD8jMwuRF2B4W5mhP6WXpwHUnpnjcGU+f6h/rL3AdIlJVoN3IFK7lWFNgQbNIQPYlS0Y6THGNdbLpX676xD6x7sJXemNPZpn25jE/km3zEcPaCIE+oEgrwTWQ= ARC-Authentication-Results: i=2; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=rong.moe; spf=pass smtp.mailfrom=rong.moe; dkim=pass (1024-bit key) header.d=rong.moe header.i=i@rong.moe header.b=F+8ErVFu; arc=pass smtp.client-ip=136.143.188.15 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=rong.moe Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=rong.moe Authentication-Results: smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=rong.moe header.i=i@rong.moe header.b="F+8ErVFu" ARC-Seal: i=1; a=rsa-sha256; t=1769709208; cv=none; d=zohomail.com; s=zohoarc; b=eZ7qQ4JsnDvFq9WNBvDUuwz4EePilS+ZRQvoafFsQ2e05mB/NPfqumYFVRMGyMiBorv1eNC5EjiTsp+58vbU6luLNW5jxnkEXLIiL+Q4xu+08Ap/NNgNnaM6ESpai7RCLeRRtVDJ968otMLMfe3yBN1ujL5WCwHMqqckFpROa6M= ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=zohomail.com; s=zohoarc; t=1769709208; h=Content-Transfer-Encoding:Cc:Cc:Date:Date:From:From:MIME-Version:Message-ID:Subject:Subject:To:To:Message-Id:Reply-To; bh=wOOEMhqBiXsW8iDycMxJvq81k1WheMa77UICYBRvLDk=; b=KV+GYdJRvRIduZ5eTMulNRnX/wUFcJZsNwOQ8A+mROfMES+KrznwnowqKrC7kYFISdvokQl7Q/VKXvh9byIwC8soks5BX2z8p4R4wPrCSQzj+OrmSYT5zx5/Tdg58HrdDRGJ0BXEQ8BN1h2OKcEh1eM8DM5kLvFjFTJ87sjugTk= ARC-Authentication-Results: i=1; mx.zohomail.com; dkim=pass header.i=rong.moe; spf=pass smtp.mailfrom=i@rong.moe; dmarc=pass header.from= DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; t=1769709208; s=zmail; d=rong.moe; i=i@rong.moe; h=From:From:To:To:Cc:Cc:Subject:Subject:Date:Date:Message-ID:MIME-Version:Content-Transfer-Encoding:Message-Id:Reply-To; bh=wOOEMhqBiXsW8iDycMxJvq81k1WheMa77UICYBRvLDk=; b=F+8ErVFuELjFZSYHwjRKTisaxhkUXY8pnCLiugvBTd4QrfDy95PNhULuQyaiQKyk eotodxV2+GBZ6pD4Z9lPzeFdVKR8M8gbqGTRERE0nEzne00PEKkmeAJCyzznoEiDftN AZwsGGe14BmlkRIaSr3OG+kWerbOQeG03ey54aK0= Received: by mx.zohomail.com with SMTPS id 1769709206483614.1258651630211; Thu, 29 Jan 2026 09:53:26 -0800 (PST) From: Rong Zhang To: Nathan Chancellor , Nicolas Schier , Masahiro Yamada Cc: Rong Zhang , linux-kbuild@vger.kernel.org, linux-kernel@vger.kernel.org Subject: [PATCH] kbuild: install-extmod-build: Add missing python libraries Date: Fri, 30 Jan 2026 01:49:55 +0800 Message-ID: <20260129175321.415295-1-i@rong.moe> X-Mailer: git-send-email 2.51.0 Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable X-ZohoMailClient: External Content-Type: text/plain; charset="utf-8" scripts/lib has been moved to tools/lib/python recently. Since then, I got a regression while building out-of-tree modules with W=3D (1/2/3/c/e): $ make -C /lib/modules/6.19.0-rc6/build/ M=3D"$(pwd)" modules V=3D1 W=3D1 [...] make -f /usr/src/linux-headers-6.19.0-rc6/scripts/Makefile.build obj=3D. = need-builtin=3D1 need-modorder=3D1 # CC [M] mod.o [...] # cmd_checkdoc mod.o PYTHONDONTWRITEBYTECODE=3D1 python3 /usr/src/linux-headers-6.19.0-rc6/scr= ipts/kernel-doc.py -none mod.c Traceback (most recent call last): File "/usr/src/linux-headers-6.19.0-rc6/scripts/kernel-doc.py", line 33= 9, in main() ~~~~^^ File "/usr/src/linux-headers-6.19.0-rc6/scripts/kernel-doc.py", line 29= 5, in main from kdoc.kdoc_files import KernelFiles # pylint: disable= =3DC0415 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ ModuleNotFoundError: No module named 'kdoc' make[3]: *** [/usr/src/linux-headers-6.19.0-rc6/scripts/Makefile.build:28= 7: mod.o] Error 1 Fix it by installing python libraries from tools/lib/python. Fixes: 778b8ebe5192 ("docs: Move the python libraries to tools/lib/python") Signed-off-by: Rong Zhang Reviewed-by: Mauro Carvalho Chehab Reviewed-by: Nathan Chancellor --- scripts/package/install-extmod-build | 1 + 1 file changed, 1 insertion(+) diff --git a/scripts/package/install-extmod-build b/scripts/package/install= -extmod-build index 2576cf7902dbb..a15de610afed3 100755 --- a/scripts/package/install-extmod-build +++ b/scripts/package/install-extmod-build @@ -20,6 +20,7 @@ mkdir -p "${destdir}" ( cd "${srctree}" echo Makefile + echo tools/lib/python # required by scripts find "arch/${SRCARCH}" -maxdepth 1 -name 'Makefile*' find "arch/${SRCARCH}" -name generated -prune -o -name include -type d -p= rint find "arch/${SRCARCH}" -name Kbuild.platforms -o -name Platform base-commit: 8dfce8991b95d8625d0a1d2896e42f93b9d7f68d --=20 2.51.0