Lines 308-333
compile_modules() {
Link Here
|
308 |
print_info 1 " >> Compiling ${KV} modules..." |
308 |
print_info 1 " >> Compiling ${KV} modules..." |
309 |
cd ${KERNEL_DIR} |
309 |
cd ${KERNEL_DIR} |
310 |
compile_generic modules kernel |
310 |
compile_generic modules kernel |
311 |
export UNAME_MACHINE="${ARCH}" |
311 |
|
312 |
[ "${INSTALL_MOD_PATH}" != '' ] && export INSTALL_MOD_PATH |
312 |
if isTrue "${CMD_INSTALL}" |
313 |
if [ "${CMD_STRIP_TYPE}" == "all" -o "${CMD_STRIP_TYPE}" == "modules" ] |
|
|
314 |
then |
315 |
print_info 1 " >> Installing ${KV} modules (and stripping)" |
316 |
INSTALL_MOD_STRIP=1 |
317 |
export INSTALL_MOD_STRIP |
318 |
else |
319 |
print_info 1 " >> Installing ${KV} modules" |
320 |
fi |
321 |
MAKEOPTS="${MAKEOPTS} -j1" compile_generic "modules_install" kernel |
322 |
print_info 1 " >> Generating module dependency data..." |
323 |
if [ "${INSTALL_MOD_PATH}" != '' ] |
324 |
then |
313 |
then |
325 |
depmod -a -e -F "${KERNEL_OUTPUTDIR}"/System.map -b "${INSTALL_MOD_PATH}" ${KV} |
314 |
export UNAME_MACHINE="${ARCH}" |
326 |
else |
315 |
[ "${INSTALL_MOD_PATH}" != '' ] && export INSTALL_MOD_PATH |
327 |
depmod -a -e -F "${KERNEL_OUTPUTDIR}"/System.map ${KV} |
316 |
if [ "${CMD_STRIP_TYPE}" == "all" -o "${CMD_STRIP_TYPE}" == "modules" ] |
|
|
317 |
then |
318 |
print_info 1 " >> Installing ${KV} modules (and stripping)" |
319 |
INSTALL_MOD_STRIP=1 |
320 |
export INSTALL_MOD_STRIP |
321 |
else |
322 |
print_info 1 " >> Installing ${KV} modules" |
323 |
fi |
324 |
MAKEOPTS="${MAKEOPTS} -j1" compile_generic "modules_install" kernel |
325 |
print_info 1 " >> Generating module dependency data..." |
326 |
if [ "${INSTALL_MOD_PATH}" != '' ] |
327 |
then |
328 |
depmod -a -e -F "${KERNEL_OUTPUTDIR}"/System.map -b "${INSTALL_MOD_PATH}" ${KV} |
329 |
else |
330 |
depmod -a -e -F "${KERNEL_OUTPUTDIR}"/System.map ${KV} |
331 |
fi |
332 |
unset UNAME_MACHINE |
333 |
unset INSTALL_MOD_STRIP |
328 |
fi |
334 |
fi |
329 |
unset UNAME_MACHINE |
|
|
330 |
unset INSTALL_MOD_STRIP |
331 |
} |
335 |
} |
332 |
|
336 |
|
333 |
compile_kernel() { |
337 |
compile_kernel() { |