From 11f8473956b847fe13c5b3688b91d50ca4f1d38e Mon Sep 17 00:00:00 2001 From: Austin Date: Sat, 18 Sep 2021 10:04:34 +0000 Subject: [PATCH 1/8] update zh-cn/device-dev/get-code/sourcecode-acquire.md. Signed-off-by: Austin --- .../device-dev/get-code/sourcecode-acquire.md | 179 ++++++++++++++++++ 1 file changed, 179 insertions(+) diff --git a/zh-cn/device-dev/get-code/sourcecode-acquire.md b/zh-cn/device-dev/get-code/sourcecode-acquire.md index c953882f8b3..e33b874845c 100644 --- a/zh-cn/device-dev/get-code/sourcecode-acquire.md +++ b/zh-cn/device-dev/get-code/sourcecode-acquire.md @@ -412,4 +412,183 @@ OpenHarmony是由开放原子开源基金会(OpenAtom Foundation)孵化及 +## 获取方式4:从github镜像仓库获取(每天UTC时间23点同步) + +方式一(推荐):通过repo + ssh 下载(需注册公钥,请参考GitHub帮助中心)。 + + repo init -u git@github.com:openharmony/manifest.git -b master --no-repo-verify + repo sync -c + repo forall -c 'git lfs pull' + +方式二:通过repo + https 下载。 + + repo init -u [https://github.com/openharmony/manifest.git](https://github.com/openharmony/manifest.git) -b master --no-repo-verify + repo sync -c + repo forall -c 'git lfs pull' + +## 源码目录简介 + +下表是OpenHarmony源码的目录及简单说明: + +**表 2** 源码目录 + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +

目录名

+ +

描述

+ +

applications

+ +

应用程序样例,包括camera等

+ +

base

+ +

基础软件服务子系统集硬件服务子系统集

+ +

build

+ +

组件化编译、构建和配置脚本

+ +

docs

+ +

说明文档

+ +

domains

+ +

增强软件服务子系统集

+ +

drivers

+ +

驱动子系统

+ +

foundation

+ +

系统基础能力子系统集

+ +

kernel

+ +

内核子系统

+ +

prebuilts

+ +

编译器及工具链子系统

+ +

test

+ +

测试子系统

+ +

third_party

+ +

开源第三方组件

+ +

utils

+ +

常用的工具集

+ +

vendor

+ +

厂商提供的软件

+ +

build.py

+ +

编译脚本文件

