• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1# Reference
2
3
4## Using the build.sh Script to Build Source Code
5
6
71. Go to the root directory of the source code and run the build command.
8
9   ```
10   ./build.sh --product-name name --ccache
11   ```
12
13   > ![icon-note.gif](public_sys-resources/icon-note.gif) **NOTE**
14   > _name_ indicates the product name, for example, **hispark_taurus_standard** and **rk3568**.
15
162. Check the build result. After the build is complete, the following information is displayed in the log:
17
18   ```
19   post_process
20   =====build name successful.
21   ```
22
23     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.
24   > ![icon-note.gif](public_sys-resources/icon-note.gif) **NOTE**
25   > For details about other modular compilation operations, see [Building a Standard System](../subsystems/subsys-build-standard-large.md).
26
27
28## Configuring the Proxy
29
30
31### Setting Up the Python Proxy
32
331. Create a proxy configuration file.
34
35   ```
36   mkdir ~/.pipvim ~/.pip/pip.conf
37   ```
38
392. Add the following proxy information to the file, save the file, and exit:
40
41   ```
42   [global]
43   index-url = http:// Proxy URL
44   trusted-host = Trusted image path
45   timeout = 120
46   ```
47
48
49### Setting Up the npm Proxy<a name="section6204129143012"></a>
50
511. Create a proxy configuration file.
52
53   ```
54   vim ~/.npmrc
55   ```
56
572. Add the following proxy information to the file, save the file, and exit:
58
59   ```
60   Registry=http:// Proxy URL
61   strict-ssl=false
62   ```
63
643. Add the following content to the **.bashrc** file, save the file, and exit:
65
66   ```
67   export NPM_REGISTRY=http:// Proxy URL
68   source .bashrc
69   ```
70