Skip to content
This repository was archived by the owner on Nov 8, 2023. It is now read-only.

Commit 552c501

Browse files
mkubecekmasahir0y
authored andcommitted
kbuild: avoid long argument lists in make modules_install
Running "make modules_install" may fail with make[2]: execvp: /bin/sh: Argument list too long if many modules are built and INSTALL_MOD_PATH is long. This is because scripts/Makefile.modinst creates all directories with one mkdir command. Use $(foreach ...) instead to prevent an excessive argument list. Fixes: 2dfec88 ("kbuild: reduce the number of mkdir calls during modules_install") Signed-off-by: Michal Kubecek <mkubecek@suse.cz> Signed-off-by: Masahiro Yamada <masahiroy@kernel.org>
1 parent c86e9ae commit 552c501

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

scripts/Makefile.modinst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -113,7 +113,7 @@ quiet_cmd_sign :=
113113
endif
114114

115115
# Create necessary directories
116-
$(shell mkdir -p $(sort $(dir $(install-y))))
116+
$(foreach dir, $(sort $(dir $(install-y))), $(shell mkdir -p $(dir)))
117117

118118
$(dst)/%.ko: $(extmod_prefix)%.ko FORCE
119119
$(call cmd,install)

0 commit comments

Comments
 (0)