]> git.proxmox.com Git - ceph.git/blob - ceph/qa/workunits/kernel_untar_build.sh
import 15.2.4
[ceph.git] / ceph / qa / workunits / kernel_untar_build.sh
1 #!/usr/bin/env bash
2
3 set -e
4
5 wget -O linux.tar.gz http://download.ceph.com/qa/linux-5.4.tar.gz
6
7 mkdir t
8 cd t
9 tar xzf ../linux.tar.gz
10 cd linux*
11 make defconfig
12 make -j`grep -c processor /proc/cpuinfo`
13 cd ..
14 if ! rm -rv linux* ; then
15 echo "uh oh rm -r failed, it left behind:"
16 find .
17 exit 1
18 fi
19 cd ..
20 rm -rv t linux*