다마고치 연구소 한국어판 소스 공개
Paramix Studio / build (push) Canceled after 0s
Paramix Studio / pages (push) Canceled after 0s

This commit is contained in:
syskiller committed 2026-11-10 21:17:44 +09:00
commit db23855630
661 files changed
+503597

No files matched your search

+10
View File
@@ -0,0 +1,10 @@
#!/bin/sh
# Builds the flash app (Cortex-M4, Thumb) into ../flashapp.bin.
# Needs clang, ld.lld and llvm-objcopy. The result is byte-identical to the
# flashapp.bin shipped in this folder.
set -e
cd "$(dirname "$0")"
clang --target=thumbv7em-none-eabi -mcpu=cortex-m4 -mthumb -ffreestanding -nostdlib -Os -fno-common -DFW_PRECHECK -c fw.c -o /tmp/fw.o
ld.lld -T link.ld --no-rosegment /tmp/fw.o -o /tmp/fw.elf
llvm-objcopy -O binary /tmp/fw.elf ../flashapp.bin
echo "done: flashapp.bin"