Skip to content

Commit 9fe3ada

Browse files
Archcadyadbridge
authored andcommitted
Remove extension in cmd
Remove extension in command line so the script could work on Linux
1 parent 506c355 commit 9fe3ada

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

tools/targets/REALTEK_RTL8195AM.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -153,7 +153,7 @@ def parse_load_segment_armcc(image_elf):
153153
(offset, addr, size) = (0, 0, 0)
154154
segment_list = []
155155
in_segment = False
156-
cmd = 'fromelf.exe --text -v --only=none ' + image_elf
156+
cmd = 'fromelf --text -v --only=none ' + image_elf
157157
for line in subprocess.check_output(cmd, shell=True, universal_newlines=True).split("\n"):
158158
if line == "":
159159
pass
@@ -201,7 +201,7 @@ def parse_load_segment_iar(image_elf):
201201

202202
segment_list = []
203203
in_segment = False
204-
cmd = 'ielfdumparm.exe ' + image_elf
204+
cmd = 'ielfdumparm ' + image_elf
205205
for line in subprocess.check_output(cmd, shell=True, universal_newlines=True).split("\n"):
206206
if line.startswith(" SEGMENTS:"):
207207
in_segment = True

0 commit comments

Comments
 (0)