diff options
Diffstat (limited to 'firmware/57X-GSP/570.144/find_functions.py')
| -rw-r--r-- | firmware/57X-GSP/570.144/find_functions.py | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/firmware/57X-GSP/570.144/find_functions.py b/firmware/57X-GSP/570.144/find_functions.py index 52ad25e..b9f3232 100644 --- a/firmware/57X-GSP/570.144/find_functions.py +++ b/firmware/57X-GSP/570.144/find_functions.py @@ -11,9 +11,10 @@ RISC-V typical prologue: import struct import json import sys +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 # Load address from memory_blocks.json # RISC-V instruction patterns (compressed and uncompressed) |
