Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
OpenHarmony
Prebuilts Lite Sysroot
提交
df1afe2a
P
Prebuilts Lite Sysroot
项目概览
OpenHarmony
/
Prebuilts Lite Sysroot
大约 1 年 前同步成功
通知
1
Star
39
Fork
0
代码
文件
提交
分支
Tags
贡献者
分支图
Diff
Issue
0
列表
看板
标记
里程碑
合并请求
0
Wiki
0
Wiki
分析
仓库
DevOps
项目成员
Pages
P
Prebuilts Lite Sysroot
项目概览
项目概览
详情
发布
仓库
仓库
文件
提交
分支
标签
贡献者
分支图
比较
Issue
0
Issue
0
列表
看板
标记
里程碑
合并请求
0
合并请求
0
Pages
分析
分析
仓库分析
DevOps
Wiki
0
Wiki
成员
成员
收起侧边栏
关闭侧边栏
动态
分支图
创建新Issue
提交
Issue看板
体验新版 GitCode,发现更多精彩内容 >>
提交
df1afe2a
编写于
7月 01, 2021
作者:
O
openharmony_ci
提交者:
Gitee
7月 01, 2021
浏览文件
操作
浏览文件
下载
差异文件
!42 按需编译C库,即无需每次编译多份C库
Merge pull request !42 from Caoruihong/multilib_off
上级
d1ec389f
38ebcbf9
变更
2
显示空白变更内容
内联
并排
Showing
2 changed file
with
6 addition
and
4 deletion
+6
-4
build/BUILD.gn
build/BUILD.gn
+1
-0
build/Makefile
build/Makefile
+5
-4
未找到文件。
build/BUILD.gn
浏览文件 @
df1afe2a
...
...
@@ -50,6 +50,7 @@ if (!defined(board_configed_sysroot) || board_configed_sysroot == "") {
arch_cflags = string_join(" ", target_arch_cflags)
command = "make TOPDIR=$ohos_root_path SYSROOTDIR=$sysroot_path TARGETS=$targets -f $makefile"
command += " ARCH=$arch TARGET=$target_triple ARCH_CFLAGS=\"$arch_cflags\""
command += " BUILD_DEBUG=false BUILD_ALL_MULTILIB=false"
# copy standard libraries libc.so and libc++.so to lib out dir
libcpp = "\$($ohos_current_cxx_command --target=$target_triple --sysroot=$sysroot_path $arch_cflags -print-file-name=libc++.so)"
...
...
build/Makefile
浏览文件 @
df1afe2a
...
...
@@ -98,15 +98,15 @@ nuttx_header_install_for_liteos_a_user: musl_copy_for_liteos_a_user
$(HIDE)
sed
'/^#include/d'
$(NUTTXDIR)
/include/nuttx/video/fb.h |
sed
's,FAR ,,g'
|
sed
's,LosVmMapRegion,void,g'
>
$<
/include/fb.h
linux_header_install_for_liteos_a_user
:
musl_copy_for_liteos_a_user
$(HIDE)
mkdir
-p
$@
$(HIDE)
make
-sj
headers_install
ARCH
=
$(ARCH)
INSTALL_HDR_PATH
=
$(
shell
pwd
)
/
$@
-C
$(LINUXKERNELDIR)
$(HIDE)
install
-p
-m
644
-D
$@
/include/linux/capability.h
$<
/include/linux/capability.h
$(HIDE)
echo
"
$$
LINUX_TYPES_H"
>
$<
/include/linux/types.h
linux_header_install_for_linux_user
:
musl_copy_for_linux_user
$(HIDE)
make
-sj
headers_install
ARCH
=
$(ARCH)
INSTALL_HDR_PATH
=
$(
shell
pwd
)
/
$<
-C
$(LINUXDIR)
$(HIDE)
find
$<
\(
-name
.install
-o
-name
..install.cmd
\)
-delete
$(HIDE)
find
$<
-type
d
-empty
-delete
$(HIDE)
make
-sj
headers_install
ARCH
=
$(ARCH)
INSTALL_HDR_PATH
=
$(
shell
pwd
)
/
$@
-C
$(LINUXDIR)
$(HIDE)
find
$@
\(
-name
.install
-o
-name
..install.cmd
\)
-delete
$(HIDE)
find
$@
-type
d
-empty
-delete
$(HIDE)
cp
-rfp
$@
/
*
$<
/
musl_patch_for_liteos_a_user
:
nuttx_header_install_for_liteos_a_user
musl_patch_for_liteos_a_user
:
linux_header_install_for_liteos_a_user
...
...
@@ -128,6 +128,7 @@ musl_install_for_linux_user: musl_patch_for_linux_user
../configure
--prefix
=
/usr
--target
=
$(TARGET)
--includedir
=
/usr/include/
$(TARGET)
--libdir
=
/usr/
$(MULTILIB)
\
CC
=
"
$(CC)
"
CROSS_COMPILE
=
$(CROSS_COMPILE)
CFLAGS
=
"
$(CFLAGS)
"
>
/dev/null
&&
\
sed
's, -m 644 , -m 444 ,g'
Makefile | make
-f-
-sj
install-headers install-libs
DESTDIR
=
$(SYSROOTDIR)
$(HIDE)
cp
-rfp
linux_header_install_for_linux_user/include/
*
$(SYSROOTDIR)
/usr/include/
$(TARGET)
ifeq
($(BUILD_DEBUG),true)
musl_install_for_liteos_a_user
:
CFLAGS += -funwind-tables -fasynchronous-unwind-tables -rdynamic -I $(shell $(CC) -print-file-name=)include
...
...
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录