Interplane page as plain text, for reading tools and agents. English is the reference text: translate it with your own tool. Text in backticks and in ``` blocks (commands, fingerprints, file names) and link targets in <...> are exact: copy them, never translate them. Page: /drakestapleton/omega-gpu-driver/blob/main/tools/getirqomc.sh # omega-gpu-driver aien-dev/omega-gpu-driver Brought by drakestapleton Sign in to star 0 stars 0 watching About Files History Releases Proposed changes Issues For developers branch `main` Branches Tags History `omega-gpu-driver / tools / getirqomc.sh` 17 lines ยท 860 bytes Raw Blame History 1 #!/bin/sh 2 # SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception 3 # Same seed birth/hash convention as getomc.sh, isolated from its existing compiler and gates. 4 set -eu 5 R=$(CDPATH= cd -- "$(dirname "$0")/.." && pwd) 6 . "$R/tools/irq-omc.pin" 7 mkdir -p "$R/build" 8 ok() { [ -x "$1" ] && [ "$(sha256sum "$1" | cut -d' ' -f1)" = "$OMC_SHA256" ]; } 9 if ok "$R/build/irq-omc"; then exit 0; fi 10 if [ -n "${AIEN_IRQ_OMC:-}" ] && ok "$AIEN_IRQ_OMC"; then cp "$AIEN_IRQ_OMC" "$R/build/irq-omc"; exit 0; fi 11 S="$R/build/irq-omega-src" 12 if [ ! -d "$S/.git" ]; then git clone -q "$OMEGA_REPO" "$S"; fi 13 git -C "$S" fetch -q origin "$OMEGA_COMMIT" 14 git -C "$S" checkout -q --detach "$OMEGA_COMMIT" 15 (cd "$S" && sh seed/omega-from-seed.sh >/dev/null) 16 ok "$S/seed/out/omc" || { echo 'getirqomc: compiler does not match IRQ pin' >&2; exit 1; } 17 cp "$S/seed/out/omc" "$R/build/irq-omc"