5 # Copyright (C) 2003-2006 IBM
7 # This program is free software; you can redistribute it and/or
8 # modify it under the terms of the GNU General Public License as
9 # published by the Free Software Foundation; either version 2 of the
10 # License, or (at your option) any later version.
12 # This program is distributed in the hope that it will be useful, but
13 # WITHOUT ANY WARRANTY; without even the implied warranty of
14 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
15 # General Public License for more details.
17 # You should have received a copy of the GNU General Public License
18 # along with this program; if not, write to the Free Software
19 # Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA
23 CPUS
=`grep processor /proc/cpuinfo | wc -l`
26 # WARNING: If you update the kernel version that we use, be sure to
27 # update $POUNDER_SRCDIR/memtest.patch, $POUNDER_HOME/test_scripts/memtest,
28 # $POUNDER_HOME/test_scripts/build_kernel, and
29 # $POUNDER_HOME/build_scripts/build_kernel.
33 # Decompress tarball if necessary
35 if [ ! -d linux-
$VERSION ]; then
36 tar -xzf "$POUNDER_OPTDIR/linux-$VERSION.tar.gz"
43 # Create a config file
47 if [ $LOG_ALL_MAKE ]; then
48 #Let all ouput flow to the external logging
49 make -j$CPUS oldconfig
53 make -j$CPUS oldconfig
> /dev
/null
54 time make -j$CPUS > /dev
/null
57 # Did we get a kernel image?
59 if [ -f vmlinux
]; then