• Home
Name Date Size #Lines LOC

..--

README.mdD22-Oct-20251.2 KiB1711

README_zh.mdD22-Oct-2025963 1611

import_open_source_header.shD22-Oct-20255.7 KiB128102

README.md

1# Introduction to libc header file distribution<a name="ZH-CN_TOPIC_0000001078530726"></a>
2
3-   [Dependency warehouse](#section1371113476307)
4-   [Header file publishing method](#section15884114210197)
5
6## Dependency warehouse<a name="section1371113476307"></a>
7
8[third_party/musl](https://gitee.com/openharmony/third_party_musl)
9
10## Header file publishing method<a name="section15884114210197"></a>
11After downloading the above musl warehouse to the local, copy the export_libc_header.sh script in the documentation directory to the root directory of the musl package,
12After executing the following command, the musl_header_files folder will be generated in this directory, and copy the contents of the musl_header_files folder to the thirdparty\open_source\musl path of the SDK package (this md description document directory).
13chmod 777 ./export_libc_header.sh
14./export_libc_header.sh
15
16Note: It is necessary to ensure that the paths of the libc header files in the SDK package are thirdparty/open_source/musl/libc/* and thirdparty/open_source/musl/libc_32, otherwise when compiling the trusted application binary, the compilation under build/mk and build/cmake The script will report an error.
17

README_zh.md

1# libc头文件发布介绍<a name="ZH-CN_TOPIC_0000001078530726"></a>
2
3-   [依赖仓](#section1371113476307)
4-   [头文件发布方法](#section15884114210197)
5
6## 依赖仓<a name="section1371113476307"></a>
7
8[third_party/musl](https://gitee.com/openharmony/third_party_musl)
9
10## 头文件发布方法<a name="section15884114210197"></a>
11下载上述musl仓到本地后, 将此说明文档目录下的export_libc_header.sh脚本拷贝到musl软件包根目录下,
12执行如下命令后,在此目录会生成musl_header_files文件夹,将musl_header_files文件夹下的内容拷贝到SDK包的thirdparty\open_source\musl路径下(此md说明文档目录)即可。
13chmod 777 ./export_libc_header.sh
14./export_libc_header.sh
15注意:需要保证libc头文件在SDK包里的路径为thirdparty/open_source/musl/libc/*和thirdparty/open_source/musl/libc_32,否则编译可信应用二进制时,build/mkbuild/cmake下的编译脚本会报错。
16