compile_kernel() {
[ "${KERNEL_MAKE}" = "" ] && gen_die "KERNEL_MAKE undefined. Don't know how to compile kernel for arch."
cd ${KERNEL_DIR}
- print_info 1 "kernel: Starting compile of linux ${KV} ${KERNEL_MAKE}"
+ print_info 1 "kernel: Starting compile of linux ${KV} ${KERNEL_MAKE_DIRECTIVE}"
compile_generic "${KERNEL_MAKE_DIRECTIVE}" kernel
if [ "${KERNEL_MAKE_DIRECTIVE_2}" != "" ]
then
+ print_info 1 "kernel: Starting suppliment compile of linux ${KV} ${KERNEL_MAKE_DIRECTIVE_2}"
compile_generic "${KERNEL_MAKE_DIRECTIVE_2}" kernel
fi
cp "${KERNEL_BINARY}" "/boot/kernel-${KV}" || gen_die "Could not copy kernel binary to boot"
# UTILS_CC="${TEMP}/diet/bin/diet ${UTILS_CC}"
# fi
print_info 1 "Busybox: make oldconfig"
- compile_generic "oldconfig" utils
+ yes "" | compile_generic "oldconfig" utils
print_info 1 "Busybox: make all"
compile_generic "all" utils
# Busybox and dietlibc don't play nice right now
fi
exit 1
}
+
+has_loop() {
+ if [ -e "/dev/loop0" -o -e "/dev/loop/0" ]
+ then
+ # We found devfs or standard dev loop device, assume
+ # loop is compiled into the kernel or the module is loaded
+ return 0
+ else
+ return 1
+ fi
+}
print_info 1 "ARCH: ${ARCH}"
print_info 1 "KERNEL VER: ${KV}"
+if !has_loop
+then
+ print_info 1 "Your kernel does not appear to have loop device support. "
+ print_info 1 "Please 'modprobe loop' if it is a module before running genkernel"
+ gen_die "----Load loop support----"
+fi
+
# Configure kernel
config_kernel