patch_linux
pack_linux
clean_linux
+ fi
- prep_kernel_build
- clean_lustre
+ prep_kernel_build
+ clean_lustre
- build_kernel
- fi
+ build_kernel
else
# can't build a kernel if we have no series for it (i.e. patchless)
# but we still need the headers
LINUX=$(pwd)/linux
pushd $LINUX && {
# need a .config -- like a user would do
- cp /boot/config-${lnxmaj}-${lnxrel}smp .config
+ BOOTCONFIG="/boot/config-${lnxmaj}-${lnxrel}smp"
+ if [ -f $BOOTCONFIG ]; then
+ cp $BOOTCONFIG .config
+ else
+ fatal 1 "$BOOTCONFIG doesn't exist! Help!"
+ fi
make oldconfig
make include/asm
make include/linux/version.h
make SUBDIRS=scripts
+ }
popd
build_lustre
fi