mirror of
https://github.com/n64decomp/perfect_dark.git
synced 2024-11-30 17:40:32 +00:00
14 lines
281 B
Bash
Executable File
14 lines
281 B
Bash
Executable File
#!/bin/bash
|
|
|
|
set -e
|
|
|
|
INFILE="$1"
|
|
OUTFILE="$2"
|
|
ALIGN="${3:-0x10}"
|
|
|
|
echo -e "\n.data\n.incbin \"$INFILE\"\n.balign $ALIGN" > build/$ROMID/file-$$.s
|
|
|
|
$TOOLCHAIN-as -mabi=32 -mips2 -I src/include -EB --no-pad-sections -o "$OUTFILE" build/$ROMID/file-$$.s
|
|
|
|
rm -f build/$ROMID/file-$$.s
|