From c29c77fe6ab094c0b5e11cbd99ecab2af39ac87b Mon Sep 17 00:00:00 2001 From: shawn_he Date: Fri, 17 Jun 2022 17:56:03 +0800 Subject: [PATCH] update doc Signed-off-by: shawn_he --- en/device-dev/get-code/sourcecode-acquire.md | 211 ++++--------------- 1 file changed, 37 insertions(+), 174 deletions(-) diff --git a/en/device-dev/get-code/sourcecode-acquire.md b/en/device-dev/get-code/sourcecode-acquire.md index 8445f27cc9..4d41f24905 100644 --- a/en/device-dev/get-code/sourcecode-acquire.md +++ b/en/device-dev/get-code/sourcecode-acquire.md @@ -42,19 +42,30 @@ You can use any of the following methods to acquire the OpenHarmony source code: git config --global credential.helper store ``` -4. Run the following commands to install the **repo** tool: +4. Run the following commands to install the **repo** tool: - ``` - curl https://gitee.com/oschina/repo/raw/fork_flow/repo-py3 -o /usr/local/bin/repo # If you do not have the access permission to this directory, download the tool to any other accessible directory and configure the directory to the environment variable. - chmod a+x /usr/local/bin/repo - pip3 install -i https://repo.huaweicloud.com/repository/pypi/simple requests - ``` + In this example, **~/bin** is used as an example installation directory. You can change the directory as needed. + + ``` + mkdir ~/bin + curl https://gitee.com/oschina/repo/raw/fork_flow/repo-py3 -o ~/bin/repo + chmod a+x ~/bin/repo + pip3 install -i https://repo.huaweicloud.com/repository/pypi/simple requests + ``` + +5. Add the path of the **repo** tool to environment variables. + + ``` + vim ~/.bashrc # Edit environment variables. + export PATH=~/bin:$PATH # Add the path of the **repo** tool to the end of environment variables. + source ~/.bashrc # Apply environment variables. + ``` ### How to Use ->![](../public_sys-resources/icon-note.gif) **NOTE**
+>![](../public_sys-resources/icon-note.gif) **NOTE** >Download the master code if you want to get quick access to the latest features for your development. Download the release code, which is more stable, if you want to develop commercial functionalities. - **Obtaining OpenHarmony master code** @@ -160,176 +171,28 @@ The table below provides only the sites for downloading the latest OpenHarmony L **Table 1** Sites for acquiring source code - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -

LTS Code

-

Version Information

-

Site

-

SHA-256 Verification Code

-

Full code base (for mini, small, and standard systems)

-

3.0

-

Download

-

Download

-

Standard system solution (binary)

-

3.0

-

Download

-

Download

-

Hi3861 solution (binary)

-

3.0

-

Download

-

Download

-

Hi3518 solution (binary)

-

3.0

-

Download

-

Download

-

Hi3516 solution-LiteOS (binary)

-

3.0

-

Download

-

Download

-

Hi3516 solution-Linux (binary)

-

3.0

-

Download

-

Download

-

RELEASE-NOTES

-

3.0

-

Download

-

-

-

Latest Release Code

-

Version Information

-

Site

-

SHA-256 Verification Code

-

Full code base (for mini, small, and standard systems)

-

3.1 Release

-

Download

-

Download

-

Hi3516 standard system solution (binary)

-

3.1 Release

-

Download

-

Download

-

RK3568 standard system solution (binary)

-

3.1 Release

-

Download

-

Download

-

Hi3861 solution (binary)

-

3.1 Release

-

Download

-

Download

-

Hi3516 solution-LiteOS (binary)

-

3.1 Release

-

Download

-

Download

-

Hi3516 solution-Linux (binary)

-

3.1 Release

-

Download

-

Download

-

RELEASE-NOTES

-

3.1 Release

-

Download

-

-

-

Compiler Toolchain

-

Version Information

-

Site

-

SHA-256 Verification Code

-

Compiler toolchain

-

-

-

Download

-

-

