mirror of
https://mirrors.bfsu.edu.cn/git/linux.git
synced 2024-11-27 06:04:23 +08:00
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: 2dfec887c0
("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>
This commit is contained in:
parent
c86e9ae5e3
commit
552c5013f2
@ -113,7 +113,7 @@ quiet_cmd_sign :=
|
||||
endif
|
||||
|
||||
# Create necessary directories
|
||||
$(shell mkdir -p $(sort $(dir $(install-y))))
|
||||
$(foreach dir, $(sort $(dir $(install-y))), $(shell mkdir -p $(dir)))
|
||||
|
||||
$(dst)/%.ko: $(extmod_prefix)%.ko FORCE
|
||||
$(call cmd,install)
|
||||
|
Loading…
Reference in New Issue
Block a user