aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPeter Hjalmarsson <xake@rymdraket.net>2012-10-15 22:00:04 +0200
committerPeter Hjalmarsson <xake@rymdraket.net>2012-10-15 22:13:53 +0200
commitd3e34636b1854176fbcfc7fe14d4141c7f7be1f9 (patch)
tree37614bfec6b67caa50f1e4a961a4089d8c720b24
parentBump for 3.4.44.1 with bugfix-only. (diff)
downloadgenkernel-d3e34636b1854176fbcfc7fe14d4141c7f7be1f9.tar.gz
genkernel-d3e34636b1854176fbcfc7fe14d4141c7f7be1f9.tar.bz2
genkernel-d3e34636b1854176fbcfc7fe14d4141c7f7be1f9.zip
Fix calling of depmod
"depmod -e" needs either -F System.map or -E Module.symvers "depmod -b" resolvs an empty argument to PWD, so only use -b if INSTALL_MOD_PATH is actually set
-rwxr-xr-xgen_compile.sh7
1 files changed, 6 insertions, 1 deletions
diff --git a/gen_compile.sh b/gen_compile.sh
index 71f5a68d..ccc8b8d5 100755
--- a/gen_compile.sh
+++ b/gen_compile.sh
@@ -302,7 +302,12 @@ compile_modules() {
[ "${INSTALL_MOD_PATH}" != '' ] && export INSTALL_MOD_PATH
MAKEOPTS="${MAKEOPTS} -j1" compile_generic "modules_install" kernel
print_info 1 " >> Generating module dependency data..."
- depmod -a -e -b "${INSTALL_MOD_PATH}"/lib/modules/$KV ${KV}
+ 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
}