未验证 提交 16b67da1 编写于 作者: B Bernard Xiong 提交者: GitHub

Merge pull request #2613 from BernardXiong/fix_makefile

[tools] Fix the makefile issue under Windows.
......@@ -32,8 +32,8 @@ def TargetMakefile(env):
make = open('config.mk', 'w')
make.write('BSP_ROOT ?= %s\n' % BSP_ROOT.replace('\\', '\\\\'))
make.write('RTT_ROOT ?= %s\n' % RTT_ROOT.replace('\\', '\\\\'))
make.write('BSP_ROOT ?= %s\n' % BSP_ROOT.replace('\\', '/'))
make.write('RTT_ROOT ?= %s\n' % RTT_ROOT.replace('\\', '/'))
make.write('\n')
cross = os.path.abspath(rtconfig.EXEC_PATH)
......@@ -117,7 +117,7 @@ def TargetMakefile(env):
files = Files
src.write('SRC_FILES :=\n')
for item in files:
src.write('SRC_FILES +=%s\n' % item)
src.write('SRC_FILES +=%s\n' % item.replace('\\', '/'))
make = open('Makefile', 'w')
make.write(makefile)
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册