lists.openwall.net   lists  /  announce  owl-users  owl-dev  john-users  john-dev  passwdqc-users  yescrypt  popa3d-users  /  oss-security  kernel-hardening  musl  sabotage  tlsify  passwords  /  crypt-dev  xvendor  /  Bugtraq  Full-Disclosure  linux-kernel  linux-netdev  linux-ext4  linux-hardening  linux-cve-announce  PHC 
Open Source and information security mailing list archives
 
Hash Suite: Windows password security audit tool. GUI, reports in PDF.
[<prev] [next>] [day] [month] [year] [list]
Message-ID: <20260201130259.2906768-1-zhengxingda@iscas.ac.cn>
Date: Sun,  1 Feb 2026 21:02:59 +0800
From: Icenowy Zheng <zhengxingda@...as.ac.cn>
To: Nathan Chancellor <nathan@...nel.org>,
	Nicolas Schier <nsc@...nel.org>
Cc: Masahiro Yamada <masahiroy@...nel.org>,
	Abel Vesa <abelvesa@...nel.org>,
	Mingcong Bai <jeffbai@...c.io>,
	WangYuli <wangyuli@...ontech.com>,
	Inochi Amaoto <inochiama@...il.com>,
	James Le Cuirot <chewi@...too.org>,
	linux-kbuild@...r.kernel.org,
	linux-kernel@...r.kernel.org,
	Icenowy Zheng <uwu@...nowy.me>,
	Rong Zhang <i@...g.moe>,
	Icenowy Zheng <zhengxingda@...as.ac.cn>
Subject: [PATCH] kbuild: install-extmod-build: do not exclude scripts/dtc/libfdt/

There exists a header file in include/linux/ called libfdt.h that is
just a wrapper for libfdt header file in scripts/dtc/libfdt/. This makes
the headers inside libfdt copy at scripts/dtc/libfdt/ part of the kernel
headers for building external modules.

Do not exclude them, otherwise modules that include <linux/libfdt.h>
will fail to build externally.

Fixes: aaed5c7739be ("kbuild: slim down package for building external modules")
Signed-off-by: Icenowy Zheng <zhengxingda@...as.ac.cn>
---
 scripts/package/install-extmod-build | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/scripts/package/install-extmod-build b/scripts/package/install-extmod-build
index 2576cf7902dbb..d1e448d7f59f6 100755
--- a/scripts/package/install-extmod-build
+++ b/scripts/package/install-extmod-build
@@ -11,7 +11,8 @@ is_enabled() {
 
 find_in_scripts() {
 	find scripts \
-		\( -name atomic -o -name dtc -o -name kconfig -o -name package \) -prune -o \
+		\( -name atomic -o -name kconfig -o -name package -o \
+		   \( -path '*/dtc/*' -a ! -path '*/libfdt*' \) \) -prune -o \
 		! -name unifdef -a ! -name mk_elfconfig -a \( -type f -o -type l \) -print
 }
 
-- 
2.52.0


Powered by blists - more mailing lists

Powered by Openwall GNU/*/Linux Powered by OpenVZ