Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
BaiXuePrincess
rt-thread
提交
3d80e414
R
rt-thread
项目概览
BaiXuePrincess
/
rt-thread
与 Fork 源项目一致
Fork自
RT-Thread / rt-thread
通知
1
Star
0
Fork
0
代码
文件
提交
分支
Tags
贡献者
分支图
Diff
Issue
0
列表
看板
标记
里程碑
合并请求
0
DevOps
流水线
流水线任务
计划
Wiki
0
Wiki
分析
仓库
DevOps
项目成员
Pages
R
rt-thread
项目概览
项目概览
详情
发布
仓库
仓库
文件
提交
分支
标签
贡献者
分支图
比较
Issue
0
Issue
0
列表
看板
标记
里程碑
合并请求
0
合并请求
0
Pages
DevOps
DevOps
流水线
流水线任务
计划
分析
分析
仓库分析
DevOps
Wiki
0
Wiki
成员
成员
收起侧边栏
关闭侧边栏
动态
分支图
创建新Issue
流水线任务
提交
Issue看板
提交
3d80e414
编写于
2月 25, 2014
作者:
B
Bernard Xiong
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
[JS] fix the include path issue
上级
213f47e3
变更
3
隐藏空白更改
内联
并排
Showing
3 changed file
with
8 addition
and
12 deletion
+8
-12
components/dfs/filesystems/romfs/mkromfs.py
components/dfs/filesystems/romfs/mkromfs.py
+7
-6
components/external/espruino/SConscript
components/external/espruino/SConscript
+1
-1
tools/building.py
tools/building.py
+0
-5
未找到文件。
components/dfs/filesystems/romfs/mkromfs.py
浏览文件 @
3d80e414
...
...
@@ -4,6 +4,7 @@ import string
basename
=
''
output
=
''
sep
=
os
.
sep
def
mkromfs_output
(
out
):
# print '%s' % out,
...
...
@@ -54,12 +55,12 @@ def mkromfs_dir(dirname, is_root = False):
fullpath
=
os
.
path
.
join
(
path
,
item
)
if
os
.
path
.
isfile
(
fullpath
):
subpath
=
fullpath
[
len
(
basename
):]
array
=
subpath
.
split
(
'
\\
'
)
array
=
subpath
.
split
(
sep
)
arrayname
=
string
.
join
(
array
,
'_'
)
mkromfs_file
(
fullpath
,
arrayname
)
subpath
=
path
[
len
(
basename
):]
dir
=
subpath
.
split
(
'
\\
'
)
dir
=
subpath
.
split
(
sep
)
direntname
=
string
.
join
(
dir
,
'_'
)
if
is_root
:
mkromfs_output
(
'const struct romfs_dirent _root_dirent[] = {
\n
'
)
...
...
@@ -69,12 +70,12 @@ def mkromfs_dir(dirname, is_root = False):
for
item
in
list
:
fullpath
=
os
.
path
.
join
(
path
,
item
)
fn
=
fullpath
[
len
(
dirname
):]
if
fn
[
0
]
==
'
\\
'
:
if
fn
[
0
]
==
sep
:
fn
=
fn
[
1
:]
fn
=
fn
.
replace
(
'
\\
'
,
'/'
)
subpath
=
fullpath
[
len
(
basename
):]
items
=
subpath
.
split
(
'
\\
'
)
items
=
subpath
.
split
(
sep
)
item_name
=
string
.
join
(
items
,
'_'
)
item_name
=
item_name
.
replace
(
'.'
,
'_'
)
item_name
=
item_name
.
replace
(
'-'
,
'_'
)
...
...
@@ -92,12 +93,12 @@ def mkromfs_dir(dirname, is_root = False):
for
item
in
list
:
fullpath
=
os
.
path
.
join
(
path
,
item
)
fn
=
fullpath
[
len
(
dirname
):]
if
fn
[
0
]
==
'
\\
'
:
if
fn
[
0
]
==
sep
:
fn
=
fn
[
1
:]
fn
=
fn
.
replace
(
'
\\
'
,
'/'
)
subpath
=
fullpath
[
len
(
basename
):]
items
=
subpath
.
split
(
'
\\
'
)
items
=
subpath
.
split
(
sep
)
item_name
=
string
.
join
(
items
,
'_'
)
item_name
=
item_name
.
replace
(
'.'
,
'_'
)
item_name
=
item_name
.
replace
(
'-'
,
'_'
)
...
...
components/external/espruino/SConscript
浏览文件 @
3d80e414
from
building
import
*
cwd
=
GetCurrentDir
()
path
=
[
cwd
+
'/src'
,
cwd
+
'/gen'
,
cwd
+
'/libs'
,
cwd
+
'/targets/rtthread'
]
path
=
[
cwd
,
cwd
+
'/src'
,
cwd
+
'/gen'
,
cwd
+
'/libs'
,
cwd
+
'/targets/rtthread'
]
src
=
Split
(
"""
src/jsdevices.c
...
...
tools/building.py
浏览文件 @
3d80e414
...
...
@@ -284,11 +284,6 @@ def MergeGroup(src_group, group):
else
:
src_group
[
'LIBPATH'
]
=
group
[
'LIBPATH'
]
if
src_group
.
has_key
(
'LIBS'
):
print
src_group
[
'LIBS'
]
if
src_group
.
has_key
(
'LIBS'
):
print
src_group
[
'LIBPATH'
]
def
DefineGroup
(
name
,
src
,
depend
,
**
parameters
):
global
Env
if
not
GetDepend
(
depend
):
...
...
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录