From a0064ae47c5c2a06acbcd23d97ac1b44d96bc82e Mon Sep 17 00:00:00 2001 From: Yuguo Zou Date: Thu, 24 Aug 2017 11:26:40 +0800 Subject: [PATCH] Remove extension in cmd Remove extension in command line so the script could work on Linux --- tools/targets/REALTEK_RTL8195AM.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/tools/targets/REALTEK_RTL8195AM.py b/tools/targets/REALTEK_RTL8195AM.py index 14ecf9b285..dff50327ae 100644 --- a/tools/targets/REALTEK_RTL8195AM.py +++ b/tools/targets/REALTEK_RTL8195AM.py @@ -153,7 +153,7 @@ def parse_load_segment_armcc(image_elf): (offset, addr, size) = (0, 0, 0) segment_list = [] in_segment = False - cmd = 'fromelf.exe --text -v --only=none ' + image_elf + cmd = 'fromelf --text -v --only=none ' + image_elf for line in subprocess.check_output(cmd, shell=True, universal_newlines=True).split("\n"): if line == "": pass @@ -201,7 +201,7 @@ def parse_load_segment_iar(image_elf): segment_list = [] in_segment = False - cmd = 'ielfdumparm.exe ' + image_elf + cmd = 'ielfdumparm ' + image_elf for line in subprocess.check_output(cmd, shell=True, universal_newlines=True).split("\n"): if line.startswith(" SEGMENTS:"): in_segment = True