DF-0812 / build.sh
#!/bin/sh # DF-0812 build script. Builds the harness and the image forger. # The image forger links against the kernel's own iscsi_crc32 (icrc32.c). set -e cd "$(dirname "$0")" if [ ! -f icrc32.c ]; then echo "ERROR: icrc32.c missing (copy from sys/libkern/icrc32.c)" >&2 exit 1 fi cc -O2 -o harness harness.c cc -O2 -o craft_img craft_img.c icrc32.c echo "BUILD OK: harness, craft_img" |