#!/bin/bash
PATH="/bin:/usr/bin:/sbin:/usr/sbin"
-GK_V='3.4.9_pre3'
+GK_V='3.4.9_pre7'
# Set the default for TMPDIR. May be modified by genkernel.conf or the
# --tempdir command line option.
case "$*" in
--config=*)
CMD_GK_CONFIG=`parse_opt "$*"`
- ;;
- esac
-}
+ ;;
+esac
source ${CMD_GK_CONFIG:-/etc/genkernel.conf} || small_die "Could not read /etc/genkernel.conf"
# Compile kernel; If using --genzimage, or building a mips kernel, skip compile
# till after initrd/initramfs is done
- [ "${GENERATE_Z_IMAGE}" = '' -a ${BUILD_INITRAMFS} -eq 0 ] && compile_kernel
+ [ "${ENABLE_PEGASOS_HACKS}" != 'yes' -a ${BUILD_INITRAMFS} -eq 0 ] && compile_kernel
# Compile modules
if [ ${BUILD_MODULES} -eq 1 -a ${BUILD_STATIC} -eq 0 ]
fi
if [ "${KERNCACHE}" != "" ]
then
- if [ "${GENERATE_Z_IMAGE}" = '' -a ${BUILD_INITRAMFS} -eq 0 ]
+ if [ "${ENABLE_PEGASOS_HACKS}" != 'yes' -a ${BUILD_INITRAMFS} -eq 0 ]
then
gen_kerncache
fi
fi
# Pegasos fix
-if [ "${GENERATE_Z_IMAGE}" != '' -o ${BUILD_INITRAMFS} -eq 1 ]
+if [ "${ENABLE_PEGASOS_HACKS}" = 'yes' -o ${BUILD_INITRAMFS} -eq 1 ]
then
# Compile kernel, intergrating the initrd into it for Pegasos & mips
compile_kernel