#!/bin/sh # Fetch the VT1200 reverse-engineering tree at the pinned commit. # # The compiler design uses this tree as its ABI/oracle/loader source: # harness/c-hello TI C -> COFF -> real unit # dwt/loader COFF loader and hostload # dwt/gui xhello.asm, the Xlib call sequence # tools/as34 native assembler/linker # tools/smart34010 dis34 # tools/tms34010-sdk TI SDKs # reference, docs manuals and notes # # It is NOT vendored into the compiler repo; this script is the reproducible # way to materialise it. Override the destination with $1. set -eu DEST=${1:-vendor/vt1200} REPO=https://git.k-space.ee/arti/vt1200 COMMIT=17dfd24340fe3346433f90457cb48cb8786dff39 if [ ! -d "$DEST/.git" ]; then mkdir -p "$(dirname "$DEST")" git clone --filter=blob:none --no-checkout "$REPO" "$DEST" fi cd "$DEST" git fetch --depth 1 origin "$COMMIT" 2>/dev/null || true git checkout --detach "$COMMIT" git sparse-checkout init --cone git sparse-checkout set docs reference tools harness dwt printf '%s\n' "$COMMIT" > VENDORED_AT echo "vt1200 tree at $DEST, commit $COMMIT" du -sh .