testing: Extract and patch each kernel version only once

This allows us to do modifications to the kernel tree and rebuild that kernel
using make-testing. We can even have a git kernel tree in a directory to
do kernel development.
This commit is contained in:
Martin Willi
2015-07-12 13:54:08 +02:00
parent 6f913def3c
commit a4a13d0be2
+6 -3
View File
@@ -26,12 +26,14 @@ then
execute "wget -q $url" execute "wget -q $url"
fi fi
log_action "Unpacking kernel"
execute "tar xJf $KERNELTARBALL"
KERNELDIR=$BUILDDIR/$KERNEL KERNELDIR=$BUILDDIR/$KERNEL
cd $KERNELDIR cd $KERNELDIR
if [ ! -d "$KERNELDIR" ]
then
log_action "Unpacking kernel"
execute "tar xJf $KERNELTARBALL"
if [ $KERNELPATCH ] if [ $KERNELPATCH ]
then then
log_action "Applying kernel patch" log_action "Applying kernel patch"
@@ -39,6 +41,7 @@ then
log_status $? log_status $?
[ $? -eq 0 ] || exit 1 [ $? -eq 0 ] || exit 1
fi fi
fi
execute "cp $KERNELCONFIG .config" 0 execute "cp $KERNELCONFIG .config" 0