mirror of
https://gitee.com/anod/open_agb_firm.git
synced 2025-05-06 22:04:10 +08:00
8 lines
288 B
Bash
8 lines
288 B
Bash
#!/bin/bash
|
|
PATH=$PATH:/var/devkit/bin
|
|
arm-agb-elf-gcc -ffreestanding -nostdlib -nostartfiles -o /tmp/cht /var/asm/exec.s
|
|
arm-agb-elf-strip --strip-all /tmp/cht
|
|
arm-agb-elf-objdump -fd /tmp/cht
|
|
arm-agb-elf-objcopy -O binary -j .text /tmp/cht /tmp/cht.bin
|
|
mv /tmp/cht.bin /var/asm/cht.bin
|