diff options
author | Randy Dunlap <rdunlap@infradead.org> | 2018-07-01 22:46:06 -0400 |
---|---|---|
committer | Masahiro Yamada <yamada.masahiro@socionext.com> | 2018-07-17 12:18:05 -0400 |
commit | 934193a654c1f4d0643ddbf4b2529b508cae926e (patch) | |
tree | 0bd62686104e242c8c1c31385479664cfb0383e7 | |
parent | c417fbce98722ad7e384caa8ba6f2e7c5f8672d9 (diff) |
kbuild: verify that $DEPMOD is installed
Verify that 'depmod' ($DEPMOD) is installed.
This is a partial revert of commit 620c231c7a7f
("kbuild: do not check for ancient modutils tools").
Also update Documentation/process/changes.rst to refer to
kmod instead of module-init-tools.
Fixes kernel bugzilla #198965:
https://bugzilla.kernel.org/show_bug.cgi?id=198965
Signed-off-by: Randy Dunlap <rdunlap@infradead.org>
Cc: Lucas De Marchi <lucas.demarchi@profusion.mobi>
Cc: Lucas De Marchi <lucas.de.marchi@gmail.com>
Cc: Michal Marek <michal.lkml@markovi.net>
Cc: Jessica Yu <jeyu@kernel.org>
Cc: Chih-Wei Huang <cwhuang@linux.org.tw>
Cc: stable@vger.kernel.org # any kernel since 2012
Signed-off-by: Masahiro Yamada <yamada.masahiro@socionext.com>
-rw-r--r-- | Documentation/process/changes.rst | 19 | ||||
-rwxr-xr-x | scripts/depmod.sh | 8 |
2 files changed, 14 insertions, 13 deletions
diff --git a/Documentation/process/changes.rst b/Documentation/process/changes.rst index ddc029734b25..005d8842a503 100644 --- a/Documentation/process/changes.rst +++ b/Documentation/process/changes.rst | |||
@@ -35,7 +35,7 @@ binutils 2.20 ld -v | |||
35 | flex 2.5.35 flex --version | 35 | flex 2.5.35 flex --version |
36 | bison 2.0 bison --version | 36 | bison 2.0 bison --version |
37 | util-linux 2.10o fdformat --version | 37 | util-linux 2.10o fdformat --version |
38 | module-init-tools 0.9.10 depmod -V | 38 | kmod 13 depmod -V |
39 | e2fsprogs 1.41.4 e2fsck -V | 39 | e2fsprogs 1.41.4 e2fsck -V |
40 | jfsutils 1.1.3 fsck.jfs -V | 40 | jfsutils 1.1.3 fsck.jfs -V |
41 | reiserfsprogs 3.6.3 reiserfsck -V | 41 | reiserfsprogs 3.6.3 reiserfsck -V |
@@ -156,12 +156,6 @@ is not build with ``CONFIG_KALLSYMS`` and you have no way to rebuild and | |||
156 | reproduce the Oops with that option, then you can still decode that Oops | 156 | reproduce the Oops with that option, then you can still decode that Oops |
157 | with ksymoops. | 157 | with ksymoops. |
158 | 158 | ||
159 | Module-Init-Tools | ||
160 | ----------------- | ||
161 | |||
162 | A new module loader is now in the kernel that requires ``module-init-tools`` | ||
163 | to use. It is backward compatible with the 2.4.x series kernels. | ||
164 | |||
165 | Mkinitrd | 159 | Mkinitrd |
166 | -------- | 160 | -------- |
167 | 161 | ||
@@ -371,16 +365,17 @@ Util-linux | |||
371 | 365 | ||
372 | - <https://www.kernel.org/pub/linux/utils/util-linux/> | 366 | - <https://www.kernel.org/pub/linux/utils/util-linux/> |
373 | 367 | ||
368 | Kmod | ||
369 | ---- | ||
370 | |||
371 | - <https://www.kernel.org/pub/linux/utils/kernel/kmod/> | ||
372 | - <https://git.kernel.org/pub/scm/utils/kernel/kmod/kmod.git> | ||
373 | |||
374 | Ksymoops | 374 | Ksymoops |
375 | -------- | 375 | -------- |
376 | 376 | ||
377 | - <https://www.kernel.org/pub/linux/utils/kernel/ksymoops/v2.4/> | 377 | - <https://www.kernel.org/pub/linux/utils/kernel/ksymoops/v2.4/> |
378 | 378 | ||
379 | Module-Init-Tools | ||
380 | ----------------- | ||
381 | |||
382 | - <https://www.kernel.org/pub/linux/utils/kernel/module-init-tools/> | ||
383 | |||
384 | Mkinitrd | 379 | Mkinitrd |
385 | -------- | 380 | -------- |
386 | 381 | ||
diff --git a/scripts/depmod.sh b/scripts/depmod.sh index 1a6f85e0e6e1..999d585eaa73 100755 --- a/scripts/depmod.sh +++ b/scripts/depmod.sh | |||
@@ -10,10 +10,16 @@ fi | |||
10 | DEPMOD=$1 | 10 | DEPMOD=$1 |
11 | KERNELRELEASE=$2 | 11 | KERNELRELEASE=$2 |
12 | 12 | ||
13 | if ! test -r System.map -a -x "$DEPMOD"; then | 13 | if ! test -r System.map ; then |
14 | exit 0 | 14 | exit 0 |
15 | fi | 15 | fi |
16 | 16 | ||
17 | if [ -z $(command -v $DEPMOD) ]; then | ||
18 | echo "'make modules_install' requires $DEPMOD. Please install it." >&2 | ||
19 | echo "This is probably in the kmod package." >&2 | ||
20 | exit 1 | ||
21 | fi | ||
22 | |||
17 | # older versions of depmod require the version string to start with three | 23 | # older versions of depmod require the version string to start with three |
18 | # numbers, so we cheat with a symlink here | 24 | # numbers, so we cheat with a symlink here |
19 | depmod_hack_needed=true | 25 | depmod_hack_needed=true |