DF-4828 / fixbuild.sh
#!/bin/sh # DF-4828 - fix compile validation on the guest (full radeon.ko rebuild). set -e cd "$(dirname "$0")" V=/home/maxx/dfbsd/dfbsd/dfbsd-qemu/vm.sh CFG=/home/maxx/dfbsd/dfbsd/dfbsd-qemu/config $V run_root 'cd /usr/src/sys/dev/drm/radeon && cp -p r600_hdmi.c r600_hdmi.c.orig && echo ORIG_SAVED' { echo "cd /usr/src/sys/dev/drm/radeon && patch -p1 << 'PATCHEOF'"; cat fix.diff; echo "PATCHEOF"; } | ssh -F "$CFG" dfbsd /bin/sh $V run_root 'cd /usr/src/sys/dev/drm/radeon && make > /tmp/df4828/fix_build.log 2>&1; echo FIX_BUILD_RC=$?; ls -la radeon.ko 2>/dev/null; tail -3 /tmp/df4828/fix_build.log; grep -c "r600_hdmi" /tmp/df4828/fix_build.log' |