Skip to content

Commit

Permalink
code_relocation: Allow processing of object files
Browse files Browse the repository at this point in the history
Signed-off-by: Dennis Grijalva <dennisgrijalva@meta.com>
  • Loading branch information
dennisgr102 committed Jul 10, 2024
1 parent 7bef3fd commit 67dae19
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

Check failure on line 492 in scripts/build/gen_relocate_app.py

View workflow job for this annotation

GitHub Actions / Run compliance checks on patch series (PR)

TRAILING_WHITESPACE

scripts/build/gen_relocate_app.py:492 trailing whitespace

Check warning on line 492 in scripts/build/gen_relocate_app.py

View workflow job for this annotation

GitHub Actions / Run compliance checks on patch series (PR)

C0303

scripts/build/gen_relocate_app.py:492 Trailing whitespace (trailing-whitespace)
# 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 67dae19

Please sign in to comment.