summaryrefslogtreecommitdiff
path: root/tools/asm_processor/compile.sh
diff options
context:
space:
mode:
authorred031000 <rubenru09@aol.com>2021-03-21 21:29:54 +0000
committerred031000 <rubenru09@aol.com>2021-03-21 21:29:54 +0000
commita48d4ca5662481736ae0228f2633928c338c9e8f (patch)
treea2a12e99bdb459c1d0916a2424d7b93207bb3440 /tools/asm_processor/compile.sh
parent0ed2967bdbf4667afdbbfafac6aee19d9244d50a (diff)
parent98aafed459ae6869e00462f265effa77bb76d8a4 (diff)
Merge branch 'master' of https://github.com/pret/pokediamond
Diffstat (limited to 'tools/asm_processor/compile.sh')
-rwxr-xr-xtools/asm_processor/compile.sh4
1 files changed, 2 insertions, 2 deletions
diff --git a/tools/asm_processor/compile.sh b/tools/asm_processor/compile.sh
index 561b0399..feef7fc9 100755
--- a/tools/asm_processor/compile.sh
+++ b/tools/asm_processor/compile.sh
@@ -9,7 +9,7 @@ PADDED_SRC="$(mktemp --suffix=.c padded-XXXXXX)"
PADDED_OBJ="$(mktemp --suffix=.o padded-XXXXXX)"
# Create a .c file replacing the nonmatching function with volatile int writes,
-# and compile.
+# and compile.
../tools/asm_processor/asm_processor.py "$SRC" --assembler "$AS" > "$PADDED_SRC"
$CC -c "$PADDED_SRC" -o "$PADDED_OBJ"
@@ -20,7 +20,7 @@ cat global.inc >> "$PRELUDE"
# Inject the matching assembly into the padded obj file.
../tools/asm_processor/asm_processor.py "$SRC" --post-process "$PADDED_OBJ" --assembler "$AS" --asm-prelude "$PRELUDE"
-$DEVKITARM/bin/arm-none-eabi-objcopy --remove-section .comment "$PADDED_OBJ" "$OBJ"
+arm-none-eabi-objcopy --remove-section .comment "$PADDED_OBJ" "$OBJ"
rm "$PADDED_SRC"
rm "$PADDED_OBJ"