Files
phoronix-test-suite/pts/benchmark-resources/build-linux-kernel/time-compile-kernel
2008-04-02 10:15:24 -04:00

15 lines
328 B
Bash
Executable File

#!/bin/sh
if [ ! -f linux-2.6.24.tar.bz2 ]
then
echo "Linux Kernel Not Downloaded... Build Fails."
exit
fi
rm -rf linux-2.6.24/
tar -xjf linux-2.6.24.tar.bz2
cp -f linux-2624-config linux-2.6.24/.config
cd linux-2.6.24/
sleep 3
/usr/bin/time -f "Kernel Build Time: %e Seconds" make -s -j $NUM_CPU_JOBS 2>&1 | grep Seconds