* also try to build with the larger custom kernel config

This commit is contained in:
Jeff Carr 2011-10-31 11:56:05 -04:00
parent 4930fb6989
commit 8980c7139a
2 changed files with 34 additions and 9 deletions

View File

@ -4,7 +4,7 @@ use strict;
print "Running on " . `hostname`; print "Running on " . `hostname`;
if ($ARGV[0] eq "--clean") { if ($ARGV[0] eq "--clean") {
system("rm -rf linux-3.0.8"); my_system("rm -rf linux-3.0.8");
exit; exit;
} }
@ -12,14 +12,14 @@ if ( ! -e "linux-3.0.8.tar.xz") {
my $return = system("wget -c http://69.55.54.91/linux-3.0.8.tar.xz"); my $return = system("wget -c http://69.55.54.91/linux-3.0.8.tar.xz");
} }
if ( ! -d "linux-3.0.8") { if ( ! -d "linux-3.0.8") {
system("tar xfJ linux-3.0.8.tar.xz"); my_system("tar xfJ linux-3.0.8.tar.xz");
system("sync"); my_system("sync");
} }
chdir "linux-3.0.8"; chdir "linux-3.0.8";
# system("cp /root/benchmarks/kernel/config-3.0.8 .config"); # system("cp /root/benchmarks/kernel/config-3.0.8 .config");
if ($ARGV[0] eq "--mrproper") { if ($ARGV[0] eq "--mrproper") {
system("make mrproper"); my_system("make mrproper");
} }
install_standard("make -v", "make"); install_standard("make -v", "make");
@ -27,11 +27,18 @@ install_gcc();
exit if $ARGV[0] eq "--prep"; exit if $ARGV[0] eq "--prep";
# system("make oldconfig"); if ($ARGV[0] eq "--bigconfig") {
system("make defconfig"); my_system("rm .config*");
my_system("cp /root/benchmarks/kernel/config-3.0.8 .config");
my_system("make oldconfig");
} else {
my_system("make defconfig");
}
my $cpus = `cat /proc/cpuinfo |grep QEMU |wc -l`; my $cpus = `cat /proc/cpuinfo |grep QEMU |wc -l`;
chomp $cpus; chomp $cpus;
system("make -j$cpus"); my_system("make -j$cpus");
sub install_gcc { sub install_gcc {
my $return = system("gcc --version"); my $return = system("gcc --version");
@ -89,3 +96,8 @@ sub install_standard {
} }
system $cmd; system $cmd;
} }
sub my_system {
print "RUN: @_\n";
system "@_";
}

View File

@ -5,15 +5,28 @@ cd /root/benchmarks/kernel/
hosts="try1 try2 try3 try4 try5" hosts="try1 try2 try3 try4 try5"
for host in ${hosts}; do for host in ${hosts}; do
echo {host} echo start {host}
date -u date -u
sync sync
./build.pl ./build.pl
date -u date -u
sync sync
date -u date -u
./build.pl --clean
./build.pl --mrproper
date -u date -u
sync sync
date -u date -u
./build.pl --bigconfig
date -u
sync
date -u
./build.pl --clean
date -u
sync
echo end {host}
date -u
done done