musl-cross-make/patches/linux-5.15.2/0000-do-not-build-archscripts-for-headers-only.diff
2024-01-11 14:09:22 +08:00

14 lines
568 B
Diff

diff --git a/Makefile b/Makefile
index ed6e7ec60eff..c7a78e04e062 100644
--- a/Makefile
+++ b/Makefile
@@ -1300,7 +1300,7 @@ PHONY += archheaders archscripts
hdr-inst := -f $(srctree)/scripts/Makefile.headersinst obj
PHONY += headers
-headers: $(version_h) scripts_unifdef uapi-asm-generic archheaders archscripts
+headers: $(version_h) scripts_unifdef uapi-asm-generic archheaders
$(if $(wildcard $(srctree)/arch/$(SRCARCH)/include/uapi/asm/Kbuild),, \
$(error Headers not exportable for the $(SRCARCH) architecture))
$(Q)$(MAKE) $(hdr-inst)=include/uapi