Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
OpenHarmony
Xts Acts
提交
5e190b12
X
Xts Acts
项目概览
OpenHarmony
/
Xts Acts
1 年多 前同步成功
通知
9
Star
22
Fork
0
代码
文件
提交
分支
Tags
贡献者
分支图
Diff
Issue
0
列表
看板
标记
里程碑
合并请求
0
Wiki
0
Wiki
分析
仓库
DevOps
项目成员
Pages
X
Xts Acts
项目概览
项目概览
详情
发布
仓库
仓库
文件
提交
分支
标签
贡献者
分支图
比较
Issue
0
Issue
0
列表
看板
标记
里程碑
合并请求
0
合并请求
0
Pages
分析
分析
仓库分析
DevOps
Wiki
0
Wiki
成员
成员
收起侧边栏
关闭侧边栏
动态
分支图
创建新Issue
提交
Issue看板
提交
5e190b12
编写于
7月 08, 2021
作者:
O
openharmony_ci
提交者:
Gitee
7月 08, 2021
浏览文件
操作
浏览文件
下载
差异文件
!312 【轻内核】【master】ltp适配liteos_a上arch_cflags
Merge pull request !312 from chuaizhzh/ltp_202107081109
上级
08f2d089
e008fc0b
变更
3
显示空白变更内容
内联
并排
Showing
3 changed file
with
9 addition
and
6 deletion
+9
-6
open_posix_testsuite/conformance/definitions/BUILD.gn
open_posix_testsuite/conformance/definitions/BUILD.gn
+2
-1
open_posix_testsuite/conformance/interfaces/BUILD.gn
open_posix_testsuite/conformance/interfaces/BUILD.gn
+2
-1
open_posix_testsuite/ltp-patch/generate-makefiles.sh.patch
open_posix_testsuite/ltp-patch/generate-makefiles.sh.patch
+5
-4
未找到文件。
open_posix_testsuite/conformance/definitions/BUILD.gn
浏览文件 @
5e190b12
...
@@ -18,7 +18,8 @@ open_source_suite("ActsOpenPosixBuildOnlyTest") {
...
@@ -18,7 +18,8 @@ open_source_suite("ActsOpenPosixBuildOnlyTest") {
exec_command_path = "//third_party/ltp/testcases/open_posix_testsuite/"
exec_command_path = "//third_party/ltp/testcases/open_posix_testsuite/"
compiler = rebase_path("${ohos_build_compiler_dir}/bin/${ohos_build_compiler}")
compiler = rebase_path("${ohos_build_compiler_dir}/bin/${ohos_build_compiler}")
sysroot_path = rebase_path(ohos_current_sysroot)
sysroot_path = rebase_path(ohos_current_sysroot)
prebuild_command = "make clean && make distclean && ./scripts/generate-makefiles.sh $compiler ${ohos_root_path} ${sysroot_path} && make -j -C conformance/definitions"
arch_cflags = string_join(" ", target_arch_cflags)
prebuild_command = "make clean && make distclean && ./scripts/generate-makefiles.sh $compiler ${ohos_root_path} ${sysroot_path} \"${arch_cflags}\" && make -j -C conformance/definitions"
exec_sub_dir = "conformance/definitions"
exec_sub_dir = "conformance/definitions"
build_args = [
build_args = [
"signal_h/logfile",
"signal_h/logfile",
...
...
open_posix_testsuite/conformance/interfaces/BUILD.gn
浏览文件 @
5e190b12
...
@@ -18,7 +18,8 @@ open_source_suite("ActsOpenPosixTest") {
...
@@ -18,7 +18,8 @@ open_source_suite("ActsOpenPosixTest") {
suite_name = "acts"
suite_name = "acts"
exec_command_path = "//third_party/ltp/testcases/open_posix_testsuite/"
exec_command_path = "//third_party/ltp/testcases/open_posix_testsuite/"
sysroot_path = rebase_path(ohos_current_sysroot)
sysroot_path = rebase_path(ohos_current_sysroot)
prebuild_command = "make clean && make distclean && ./scripts/generate-makefiles.sh $compiler ${ohos_root_path} ${sysroot_path} && make -j -C conformance/interfaces"
arch_cflags = string_join(" ", target_arch_cflags)
prebuild_command = "make clean && make distclean && ./scripts/generate-makefiles.sh $compiler ${ohos_root_path} ${sysroot_path} \"${arch_cflags}\" && make -j -C conformance/interfaces"
exec_sub_dir = "conformance/interfaces"
exec_sub_dir = "conformance/interfaces"
deps = [
deps = [
"//test/xts/acts/open_posix_testsuite/conformance/definitions:ActsOpenPosixBuildOnlyTest",
"//test/xts/acts/open_posix_testsuite/conformance/definitions:ActsOpenPosixBuildOnlyTest",
...
...
open_posix_testsuite/ltp-patch/generate-makefiles.sh.patch
浏览文件 @
5e190b12
--- third_party/ltp/testcases/open_posix_testsuite/scripts/generate-makefiles.sh 2021-07-0
3 15:38:26.370000
000 +0800
--- third_party/ltp/testcases/open_posix_testsuite/scripts/generate-makefiles.sh 2021-07-0
8 10:43:20.237148
000 +0800
+++ test/xts/acts/open_posix_testsuite/ltp-patch/generate-makefiles.sh 2021-07-0
3 15:28:41.940000
000 +0800
+++ test/xts/acts/open_posix_testsuite/ltp-patch/generate-makefiles.sh 2021-07-0
8 10:38:59.237148
000 +0800
@@ -107,6 +107,7 @@
@@ -107,6 +107,7 @@
#
#
...
@@ -12,17 +12,18 @@
...
@@ -12,17 +12,18 @@
# Build variables
# Build variables
CFLAGS+= -I\$(top_srcdir)/include
CFLAGS+= -I\$(top_srcdir)/include
+CFLAGS+= --target=arm-liteos --sysroot=${SYSROOT_PATH}
+CFLAGS+= --target=arm-liteos --sysroot=${SYSROOT_PATH}
${ARCH_CFLAGS}
# XXX: for testfrmw.c -- needs to be moved into a library.
# XXX: for testfrmw.c -- needs to be moved into a library.
CFLAGS+= -I\$(srcdir)
CFLAGS+= -I\$(srcdir)
@@ -303,6 +305,
9
@@
@@ -303,6 +305,
10
@@
GLOBAL_BOILERPLATE="${TOP_SRCDIR}/.global_boilerplate"
GLOBAL_BOILERPLATE="${TOP_SRCDIR}/.global_boilerplate"
CONFIG_MK="../../include/mk/config-openposix.mk"
CONFIG_MK="../../include/mk/config-openposix.mk"
+COMPILE_PATH=$1
+COMPILE_PATH=$1
+BUILD_ROOT_PATH=$2
+BUILD_ROOT_PATH=$2
+SYSROOT_PATH=$3
+SYSROOT_PATH=$3
+ARCH_CFLAGS=$4
rm -f "$GLOBAL_BOILERPLATE"
rm -f "$GLOBAL_BOILERPLATE"
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录