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:
1 parent
93caf23e1b
commit
1f406f3e6e
1 file changed
+2
-2
@@ -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
|
||||
|
||||
Reference in new issue
Block a user