[COMMIT osv master] scripts: use strip command as set in makefile so it works properly with aarch64

1 view
Skip to first unread message

Commit Bot

unread,
Feb 25, 2020, 11:31:48 PM2/25/20
to osv...@googlegroups.com, Waldemar Kozaczuk
From: Waldemar Kozaczuk <jwkoz...@gmail.com>
Committer: Waldemar Kozaczuk <jwkoz...@gmail.com>
Branch: master

scripts: use strip command as set in makefile so it works properly with aarch64

Signed-off-by: Waldemar Kozaczuk <jwkoz...@gmail.com>

---
diff --git a/scripts/manifest_common.py b/scripts/manifest_common.py
--- a/scripts/manifest_common.py
+++ b/scripts/manifest_common.py
@@ -74,7 +74,11 @@ def to_strip(filename):
if not os.path.exists(stripped_filename) \
or (os.path.getmtime(stripped_filename) < \
os.path.getmtime(filename)):
- ret = subprocess.call(["strip", "-o", stripped_filename, filename])
+ if os.environ.get('STRIP'):
+ strip_cmd = os.environ.get('STRIP')
+ else:
+ strip_cmd = 'strip'
+ ret = subprocess.call([strip_cmd, "-o", stripped_filename, filename])
if ret != 0:
print("Failed stripping %s. Using original." % filename)
return filename
Reply all
Reply to author
Forward
0 new messages