2. Go to the root directory of OpenHarmony code and run the following command to access the Docker build environment:
2. Go to the root directory of OpenHarmony code and run the following command to access the Docker build environment:
...
@@ -212,21 +213,15 @@ hb set
...
@@ -212,21 +213,15 @@ hb set
### Building for Standard-System Devices \(reference memory ≥ 128 MB\)<a name="section193711513406"></a>
### Building for Standard-System Devices \(reference memory ≥ 128 MB\)<a name="section193711513406"></a>
1. Run the preprocessing script in the root directory of the source code.
Run the following script to start building for standard-system devices \(reference memory ≥ 128 MB\).
```
../scripts/prepare.sh
```
2. Run the following script to start building for standard-system devices \(reference memory ≥ 128 MB\).
```
```
./build.sh --product-name {product_name}
./build.sh --product-name {product_name}
```
```
**product\_name** indicates the platform supported by the current distribution, for example, Hi3516D V300.
**product\_name** indicates the platform supported by the current distribution, for example, Hi3516D V300.
Files generated during building are stored in the **out/ohos-arm-release/** directory, and the generated image is stored in the **out/ohos-arm-release/packages/phone/images/** directory.
Files generated during building are stored in the **out/ohos-arm-release/** directory, and the generated image is stored in the **out/ohos-arm-release/packages/phone/images/** directory.
2. Go to the root directory of OpenHarmony code and run the following command to access the Docker build environment:
2. Go to the root directory of OpenHarmony code and run the following command to access the Docker build environment:
```
```
docker run -it -v $(pwd):/home/openharmony swr.cn-south-1.myhuaweicloud.com/openharmony-docker/openharmony-docker-standard:0.0.3
docker run -it -v $(pwd):/home/openharmony swr.cn-south-1.myhuaweicloud.com/openharmony-docker/openharmony-docker-standard:0.0.4
```
```
...
@@ -89,27 +91,21 @@ repo forall -c 'git lfs pull'
...
@@ -89,27 +91,21 @@ repo forall -c 'git lfs pull'
3. Go to the root directory of OpenHarmony code and run the following command to access the Docker build environment:
3. Go to the root directory of OpenHarmony code and run the following command to access the Docker build environment:
```
```
docker run -it -v $(pwd):/home/openharmony openharmony-docker-standard:0.0.3
docker run -it -v $(pwd):/home/openharmony openharmony-docker-standard:0.0.4
```
```
## Building Source Code<a name="section92391739152318"></a>
## Building Source Code<a name="section92391739152318"></a>
1. Run the preprocessing script in the root directory of the source code.
1.Run the following script to start building for Standard-System Devices \(reference memory ≥ 128 MB\):
```
```
../scripts/prepare.sh
./build.sh --product-name {product_name}
```
```
2. Run the following script to start building for Standard-System Devices \(reference memory ≥ 128 MB\):
```
./build.sh --product-name {product_name}
```
**product\_name** indicates the product supported by the current distribution, for example, **Hi3516DV300**.
**product\_name** indicates the product supported by the current distribution, for example, **Hi3516DV300**.
Files generated during the build are stored in the **out/ohos-arm-release/** directory, and the generated image is stored in the **out/ohos-arm-release/packages/phone/images/** directory.
Files generated during the build are stored in the **out/ohos-arm-release/** directory, and the generated image is stored in the **out/ohos-arm-release/packages/phone/images/** directory.
3. Burn the image. For details, see [Burning Images](quickstart-standard-burn.md).
3. Burn the image. For details, see [Burning Images](quickstart-standard-burn.md).