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.
Unified · Split
| @@ -18,6 +18,9 @@ INSTALL_MOD_DIR ?= extra · 17 unmodified lines | ||
| 18 | 18 | dst := $(MODLIB)/$(INSTALL_MOD_DIR) |
| 19 | 19 | endif |
| 20 | 20 | |
| 21 | +$(foreach x, % :, $(if $(findstring $x, $(dst)), \ | |
| 22 | + $(error module installation path cannot contain '$x'))) | |
| 23 | + | |
| 21 | 24 | suffix-y := |
| 22 | 25 | suffix-$(CONFIG_MODULE_COMPRESS_GZIP) := .gz |
| 23 | 26 | suffix-$(CONFIG_MODULE_COMPRESS_XZ) := .xz |