diff options
-rw-r--r-- | ChangeLog | 3 | ||||
-rwxr-xr-x | gen_compile.sh | 7 | ||||
-rwxr-xr-x | genkernel | 11 |
3 files changed, 14 insertions, 7 deletions
@@ -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 } @@ -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 |