If the directory path given to INSTALL_MOD_PATH contains % or :, the module_install fails. % is used in pattern rules, and : as the separator of dependencies. Bail out with a clearer error message.
Showing the changes to scripts (1 of 1 file). Show all
Unified · Split
| @@ -18,6 +18,9 @@ INSTALL_MOD_DIR ?= extra · 17 unmodified lines | |||
| 18 | dst := $(MODLIB)/$(INSTALL_MOD_DIR) | 18 | dst := $(MODLIB)/$(INSTALL_MOD_DIR) |
| 19 | endif | 19 | endif |
| 20 | 20 | ||
| 21 | $(foreach x, % :, $(if $(findstring $x, $(dst)), \ | ||
| 22 | $(error module installation path cannot contain '$x'))) | ||
| 23 | |||
| 21 | suffix-y := | 24 | suffix-y := |
| 22 | suffix-$(CONFIG_MODULE_COMPRESS_GZIP) := .gz | 25 | suffix-$(CONFIG_MODULE_COMPRESS_GZIP) := .gz |
| 23 | suffix-$(CONFIG_MODULE_COMPRESS_XZ) := .xz | 26 | suffix-$(CONFIG_MODULE_COMPRESS_XZ) := .xz |