summaryrefslogtreecommitdiff
path: root/tools
diff options
context:
space:
mode:
authorKarl Zhang <[email protected]>2020-02-15 16:09:46 +0800
committerKarl Zhang <[email protected]>2020-02-15 19:18:31 +0800
commitca3e5726e1a49b0c328e6c105969fa0953f0bf1b (patch)
tree74b79597f87f8da84b55645bf2719b56edbb763d /tools
parentdd5178efdfa8ad6943459c1284237509a78c3367 (diff)
tool: Keil: Parse .o file as object file
The *.o file does not have the correct type number in Keil.py, it will be set as text file which can not link by Keil. Change-Id: Ib32e315c35e08ac0c882d5b4927948469fd9d0c9 Signed-off-by: Karl Zhang <[email protected]>
Diffstat (limited to 'tools')
-rw-r--r--tools/keil.py3
1 files changed, 3 insertions, 0 deletions
diff --git a/tools/keil.py b/tools/keil.py
index 7d4913dcf8..ce6f690085 100644
--- a/tools/keil.py
+++ b/tools/keil.py
@@ -51,6 +51,9 @@ def _get_filetype(fn):
if fn.rfind('.lib') != -1:
return 4
+ if fn.rfind('.o') != -1:
+ return 3
+
# other filetype
return 5