Skip to content

Commit ca3e572

Browse files
author
Karl Zhang
committed
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]>
1 parent dd5178e commit ca3e572

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

tools/keil.py

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -51,6 +51,9 @@ def _get_filetype(fn):
5151
if fn.rfind('.lib') != -1:
5252
return 4
5353

54+
if fn.rfind('.o') != -1:
55+
return 3
56+
5457
# other filetype
5558
return 5
5659

0 commit comments

Comments
 (0)