All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH] kbuild: install-extmod-build: do not exclude scripts/dtc/libfdt/
@ 2026-02-01 13:02 Icenowy Zheng
  2026-02-04  2:16 ` Nathan Chancellor
  0 siblings, 1 reply; 10+ messages in thread
From: Icenowy Zheng @ 2026-02-01 13:02 UTC (permalink / raw)
  To: Nathan Chancellor, Nicolas Schier
  Cc: Masahiro Yamada, Abel Vesa, Mingcong Bai, WangYuli, Inochi Amaoto,
	James Le Cuirot, linux-kbuild, linux-kernel, Icenowy Zheng,
	Rong Zhang, Icenowy Zheng

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@iscas.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


^ permalink raw reply related	[flat|nested] 10+ messages in thread

end of thread, other threads:[~2026-02-05  8:22 UTC | newest]

Thread overview: 10+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2026-02-01 13:02 [PATCH] kbuild: install-extmod-build: do not exclude scripts/dtc/libfdt/ Icenowy Zheng
2026-02-04  2:16 ` Nathan Chancellor
2026-02-04  2:56   ` Rob Herring
2026-02-04  3:26   ` Icenowy Zheng
2026-02-04  3:27     ` Icenowy Zheng
2026-02-04  8:45       ` Nathan Chancellor
2026-02-04  8:46         ` Nathan Chancellor
2026-02-04 13:31         ` Rob Herring
2026-02-04 18:13           ` Nathan Chancellor
2026-02-05  8:22         ` Icenowy Zheng

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.