Skip to content

Commit

Permalink
kbuild: verify that $DEPMOD is installed
Browse files Browse the repository at this point in the history
Verify that 'depmod' ($DEPMOD) is installed.
This is a partial revert of commit 620c231
("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 <[email protected]>
Cc: Lucas De Marchi <[email protected]>
Cc: Lucas De Marchi <[email protected]>
Cc: Michal Marek <[email protected]>
Cc: Jessica Yu <[email protected]>
Cc: Chih-Wei Huang <[email protected]>
Cc: [email protected] # any kernel since 2012
Signed-off-by: Masahiro Yamada <[email protected]>
  • Loading branch information
rddunlap authored and masahir0y committed Jul 17, 2018
1 parent c417fbc commit 934193a
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 13 deletions.
19 changes: 7 additions & 12 deletions Documentation/process/changes.rst
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ binutils 2.20 ld -v
flex 2.5.35 flex --version
bison 2.0 bison --version
util-linux 2.10o fdformat --version
module-init-tools 0.9.10 depmod -V
kmod 13 depmod -V
e2fsprogs 1.41.4 e2fsck -V
jfsutils 1.1.3 fsck.jfs -V
reiserfsprogs 3.6.3 reiserfsck -V
Expand Down Expand Up @@ -156,12 +156,6 @@ is not build with ``CONFIG_KALLSYMS`` and you have no way to rebuild and
reproduce the Oops with that option, then you can still decode that Oops
with ksymoops.

Module-Init-Tools
-----------------

A new module loader is now in the kernel that requires ``module-init-tools``
to use. It is backward compatible with the 2.4.x series kernels.

Mkinitrd
--------

Expand Down Expand Up @@ -371,16 +365,17 @@ Util-linux

- <https://www.kernel.org/pub/linux/utils/util-linux/>

Kmod
----

- <https://www.kernel.org/pub/linux/utils/kernel/kmod/>
- <https://git.kernel.org/pub/scm/utils/kernel/kmod/kmod.git>

Ksymoops
--------

- <https://www.kernel.org/pub/linux/utils/kernel/ksymoops/v2.4/>

Module-Init-Tools
-----------------

- <https://www.kernel.org/pub/linux/utils/kernel/module-init-tools/>

Mkinitrd
--------

Expand Down
8 changes: 7 additions & 1 deletion scripts/depmod.sh
Original file line number Diff line number Diff line change
Expand Up @@ -10,10 +10,16 @@ fi
DEPMOD=$1
KERNELRELEASE=$2

if ! test -r System.map -a -x "$DEPMOD"; then
if ! test -r System.map ; then
exit 0
fi

if [ -z $(command -v $DEPMOD) ]; then
echo "'make modules_install' requires $DEPMOD. Please install it." >&2
echo "This is probably in the kmod package." >&2
exit 1
fi

# older versions of depmod require the version string to start with three
# numbers, so we cheat with a symlink here
depmod_hack_needed=true
Expand Down

0 comments on commit 934193a

Please sign in to comment.