patches for a kernel, so why build one. Specifically this is for building a
patchless client.
This should all work if the concept of:
if [ -z "$LINUX" ] ; then
...
else
build_lustre
fi
works. I don't know that we test the build_lustre() function of lbuild with
any regularity, if at all though.
. "$TARGET_FILE"
[ "$KERNEL" ] || fatal 1 "Target $TARGET did not specify a kernel."
-# [ "$SERIES" ] || fatal 1 "Target $TARGET did not specify a kernel patch series."
-# [ "$CONFIG" ] || fatal 1 "Target $TARGET did not specify a kernel config."
[ "$VERSION" ] || fatal 1 "Target $TARGET did not specify a kernel version."
if [ "$KERNELDIR" ] ; then
if [ -z "$LINUX" ] ; then
load_target
- if (( $DO_SRC )) ; then
- unpack_linux
- patch_linux
- pack_linux
- clean_linux
- fi
+ if [ "$SERIES" ] ; then
+ if (( $DO_SRC )) ; then
+ unpack_linux
+ patch_linux
+ pack_linux
+ clean_linux
+ fi
- prep_kernel_build
- clean_lustre
+ prep_kernel_build
+ clean_lustre
- build_kernel
+ build_kernel
+ else
+ # can't build a kernel if we have no series for it (i.e. patchless)
+ build_lustre
+ fi
else
build_lustre
fi