projects
/
platform
/
kernel
/
linux-starfive.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
mlxsw: spectrum_ptp: Protect PTP configuration with a mutex
[platform/kernel/linux-starfive.git]
/
scripts
/
Makefile.modinst
diff --git
a/scripts/Makefile.modinst
b/scripts/Makefile.modinst
index
16a02e9
..
a4c987c
100644
(file)
--- a/
scripts/Makefile.modinst
+++ b/
scripts/Makefile.modinst
@@
-18,6
+18,9
@@
INSTALL_MOD_DIR ?= extra
dst := $(MODLIB)/$(INSTALL_MOD_DIR)
endif
dst := $(MODLIB)/$(INSTALL_MOD_DIR)
endif
+$(foreach x, % :, $(if $(findstring $x, $(dst)), \
+ $(error module installation path cannot contain '$x')))
+
suffix-y :=
suffix-$(CONFIG_MODULE_COMPRESS_GZIP) := .gz
suffix-$(CONFIG_MODULE_COMPRESS_XZ) := .xz
suffix-y :=
suffix-$(CONFIG_MODULE_COMPRESS_GZIP) := .gz
suffix-$(CONFIG_MODULE_COMPRESS_XZ) := .xz