-
+| **LTS Code**| **Version Information**| **Site**| **SHA-256 Verification Code**| +| -------- | -------- | -------- | -------- | +| Full code base (for mini, small, and standard systems)| 3.0 | [Download](https://repo.huaweicloud.com/openharmony/os/3.0/code-v3.0-LTS.tar.gz) | [Download](https://repo.huaweicloud.com/openharmony/os/3.0/code-v3.0-LTS.tar.gz.sha256)| +| Standard system solution (binary)| 3.0 | [Download](https://repo.huaweicloud.com/openharmony/os/3.0/standard.tar.gz)| [Download](https://repo.huaweicloud.com/openharmony/os/3.0/standard.tar.gz.sha256)| +| Hi3861 solution (binary)| 3.0 | [Download](https://repo.huaweicloud.com/openharmony/os/3.0/hispark_pegasus.tar.gz)| [Download](https://repo.huaweicloud.com/openharmony/os/3.0/hispark_pegasus.tar.gz.sha256)| +| Hi3518 solution (binary)| 3.0 | [Download](https://repo.huaweicloud.com/openharmony/os/3.0/hispark_aries.tar.gz)| [Download](https://repo.huaweicloud.com/openharmony/os/3.0/hispark_aries.tar.gz.sha256)| +| Hi3516 solution-LiteOS (binary)| 3.0 | [Download](https://repo.huaweicloud.com/openharmony/os/3.0/hispark_taurus.tar.gz) | [Download](https://repo.huaweicloud.com/openharmony/os/3.0/hispark_taurus.tar.gz)| +| Hi3516 solution-Linux (binary)| 3.0 | [Download](https://repo.huaweicloud.com/openharmony/os/3.0/hispark_taurus_linux.tar.gz)| [Download](https://repo.huaweicloud.com/openharmony/os/3.0/hispark_taurus_linux.tar.gz.sha256) | +| RELEASE-NOTES | 3.0 | [Download](https://gitee.com/openharmony/docs/blob/OpenHarmony-3.0-LTS/en/release-notes/OpenHarmony-v3.0-LTS.md)| - | +| **Source code of the Latest Release**| **Version Information**| **Site**| **SHA-256 Verification Code**| +| Full code base (for mini, small, and standard systems)| 3.2 Beta1 | [Download](https://repo.huaweicloud.com/openharmony/os/3.2-Beta1/code-v3.2-Beta1.tar.gz)| [Download](https://repo.huaweicloud.com/openharmony/os/3.2-Beta1/code-v3.2-Beta1.tar.gz.sha256)| +| RK3568 standard system solution (binary)| 3.2 Beta1 | [Download](https://repo.huaweicloud.com/openharmony/os/3.2-Beta1/standard_rk3568.tar.gz)| [Download](https://repo.huaweicloud.com/openharmony/os/3.1.1/standard_rk3568.tar.gz.sha256)| +| Hi3861 solution (binary)| 3.2 Beta1 | [Download](https://repo.huaweicloud.com/openharmony/os/3.2-Beta1/hispark_pegasus.tar.gz)| [Download](https://repo.huaweicloud.com/openharmony/os/3.2-Beta1/hispark_pegasus.tar.gz.sha256) | +| Hi3516 solution-LiteOS (binary)| 3.2 Beta1 | [Download](https://repo.huaweicloud.com/openharmony/os/3.2-Beta1/hispark_taurus.tar.gz)| [Download](https://repo.huaweicloud.com/openharmony/os/3.2-Beta1/hispark_taurus.tar.gz.sha256)| +| Hi3516 solution-Linux (binary)| 3.2 Beta1 | [Download](https://repo.huaweicloud.com/openharmony/os/3.2-Beta1/hispark_taurus_linux.tar.gz)| [Download](https://repo.huaweicloud.com/openharmony/os/3.2-Beta1/hispark_taurus_linux.tar.gz.sha256)| +| RELEASE-NOTES | 3.2 Beta1 | [Download](https://gitee.com/openharmony/docs/blob/master/en/release-notes/OpenHarmony-v3.2-beta1.md)| - | +| **Compiler Toolchain**| **Version Information**| **Site**| **SHA-256 Verification Code**| +| Compiler toolchain| - | [Download](https://repo.huaweicloud.com/openharmony/os/2.0/tool_chain/)| - | ## Method 4: Acquiring Source Code from the GitHub Image Repository ->![](../public_sys-resources/icon-note.gif) **NOTE**
+>![](../public_sys-resources/icon-note.gif) **NOTE** > The image repository is synchronized at 23:00 (UTC +8:00) every day. Method 1 \(recommended\): Use the **repo** tool to download the source code over SSH. \(You must have registered an SSH public key for access to GitHub. For details, see [Adding a new SSH key to your GitHub account](https://docs.github.com/en/github/authenticating-to-github/connecting-to-github-with-ssh/adding-a-new-ssh-key-to-your-github-account).\) -- GitLab