Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
int
Rust
提交
17b368fd
R
Rust
项目概览
int
/
Rust
大约 1 年 前同步成功
通知
1
Star
0
Fork
0
代码
文件
提交
分支
Tags
贡献者
分支图
Diff
Issue
0
列表
看板
标记
里程碑
合并请求
0
DevOps
流水线
流水线任务
计划
Wiki
0
Wiki
分析
仓库
DevOps
项目成员
Pages
R
Rust
项目概览
项目概览
详情
发布
仓库
仓库
文件
提交
分支
标签
贡献者
分支图
比较
Issue
0
Issue
0
列表
看板
标记
里程碑
合并请求
0
合并请求
0
Pages
DevOps
DevOps
流水线
流水线任务
计划
分析
分析
仓库分析
DevOps
Wiki
0
Wiki
成员
成员
收起侧边栏
关闭侧边栏
动态
分支图
创建新Issue
流水线任务
提交
Issue看板
体验新版 GitCode,发现更多精彩内容 >>
提交
17b368fd
编写于
5月 03, 2013
作者:
Y
Young-il Choi
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
mk: configurable android test directory
上级
6f6dd862
变更
2
隐藏空白更改
内联
并排
Showing
2 changed file
with
12 addition
and
10 deletion
+12
-10
mk/install.mk
mk/install.mk
+10
-7
mk/tests.mk
mk/tests.mk
+2
-3
未找到文件。
mk/install.mk
浏览文件 @
17b368fd
...
@@ -164,7 +164,7 @@ endef
...
@@ -164,7 +164,7 @@ endef
$(foreach
target,$(CFG_TARGET_TRIPLES),
\
$(foreach
target,$(CFG_TARGET_TRIPLES),
\
$(if
$(findstring
$(target),
"arm-linux-androideabi"
),
\
$(if
$(findstring
$(target),
"arm-linux-androideabi"
),
\
$(if
$(findstring
adb,$(shell
which
adb)),
\
$(if
$(findstring
adb,$(shell
which
adb)),
\
$(if $(findstring device,$(shell adb devices 2>/dev/null | grep -E '^[A-Za-z0-9]+[[
:
blank:]]+device'))
,
\
$(if $(findstring device,$(shell adb devices 2>/dev/null | grep -E '^[A-Za-z0-9
-
]+[[
:
blank:]]+device'))
,
\
$(info install: install-runtime-target for arm-linux-androideabi enabled
\
$(info install: install-runtime-target for arm-linux-androideabi enabled
\
$(info install: android device attached)
\
$(info install: android device attached)
\
$(eval $(call DEF_ADB_STATUS
,
true)))
,
\
$(eval $(call DEF_ADB_STATUS
,
true)))
,
\
...
@@ -181,6 +181,8 @@ $(foreach target,$(CFG_TARGET_TRIPLES), \
...
@@ -181,6 +181,8 @@ $(foreach target,$(CFG_TARGET_TRIPLES), \
ifeq
($(CFG_ADB_DEVICE),true)
ifeq
($(CFG_ADB_DEVICE),true)
CFG_RUNTIME_PUSH_DIR
=
/system/lib
ifdef
VERBOSE
ifdef
VERBOSE
ADB
=
adb
$(1)
ADB
=
adb
$(1)
ADB_PUSH
=
adb push
$(1)
$(2)
ADB_PUSH
=
adb push
$(1)
$(2)
...
@@ -193,17 +195,18 @@ endif
...
@@ -193,17 +195,18 @@ endif
define
INSTALL_RUNTIME_TARGET_N
define
INSTALL_RUNTIME_TARGET_N
install-runtime-target-$(1)-host-$(2)
:
$$(TSREQ$$(ISTAGE)_T_$(1)_H_$(2)) $$(SREQ$$(ISTAGE)_T_$(1)_H_$(2))
install-runtime-target-$(1)-host-$(2)
:
$$(TSREQ$$(ISTAGE)_T_$(1)_H_$(2)) $$(SREQ$$(ISTAGE)_T_$(1)_H_$(2))
$(Q)
$(
call
ADB_PUSH,
$$
(
TL
$(1)$(2)
)
/
$$
(
CFG_RUNTIME_
$(1)
)
,/system/lib
)
$(Q)
$(
call
ADB_SHELL,mkdir,
$(CFG_RUNTIME_PUSH_DIR)
)
$(Q)
$(
call
ADB_PUSH,
$$
(
TL
$(1)$(2)
)
/
$$
(
CORELIB_GLOB_
$(1)
)
,/system/lib
)
$(Q)
$(
call
ADB_PUSH,
$$
(
TL
$(1)$(2)
)
/
$$
(
CFG_RUNTIME_
$(1)
)
,
$(CFG_RUNTIME_PUSH_DIR)
)
$(Q)
$(
call
ADB_PUSH,
$$
(
TL
$(1)$(2)
)
/
$$
(
STDLIB_GLOB_
$(1)
)
,/system/lib
)
$(Q)
$(
call
ADB_PUSH,
$$
(
TL
$(1)$(2)
)
/
$$
(
CORELIB_GLOB_
$(1)
)
,
$(CFG_RUNTIME_PUSH_DIR)
)
$(Q)
$(
call
ADB_PUSH,
$$
(
TL
$(1)$(2)
)
/
$$
(
STDLIB_GLOB_
$(1)
)
,
$(CFG_RUNTIME_PUSH_DIR)
)
endef
endef
define
INSTALL_RUNTIME_TARGET_CLEANUP_N
define
INSTALL_RUNTIME_TARGET_CLEANUP_N
install-runtime-target-$(1)-cleanup
:
install-runtime-target-$(1)-cleanup
:
$(Q)
$(
call
ADB,remount
)
$(Q)
$(
call
ADB,remount
)
$(Q)
$(
call
ADB_SHELL,rm,
/system/lib
/
$
(
CFG_RUNTIME_
$(1)
))
$(Q)
$(
call
ADB_SHELL,rm,
$(CFG_RUNTIME_PUSH_DIR)
/
$
(
CFG_RUNTIME_
$(1)
))
$(Q)
$(
call
ADB_SHELL,rm,
/system/lib
/
$
(
CORELIB_GLOB_
$(1)
))
$(Q)
$(
call
ADB_SHELL,rm,
$(CFG_RUNTIME_PUSH_DIR)
/
$
(
CORELIB_GLOB_
$(1)
))
$(Q)
$(
call
ADB_SHELL,rm,
/system/lib
/
$
(
STDLIB_GLOB_
$(1)
))
$(Q)
$(
call
ADB_SHELL,rm,
$(CFG_RUNTIME_PUSH_DIR)
/
$
(
STDLIB_GLOB_
$(1)
))
endef
endef
$(eval
$(call
INSTALL_RUNTIME_TARGET_N,arm-linux-androideabi,$(CFG_BUILD_TRIPLE)))
$(eval
$(call
INSTALL_RUNTIME_TARGET_N,arm-linux-androideabi,$(CFG_BUILD_TRIPLE)))
...
...
mk/tests.mk
浏览文件 @
17b368fd
...
@@ -104,7 +104,7 @@ $(foreach target,$(CFG_TARGET_TRIPLES), \
...
@@ -104,7 +104,7 @@ $(foreach target,$(CFG_TARGET_TRIPLES), \
$(eval $(call DEF_RUNNABLE_STATUS
,
$(target)
,
true)))
,
\
$(eval $(call DEF_RUNNABLE_STATUS
,
$(target)
,
true)))
,
\
$(if $(findstring $(target)
,
"arm-linux-androideabi")
,
\
$(if $(findstring $(target)
,
"arm-linux-androideabi")
,
\
$(if $(findstring adb
,
$(shell which adb))
,
\
$(if $(findstring adb
,
$(shell which adb))
,
\
$(if $(findstring device
,
$(shell adb devices 2>/dev/null | grep -E '^[A-Za-z0-9]+[[:blank:]]+device'))
,
\
$(if $(findstring device
,
$(shell adb devices 2>/dev/null | grep -E '^[A-Za-z0-9
-
]+[[:blank:]]+device'))
,
\
$(info check: $(target) test set is runnable
\
$(info check: $(target) test set is runnable
\
$(info check: adb device attached)
\
$(info check: adb device attached)
\
$(eval $(call DEF_RUNNABLE_STATUS
,
$(target)
,
true)))
,
\
$(eval $(call DEF_RUNNABLE_STATUS
,
$(target)
,
true)))
,
\
...
@@ -129,9 +129,8 @@ CFG_ADB_PATH := $(shell which adb)
...
@@ -129,9 +129,8 @@ CFG_ADB_PATH := $(shell which adb)
CFG_ADB_TEST_DIR
=
/system/tmp
CFG_ADB_TEST_DIR
=
/system/tmp
$(info check
:
device $(CFG_ADB_TEST_DIR)
\
$(info check
:
device $(CFG_ADB_TEST_DIR)
\
$(shell $(CFG_ADB_PATH) remount 1>/dev/null)
\
$(shell $(CFG_ADB_PATH) shell mkdir $(CFG_ADB_TEST_DIR) 1>/dev/null)
\
$(shell $(CFG_ADB_PATH) shell mkdir $(CFG_ADB_TEST_DIR) 1>/dev/null)
\
$(shell $(CFG_ADB_PATH) shell rm $(CFG_ADB_TEST_DIR)/*-arm-linux-androideabi 1>/dev/null)
\
$(shell $(CFG_ADB_PATH) shell rm $(CFG_ADB_TEST_DIR)/*.so 1>/dev/null)
\
)
)
endif
endif
...
...
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录