* also try to build with the larger custom kernel config
This commit is contained in:
parent
4930fb6989
commit
8980c7139a
|
@ -4,7 +4,7 @@ use strict;
|
|||
|
||||
print "Running on " . `hostname`;
|
||||
if ($ARGV[0] eq "--clean") {
|
||||
system("rm -rf linux-3.0.8");
|
||||
my_system("rm -rf linux-3.0.8");
|
||||
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");
|
||||
}
|
||||
if ( ! -d "linux-3.0.8") {
|
||||
system("tar xfJ linux-3.0.8.tar.xz");
|
||||
system("sync");
|
||||
my_system("tar xfJ linux-3.0.8.tar.xz");
|
||||
my_system("sync");
|
||||
}
|
||||
|
||||
chdir "linux-3.0.8";
|
||||
# system("cp /root/benchmarks/kernel/config-3.0.8 .config");
|
||||
if ($ARGV[0] eq "--mrproper") {
|
||||
system("make mrproper");
|
||||
my_system("make mrproper");
|
||||
}
|
||||
|
||||
install_standard("make -v", "make");
|
||||
|
@ -27,11 +27,18 @@ install_gcc();
|
|||
|
||||
exit if $ARGV[0] eq "--prep";
|
||||
|
||||
# system("make oldconfig");
|
||||
system("make defconfig");
|
||||
if ($ARGV[0] eq "--bigconfig") {
|
||||
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`;
|
||||
chomp $cpus;
|
||||
system("make -j$cpus");
|
||||
my_system("make -j$cpus");
|
||||
|
||||
|
||||
sub install_gcc {
|
||||
my $return = system("gcc --version");
|
||||
|
@ -89,3 +96,8 @@ sub install_standard {
|
|||
}
|
||||
system $cmd;
|
||||
}
|
||||
|
||||
sub my_system {
|
||||
print "RUN: @_\n";
|
||||
system "@_";
|
||||
}
|
||||
|
|
|
@ -5,15 +5,28 @@ cd /root/benchmarks/kernel/
|
|||
hosts="try1 try2 try3 try4 try5"
|
||||
|
||||
for host in ${hosts}; do
|
||||
echo {host}
|
||||
echo start {host}
|
||||
date -u
|
||||
sync
|
||||
|
||||
./build.pl
|
||||
date -u
|
||||
sync
|
||||
date -u
|
||||
./build.pl --clean
|
||||
|
||||
./build.pl --mrproper
|
||||
date -u
|
||||
sync
|
||||
date -u
|
||||
|
||||
./build.pl --bigconfig
|
||||
date -u
|
||||
sync
|
||||
date -u
|
||||
|
||||
./build.pl --clean
|
||||
date -u
|
||||
sync
|
||||
echo end {host}
|
||||
date -u
|
||||
done
|
||||
|
|
Loading…
Reference in New Issue