aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--ChangeLog3
-rwxr-xr-xgen_compile.sh7
-rwxr-xr-xgenkernel11
3 files changed, 14 insertions, 7 deletions
diff --git a/ChangeLog b/ChangeLog
index 10680dad..0cefed49 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -5,6 +5,9 @@
# Distributed under the GPL v2
# $Id$
+ 15 Oct 2012; Peter Hjalmarsson <xake@gentoo.org> gen_compile.sh, genkernel:
+ Call depmod after all possible kernel modules has been installed
+
15 Oct 2012; Robin H. Johnson <robbat2@gentoo.org> genkernel:
Bump to 3.4.44.2 with depmod corner cases by xake.
diff --git a/gen_compile.sh b/gen_compile.sh
index ccc8b8d5..5d64d63c 100755
--- a/gen_compile.sh
+++ b/gen_compile.sh
@@ -301,13 +301,6 @@ compile_modules() {
export UNAME_MACHINE="${ARCH}"
[ "${INSTALL_MOD_PATH}" != '' ] && export INSTALL_MOD_PATH
MAKEOPTS="${MAKEOPTS} -j1" compile_generic "modules_install" kernel
- print_info 1 " >> Generating module dependency data..."
- if [ "${INSTALL_MOD_PATH}" != '' ]
- then
- depmod -a -e -F "${KERNEL_OUTPUTDIR}"/System.map -b "${INSTALL_MOD_PATH}" ${KV}
- else
- depmod -a -e -F "${KERNEL_OUTPUTDIR}"/System.map ${KV}
- fi
unset UNAME_MACHINE
}
diff --git a/genkernel b/genkernel
index 9c8e45d7..533b38eb 100755
--- a/genkernel
+++ b/genkernel
@@ -256,6 +256,17 @@ then
gen_kerncache_extract_config
fi
+if [ -d "${INSTALL_MOD_PATH}"/lib/modules/${KV} ]
+then
+ print_info 1 " >> Generating module dependency data..."
+ if [ "${INSTALL_MOD_PATH}" != '' ]
+ then
+ depmod -a -e -F "${KERNEL_OUTPUTDIR}"/System.map -b "${INSTALL_MOD_PATH}" ${KV}
+ else
+ depmod -a -e -F "${KERNEL_OUTPUTDIR}"/System.map ${KV}
+ fi
+fi
+
# Run callback
if [ "${CMD_CALLBACK}" != "" ]
then