summaryrefslogtreecommitdiffstats
path: root/qa/workunits/kernel_untar_build.sh
blob: 9b60f065c8d87ba963d07afed3f2595c0df203d4 (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.gz http://download.ceph.com/qa/linux-5.4.tar.gz

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