summaryrefslogtreecommitdiffstats
path: root/qa/workunits/kernel_untar_build.sh
blob: 602ce04a7c6c7cdedeb0d7d8fe68ce82f760e907 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
#!/usr/bin/env bash

set -e

wget -O linux.tar.xz http://download.ceph.com/qa/linux-6.5.11.tar.xz

mkdir t
cd t
tar xJf ../linux.tar.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*