#!/bin/sh
# DF-1362 fix compile-validation. Builds the kernel against the patched in-guest source.
# Run on the audit guest as root after `patch -p1 < /root/DF-1362.fix.diff` in /usr/src.
set -e
cd /usr/src
patch -p1 --forward < /root/DF-1362.fix.diff || true
cd /usr/src
make -j6 nativekernel KERNCONF=X86_64_GENERIC
echo "BUILD_OK rc=$?"
