add gcc-arm-none-eabi package (#1)

This commit is contained in:
Adeeb Shihadeh
2026-02-22 15:36:30 -08:00
committed by GitHub
parent 3b7a79a877
commit 4d5fd192dd
8 changed files with 337 additions and 0 deletions

View File

@@ -0,0 +1,21 @@
import os
import sys
TOOLCHAIN_DIR = os.path.join(os.path.dirname(__file__), "toolchain")
def _run(name):
binary = os.path.join(TOOLCHAIN_DIR, "bin", name)
os.execvp(binary, [binary] + sys.argv[1:])
def _run_gcc():
_run("arm-none-eabi-gcc")
def _run_objcopy():
_run("arm-none-eabi-objcopy")
def _run_size():
_run("arm-none-eabi-size")