harmony(鸿蒙)Reference

  • 2022-08-09
  • 浏览 (566)

Reference

Using the build.sh Script to Build Source Code

  1. Go to the root directory of the source code and run the build command.
   ./build.sh --product-name name --ccache

icon-note.gif NOTE

name indicates the product name, for example, Hi3516DV300 and rk3568.

  1. Check the build result. After the build is complete, the following information is displayed in the log:
   post_process
   =====build name successful.

Files generated during the build are stored in the out/{device_name}/ directory, and the generated image is stored in the out/{device_name}/packages/phone/images/ directory. > icon-note.gif NOTE > > For details about other modular compilation operations, see Compilation and Building Guide.

Configuring the Proxy

Setting Up the Python Proxy

  1. Create a proxy configuration file.
   mkdir ~/.pipvim ~/.pip/pip.conf
  1. Add the following proxy information to the file, save the file, and exit:
   [global]
   index-url = http:// Proxy URL
   trusted-host = Trusted image path
   timeout = 120

Setting Up the npm Proxy

  1. Create a proxy configuration file.
   vim ~/.npmrc
  1. Add the following proxy information to the file, save the file, and exit:
   Registry=http:// Proxy URL
   strict-ssl=false
  1. Add the following content to the .bashrc file, save the file, and exit:
   export NPM_REGISTRY=http:// Proxy URL
   source .bashrc

你可能感兴趣的鸿蒙文章

harmony(鸿蒙)Getting Started

harmony(鸿蒙)Overall Description of Compilation Form Factors

harmony(鸿蒙)Importing a Source Code Project

harmony(鸿蒙)Setting Up the Windows+Ubuntu Hybrid Development Environment

harmony(鸿蒙)Introduction to the Hi3516 Development Board

harmony(鸿蒙)Introduction to the Hi3861 Development Board

harmony(鸿蒙)Mini and Small System Overview

harmony(鸿蒙)Obtaining Source Code

harmony(鸿蒙)Building

harmony(鸿蒙)Burning

0  赞