if [ -z "$LINUX" ] ; then
load_target
- if (( $DO_SRC )) ; then
- unpack_linux
- if [ "$SERIES" ] ; then
+ if [ "$SERIES" ] ; then
+ if (( $DO_SRC )) ; then
+ unpack_linux
patch_linux
pack_linux
clean_linux
clean_lustre
build_kernel
- else
- # can't build a kernel if we have no series for it (i.e. patchless)
- LINUX=$(pwd)/linux
- build_lustre
fi
+ else
+ # can't build a kernel if we have no series for it (i.e. patchless)
+ # but we still need the headers
+ unpack_linux
+ LINUX=$(pwd)/linux
+ build_lustre
fi
else
build_lustre