summaryrefslogtreecommitdiffstats
path: root/firmware/57X-GSP/570.144/decompile_functions.py
diff options
context:
space:
mode:
Diffstat (limited to 'firmware/57X-GSP/570.144/decompile_functions.py')
-rw-r--r--firmware/57X-GSP/570.144/decompile_functions.py5
1 files changed, 3 insertions, 2 deletions
diff --git a/firmware/57X-GSP/570.144/decompile_functions.py b/firmware/57X-GSP/570.144/decompile_functions.py
index 4a9bc27..6e27d05 100644
--- a/firmware/57X-GSP/570.144/decompile_functions.py
+++ b/firmware/57X-GSP/570.144/decompile_functions.py
@@ -6,9 +6,10 @@ Uses our decoded instruction stream to generate pseudo-C.
import struct
import json
+import os
-FWIMAGE_PATH = "$OPEN_IOV_ROOT/firmware/570-GSP/gsp-570.144.fwimage.bin"
-OUTPUT_DIR = "$OPEN_IOV_ROOT/firmware/570-GSP"
+FWIMAGE_PATH = os.path.join(os.path.dirname(os.path.abspath(__file__)), "gsp-570.144.fwimage.bin")
+OUTPUT_DIR = os.path.dirname(os.path.abspath(__file__))
BASE_ADDR = 0x04000000
# Key functions to decompile