+ +
+ + -- Gitee From 7f9b0514bdd34e038b5ce07bdbc7505e05113e76 Mon Sep 17 00:00:00 2001 From: Austin Date: Sat, 18 Sep 2021 10:06:06 +0000 Subject: [PATCH 2/8] update zh-cn/device-dev/get-code/sourcecode-acquire.md. Signed-off-by: Austin --- zh-cn/device-dev/get-code/sourcecode-acquire.md | 2 ++ 1 file changed, 2 insertions(+) diff --git a/zh-cn/device-dev/get-code/sourcecode-acquire.md b/zh-cn/device-dev/get-code/sourcecode-acquire.md index e33b874845c..67fa37ecd5d 100644 --- a/zh-cn/device-dev/get-code/sourcecode-acquire.md +++ b/zh-cn/device-dev/get-code/sourcecode-acquire.md @@ -412,8 +412,10 @@ OpenHarmony是由开放原子开源基金会(OpenAtom Foundation)孵化及 + ## 获取方式4:从github镜像仓库获取(每天UTC时间23点同步) + 方式一(推荐):通过repo + ssh 下载(需注册公钥,请参考GitHub帮助中心)。 repo init -u git@github.com:openharmony/manifest.git -b master --no-repo-verify -- Gitee From bf918b92e77a0c95cc7bd89387e0e37b6d1bcd48 Mon Sep 17 00:00:00 2001 From: Austin Date: Sat, 18 Sep 2021 10:14:00 +0000 Subject: [PATCH 3/8] update zh-cn/device-dev/get-code/sourcecode-acquire.md. Signed-off-by: Austin --- zh-cn/device-dev/get-code/sourcecode-acquire.md | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/zh-cn/device-dev/get-code/sourcecode-acquire.md b/zh-cn/device-dev/get-code/sourcecode-acquire.md index 67fa37ecd5d..decf26508c5 100644 --- a/zh-cn/device-dev/get-code/sourcecode-acquire.md +++ b/zh-cn/device-dev/get-code/sourcecode-acquire.md @@ -14,6 +14,8 @@ - [获取方式3:从镜像站点获取](#section1186691118430) - [源码目录简介](#section1072115612811) +- [获取方式4:从github镜像仓库获取(每天UTC时间23点同步)](#section23448418360) + - [源码目录简介](#section1072115612811) ## OpenHarmony介绍 @@ -416,7 +418,7 @@ OpenHarmony是由开放原子开源基金会(OpenAtom Foundation)孵化及 ## 获取方式4:从github镜像仓库获取(每天UTC时间23点同步) -方式一(推荐):通过repo + ssh 下载(需注册公钥,请参考GitHub帮助中心)。 +方式一(推荐):通过repo + ssh 下载(需注册公钥,请参考[GitHub帮助中心](https://docs.github.com/en/github/authenticating-to-github/connecting-to-github-with-ssh/adding-a-new-ssh-key-to-your-github-account))。 repo init -u git@github.com:openharmony/manifest.git -b master --no-repo-verify repo sync -c -- Gitee From ad3398bf194aa0d488412d9a9cc9a8ce01f12fc4 Mon Sep 17 00:00:00 2001 From: Austin Date: Sat, 18 Sep 2021 10:16:44 +0000 Subject: [PATCH 4/8] update zh-cn/device-dev/get-code/sourcecode-acquire.md. Signed-off-by: Austin --- zh-cn/device-dev/get-code/sourcecode-acquire.md | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/zh-cn/device-dev/get-code/sourcecode-acquire.md b/zh-cn/device-dev/get-code/sourcecode-acquire.md index decf26508c5..7957a30d9fb 100644 --- a/zh-cn/device-dev/get-code/sourcecode-acquire.md +++ b/zh-cn/device-dev/get-code/sourcecode-acquire.md @@ -13,7 +13,7 @@ - [操作步骤](#section954619433333) - [获取方式3:从镜像站点获取](#section1186691118430) -- [源码目录简介](#section1072115612811) + - [源码目录简介](#section1072115612811) - [获取方式4:从github镜像仓库获取(每天UTC时间23点同步)](#section23448418360) - [源码目录简介](#section1072115612811) @@ -426,7 +426,7 @@ OpenHarmony是由开放原子开源基金会(OpenAtom Foundation)孵化及 方式二:通过repo + https 下载。 - repo init -u [https://github.com/openharmony/manifest.git](https://github.com/openharmony/manifest.git) -b master --no-repo-verify + repo init -u https://github.com/openharmony/manifest.git -b master --no-repo-verify repo sync -c repo forall -c 'git lfs pull' -- Gitee From a4aa20536cfd2e8ccccc05abdb3faa226fabd5ec Mon Sep 17 00:00:00 2001 From: Austin Date: Sat, 18 Sep 2021 10:18:51 +0000 Subject: [PATCH 5/8] update zh-cn/device-dev/get-code/sourcecode-acquire.md. Signed-off-by: Austin --- zh-cn/device-dev/get-code/sourcecode-acquire.md | 1 + 1 file changed, 1 insertion(+) diff --git a/zh-cn/device-dev/get-code/sourcecode-acquire.md b/zh-cn/device-dev/get-code/sourcecode-acquire.md index 7957a30d9fb..71ce610ea88 100644 --- a/zh-cn/device-dev/get-code/sourcecode-acquire.md +++ b/zh-cn/device-dev/get-code/sourcecode-acquire.md @@ -30,6 +30,7 @@ OpenHarmony是由开放原子开源基金会(OpenAtom Foundation)孵化及 - **获取方式1**:从代码仓库获取。通过repo或git工具从代码仓库中下载,此方式可获取最新代码。 - **获取方式2**:通过HPM包管理器获取。在[HPM](https://hpm.harmonyos.com)网站,查找满足需求的开源发行版,直接下载(或者定制后下载),再通过hpm-cli命令工具将所需的组件及工具链下载、安装到本地。 - **获取方式3**:从镜像站点下载归档后的发行版压缩文件。如果要获取旧版本的源码,也可通过此方式获取,此方式下载速度较快。 +- **获取方式4**:从github代码仓库获取。通过repo或git工具从代码仓库中下载,此方式可获取最新代码。 ## 获取方式1:从代码仓库获取 -- Gitee From 968857384598b7c64c58dd759cb94d59ac6f3208 Mon Sep 17 00:00:00 2001 From: Austin Date: Sat, 18 Sep 2021 10:30:35 +0000 Subject: [PATCH 6/8] update zh-cn/device-dev/get-code/sourcecode-acquire.md. Signed-off-by: Austin --- .../device-dev/get-code/sourcecode-acquire.md | 88 +------------------ 1 file changed, 1 insertion(+), 87 deletions(-) diff --git a/zh-cn/device-dev/get-code/sourcecode-acquire.md b/zh-cn/device-dev/get-code/sourcecode-acquire.md index 71ce610ea88..873319c0842 100644 --- a/zh-cn/device-dev/get-code/sourcecode-acquire.md +++ b/zh-cn/device-dev/get-code/sourcecode-acquire.md @@ -13,9 +13,8 @@ - [操作步骤](#section954619433333) - [获取方式3:从镜像站点获取](#section1186691118430) - - [源码目录简介](#section1072115612811) - [获取方式4:从github镜像仓库获取(每天UTC时间23点同步)](#section23448418360) - - [源码目录简介](#section1072115612811) +- [源码目录简介](#section1072115612811) ## OpenHarmony介绍 @@ -330,91 +329,6 @@ OpenHarmony是由开放原子开源基金会(OpenAtom Foundation)孵化及 -## 源码目录简介 - -下表是OpenHarmony源码的目录及简单说明: - -**表 2** 源码目录 - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -

