Skip to content

Commit

Permalink
code_relocation: Allow processing of object files
Browse files Browse the repository at this point in the history
Allow processing of object files

Signed-off-by: Dennis Grijalva <dennisgrijalva@meta.com>
  • Loading branch information
dennisgr102 committed Jul 10, 2024
1 parent 7bef3fd commit a3c70c6
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions scripts/build/gen_relocate_app.py
Original file line number Diff line number Diff line change
Expand Up @@ -489,8 +489,12 @@ def parse_args():

# return the absolute path for the object file.
def get_obj_filename(searchpath, filename):
# get the object file name which is almost always pended with .obj
obj_filename = filename.split("/")[-1] + ".obj"
# if the file suffix is .o or .obj, look for that file
# otherwise get the object file name which is almost always pended with .obj
if filename.endswith(".o") or filename.endswith(".obj"):
obj_filename = filename.split("/")[-1]
else:
obj_filename = filename.split("/")[-1] + ".obj"

for dirpath, _, files in os.walk(searchpath):
for filename1 in files:
Expand Down

0 comments on commit a3c70c6

Please sign in to comment.