X-Git-Url: https://gerrit.opnfv.org/gerrit/gitweb?a=blobdiff_plain;f=src%2Fceph%2Fqa%2Fworkunits%2Fkernel_untar_build.sh;fp=src%2Fceph%2Fqa%2Fworkunits%2Fkernel_untar_build.sh;h=93fee1f5b3e1b0dd1491e85643baec4be13e2840;hb=812ff6ca9fcd3e629e49d4328905f33eee8ca3f5;hp=0000000000000000000000000000000000000000;hpb=15280273faafb77777eab341909a3f495cf248d9;p=stor4nfv.git diff --git a/src/ceph/qa/workunits/kernel_untar_build.sh b/src/ceph/qa/workunits/kernel_untar_build.sh new file mode 100755 index 0000000..93fee1f --- /dev/null +++ b/src/ceph/qa/workunits/kernel_untar_build.sh @@ -0,0 +1,20 @@ +#!/bin/bash + +set -e + +wget -q http://download.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*