1#!/bin/sh 2 3SELFPID=$$ 4renice 10 -p "$SELFPID" 5ionice -c 3 -p "$SELFPID" 6 7TDIR=/tmp/d19 8mkdir -p ${TDIR} 9 10cat <<EOF > ${TDIR}/buildscript1 11#!/bin/sh 12 13apt-get install -y sudo 14apt-get install -y git ca-certificates less 15apt-get install -y fakeroot 16apt-get install -y devscripts equivs 17apt-get install -y ubuntu-dev-tools 18 19mkdir /tmp/r1 20cd /tmp/r1 21pull-debian-source repo 22cd repo-* 23mk-build-deps --install --remove --tool='apt-get -o Debug::pkgProblemResolver=yes --no-install-recommends --yes' debian/control 24debuild 25cd .. 26 27apt -o Apt::Get::Assume-Yes=true -o APT::Color=0 -o DPkgPM::Progress-Fancy=0 \ 28 install ./*.deb 29 30cd /root 31EOF 32 33cat kernel_dependencies.sh >> ${TDIR}/buildscript1 34cat kernel_download.sh >> ${TDIR}/buildscript1 35cat kernel_build_deb.sh >> ${TDIR}/buildscript1 36 37cat <<EOF >> ${TDIR}/buildscript1 38cp -f /root/kernel-build-space/buildresult/*.deb ${TDIR} 39EOF 40 41chmod a+rx ${TDIR}/buildscript1 42 43cd ${TDIR} 44pbuilder-dist stable arm64 execute --bindmounts "${TDIR}" -- buildscript1 45