]> www.infradead.org Git - users/dwmw2/linux.git/commitdiff
kbuild: don't hardcode depmod path
authorDominique Martinet <asmadeus@codewreck.org>
Tue, 1 Dec 2020 13:17:30 +0000 (14:17 +0100)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Tue, 12 Jan 2021 19:10:16 +0000 (20:10 +0100)
commit 436e980e2ed526832de822cbf13c317a458b78e1 upstream.

depmod is not guaranteed to be in /sbin, just let make look for
it in the path like all the other invoked programs

Signed-off-by: Dominique Martinet <asmadeus@codewreck.org>
Signed-off-by: Masahiro Yamada <masahiroy@kernel.org>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Makefile

index b2c939f289c256c0c09f6429d6e6bd3e32b6a62a..b933b9f7517f7fe5f369141e86266262e5a1633b 100644 (file)
--- a/Makefile
+++ b/Makefile
@@ -400,7 +400,7 @@ YACC                = bison
 AWK            = awk
 GENKSYMS       = scripts/genksyms/genksyms
 INSTALLKERNEL  := installkernel
-DEPMOD         = /sbin/depmod
+DEPMOD         = depmod
 PERL           = perl
 PYTHON         = python
 PYTHON2                = python2