目录名

-

描述

-

applications

-

应用程序样例,包括camera等

-

base

-

基础软件服务子系统集&硬件服务子系统集

-

build

-

组件化编译、构建和配置脚本

-

docs

-

说明文档

-

domains

-

增强软件服务子系统集

-

drivers

-

驱动子系统

-

foundation

-

系统基础能力子系统集

-

kernel

-

内核子系统

-

prebuilts

-

编译器及工具链子系统

-

test

-

测试子系统

-

third_party

-

开源第三方组件

-

utils

-

常用的工具集

-

vendor

-

厂商提供的软件

-

build.py

-

编译脚本文件

-
## 获取方式4:从github镜像仓库获取(每天UTC时间23点同步) -- Gitee From d77e1505ff7e9191394e6057e646456032818484 Mon Sep 17 00:00:00 2001 From: Austin Date: Sat, 18 Sep 2021 10:36:24 +0000 Subject: [PATCH 7/8] update zh-cn/device-dev/get-code/sourcecode-acquire.md. Signed-off-by: Austin --- zh-cn/device-dev/get-code/sourcecode-acquire.md | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/zh-cn/device-dev/get-code/sourcecode-acquire.md b/zh-cn/device-dev/get-code/sourcecode-acquire.md index 873319c0842..b2ac56d5222 100644 --- a/zh-cn/device-dev/get-code/sourcecode-acquire.md +++ b/zh-cn/device-dev/get-code/sourcecode-acquire.md @@ -2,7 +2,7 @@ - [OpenHarmony介绍](#section6370143622110) - [源码获取概述](#section12763342204) -- [获取方式1:从代码仓库获取](#section537312010229) +- [获取方式1:从gitee代码仓库获取](#section537312010229) - [适用场景](#section10881513459) - [前提条件](#section102871547153314) - [操作步骤](#section429012478331) @@ -31,7 +31,7 @@ OpenHarmony是由开放原子开源基金会(OpenAtom Foundation)孵化及 - **获取方式3**:从镜像站点下载归档后的发行版压缩文件。如果要获取旧版本的源码,也可通过此方式获取,此方式下载速度较快。 - **获取方式4**:从github代码仓库获取。通过repo或git工具从代码仓库中下载,此方式可获取最新代码。 -## 获取方式1:从代码仓库获取 +## 获取方式1:从gitee代码仓库获取 ### 适用场景 -- Gitee From 6549fde9d3ed4f03438855d441cdd2eaff8b99fe Mon Sep 17 00:00:00 2001 From: Austin Date: Sat, 18 Sep 2021 10:37:08 +0000 Subject: [PATCH 8/8] update zh-cn/device-dev/get-code/sourcecode-acquire.md. Signed-off-by: Austin --- zh-cn/device-dev/get-code/sourcecode-acquire.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/zh-cn/device-dev/get-code/sourcecode-acquire.md b/zh-cn/device-dev/get-code/sourcecode-acquire.md index b2ac56d5222..e3def4f2094 100644 --- a/zh-cn/device-dev/get-code/sourcecode-acquire.md +++ b/zh-cn/device-dev/get-code/sourcecode-acquire.md @@ -26,7 +26,7 @@ OpenHarmony是由开放原子开源基金会(OpenAtom Foundation)孵化及 本文档将介绍如何获取OpenHarmony源码并说明OpenHarmony的源码目录结构。OpenHarmony的代码以[组件](../bundles/oem_bundle_standard_des.md)的形式开放,开发者可以通过如下其中一种方式获取: -- **获取方式1**:从代码仓库获取。通过repo或git工具从代码仓库中下载,此方式可获取最新代码。 +- **获取方式1**:从gitee代码仓库获取。通过repo或git工具从代码仓库中下载,此方式可获取最新代码。 - **获取方式2**:通过HPM包管理器获取。在[HPM](https://hpm.harmonyos.com)网站,查找满足需求的开源发行版,直接下载(或者定制后下载),再通过hpm-cli命令工具将所需的组件及工具链下载、安装到本地。 - **获取方式3**:从镜像站点下载归档后的发行版压缩文件。如果要获取旧版本的源码,也可通过此方式获取,此方式下载速度较快。 - **获取方式4**:从github代码仓库获取。通过repo或git工具从代码仓库中下载,此方式可获取最新代码。 -- Gitee