#!/bin/sh
# build.sh - Build the DF-0788 harness (deterministic OOB-read proof) and
# generate the crafted NTFS image for the live trigger.
set -e
cd "$(dirname "$0")"

echo "=== Building harness ==="
cc -O2 -o harness harness.c
echo "BUILD_EXIT=$?"
ls -l harness

echo "=== Generating crafted NTFS image ==="
python3 gen_ntfs_0788.py ntfs_0788.img
ls -l ntfs_0788.img
