2 # SPDX-License-Identifier: GPL-2.0
7 echo "Usage: $0 <kernelrelease>" >&2
15 if ! test -r System.map ; then
16 echo "Warning: modules_install: missing 'System.map' file. Skipping depmod." >&2
20 # legacy behavior: "depmod" in /sbin, no /sbin in PATH
22 if [ -z $(command -v $DEPMOD) ]; then
23 echo "Warning: 'make modules_install' requires $DEPMOD. Please install it." >&2
24 echo "This is probably in the kmod package." >&2
28 set -- -ae -F System.map
29 if test -n "$INSTALL_MOD_PATH"; then
30 set -- "$@" -b "$INSTALL_MOD_PATH"
32 exec "$DEPMOD" "$@" "$KERNELRELEASE"