ceph/qa/workunits/kernel_untar_build.sh
Greg Farnum 1ea3f47ab8 qa: update to newer Linux tarball
This should make newer gcc releases happier in their default configuration.
kernel.org is now distributing tarballs as .xz files so we change to that
as well when decompressing (it is supported by Ubuntu Precise so we should
be all good).

Fixes: #11758

Signed-off-by: Greg Farnum <gfarnum@redhat.com>
2015-06-16 08:15:55 -07:00

21 lines
295 B
Bash
Executable File

#!/bin/bash
set -e
wget -q http://ceph.com/qa/linux-4.0.5.tar.xz
mkdir t
cd t
tar Jxvf ../linux*.xz
cd linux*
make defconfig
make -j`grep -c processor /proc/cpuinfo`
cd ..
if ! rm -rv linux* ; then
echo "uh oh rm -r failed, it left behind:"
find .
exit 1
fi
cd ..
rm -rv t linux*