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:
@@ -27,7 +27,6 @@ then
|
|||||||
fi
|
fi
|
||||||
|
|
||||||
KERNELDIR=$BUILDDIR/$KERNEL
|
KERNELDIR=$BUILDDIR/$KERNEL
|
||||||
cd $KERNELDIR
|
|
||||||
|
|
||||||
if [ ! -d "$KERNELDIR" ]
|
if [ ! -d "$KERNELDIR" ]
|
||||||
then
|
then
|
||||||
@@ -37,11 +36,12 @@ then
|
|||||||
if [ $KERNELPATCH ]
|
if [ $KERNELPATCH ]
|
||||||
then
|
then
|
||||||
log_action "Applying kernel patch"
|
log_action "Applying kernel patch"
|
||||||
bzcat ../$KERNELPATCH | patch -p1 >>$LOGFILE 2>&1
|
bzcat $KERNELPATCH | patch -d $KERNELDIR -p1 >>$LOGFILE 2>&1
|
||||||
log_status $?
|
log_status $?
|
||||||
[ $? -eq 0 ] || exit 1
|
[ $? -eq 0 ] || exit 1
|
||||||
fi
|
fi
|
||||||
fi
|
fi
|
||||||
|
cd $KERNELDIR
|
||||||
|
|
||||||
if [ ! -f .config ]
|
if [ ! -f .config ]
|
||||||
then
|
then
|
||||||
|
|||||||
Reference in New Issue
Block a user