testing: Fix initial kernel build

The directory does not exist yet if the kernel was never built.

Fixes: a4a13d0be2 ("testing: Extract and patch each kernel version only once")
This commit is contained in:
Tobias Brunner
2015-07-31 12:34:44 +02:00
parent 93caf23e1b
commit 1f406f3e6e
+2 -2
View File
@@ -27,7 +27,6 @@ then
fi
KERNELDIR=$BUILDDIR/$KERNEL
cd $KERNELDIR
if [ ! -d "$KERNELDIR" ]
then
@@ -37,11 +36,12 @@ then
if [ $KERNELPATCH ]
then
log_action "Applying kernel patch"
bzcat ../$KERNELPATCH | patch -p1 >>$LOGFILE 2>&1
bzcat $KERNELPATCH | patch -d $KERNELDIR -p1 >>$LOGFILE 2>&1
log_status $?
[ $? -eq 0 ] || exit 1
fi
fi
cd $KERNELDIR
if [ ! -f .config ]
then