Lines Matching refs:build
5 …on and Building subsystem provides a build framework based on Generate Ninja (GN) and Ninja. It ab…
8 - Supports version builds for mini, small, and standard systems and build of the software developme…
9 - Supports customization and independent build based on different chipset solutions.
13 This guide is applicable to mini, small, and standard systems. The [Chipset Solution](subsys-build-…
34 … unit that contains source code, configuration files, resource files, and build scripts. It can be…
38 A module is a target to build. A component can also be a target to build.
50 Ninja is a small high-speed build system.
54 hb is an OpenHarmony command line tool used to execute build commands.
68 - A module is a target to build, and a component can also be a target to build.
72 …mponent, and module can be built, but a subsystem cannot. The figure below shows the build process.
78 1. Run **hb set** to set the product to build.
80 2. Use **hb build** to build a product, development board, or component.
84 …the development board selected. The file contains the build toolchain, linking commands, and build…
86 3. Run **ninja -C out/board/product** to start the build.
95 You must install the software packages required for build. The command is as follows:
99 ./build/build_scripts/env_setup.sh
107 …apt-get install -y apt-utils binutils bison flex bc build-essential make mtd-utils gcc-arm-linux-g…
110 …lled for Python. You can obtain the repo file from the source code of the build environment you us…
112 …ypi/simple requests setuptools pymongo kconfiglib pycryptodome ecdsa ohos-build pyyaml prompt_tool…
127 …>The hb tool will be installed during the installation of **ohos-build**. If hb tool fails to be i…
134 - [Product Configuration Rules](subsys-build-product.md#configuration-rules)
135 - [Subsystem Configuration Rules](subsys-build-subsystem.md#configuration-rules)
136 - [Component Configuration Rules](subsys-build-component.md#configuration-rules)
137 - [Module Configuration Rules](subsys-build-module.md#configuration-rules)
138 - [Rust Module Configuration Rules](subsys-build-rust-compilation.md#configuration-rules)
139 - [Chipset Solution Configuration Rules](subsys-build-chip_solution.md#configuration-rules)
140 - [Feature Configuration Rules](subsys-build-feature.md#configuration-rules)
141 - [System Capability Configuration Rules](subsys-build-syscap.md)
149 /build # Directory for build
152 ├── build_scripts/ # Python scripts for build
162 ├── ohos # Configuration of OpenHarmony build and packaging
163 │ ├── kits # Kits build and packaging templates and processing
178 ├── templates/ # C/C++ build templates
194 bash build/prebuilts_download.sh
197 Then, run the build commands in command line (CLI) mode or hb mode.
201 … - Run the following command in the root directory of the source code to build a full distribution:
206 ./build.sh --product-name {product_name}
212 ./build.sh --product-name {product_name} --gn-args is_debug=true
217 …build for the debug version may fail to be burnt. You are advised to build the binary file for eac…
220 > ./build.sh --product-name {product_name} --gn-args is_debug=true --build-target {target_name}
227 - The **./build.sh** command supports the following options:
236 -T BUILD_TARGET, --build-target=BUILD_TARGET # Specify one or more targets to build.
243 --build-only-gn # Perform GN parsing and do not run Ninja.
244 …--ccache # (Optional) Use ccache for build. You need to in…
246 …--log-level=LOG_LEVEL # Specify the log level used in the build process…
248 …--build-variant=BUILD_VARIANT #Specify the device operation mode. The default v…
255 …**hb** is an OpenHarmony command line tool for executing build commands. Common hb commands are de…
259 Sets the product to build.
276 - You can run **hb set -p** to set the product to build.
296 **hb build**
301 hb build -h
302 …usage: hb build [-h] [-b BUILD_TYPE] [-c COMPILER] [-t [TEST [TEST ...]]] [-cpu TARGET_CPU] [--dmv…
304 …[--gn-args GN_ARGS] [--keep-ninja-going] [--build-only-gn] [--log-level LOG_LEVEL] [--fast-rebuild]
305 [--device-type DEVICE_TYPE] [--build-variant BUILD_VARIANT]
324 build a specified product with {product_name}@{company}
333 …--compact-mode compatible with standard build system set to false if we use build.sh as bui…
334 … --gn-args GN_ARGS specifies gn build arguments, eg: --gn-args="foo="bar" enable=true blah=7"
336 --build-only-gn only do gn parse, do not run ninja
343 --build-variant BUILD_VARIANT
347 …build** with no argument, the previously configured code directory, product, and options are used …
349 …build** *{component_name}* to build product components separately based on the development board a…
351 …- You can run **hb build -p ipcamera@hisilicon** to skip the setting step and build the product di…
353 …- You can run **hb build** in **device/board/device_company** to select the kernel and build an im…
359 …Deletes all the files except **args.gn** and **build.log** in the **out** directory (default). To …
374 …> - For details about how to set up the build environment and perform the build, see the related t…
375 …> - OpenHarmony also provides the Docker environment, which spares the installation of the build t…
379 You can add and build a product, component, chipset solution, and module. For details, see:
381 - [Adding and Building a Product](subsys-build-product.md#adding-and-building-a-product)
382 - [Adding and Building a Component](subsys-build-component.md#adding-and-building-a-component)
383 - [Adding and Building a Module](subsys-build-module.md#adding-and-building-a-module)
384 - [Adding and Building a Chipset Solution](subsys-build-chip_solution.md#adding-and-building-a-chip…
388 - [Common Build Problems and Solutions](subsys-build-FAQ.md)
392 - [deps and external_deps](subsys-build-reference.md#deps-and-external_deps)
393 - [Using Sanitizer](subsys-build-reference.md#using-sanitizer)
394 - [Information Collected by the Open Source Software Notice](subsys-build-reference.md#information-…
395 …arameters for Accelerating Local Build](subsys-build-reference.md#parameters-for-accelerating-loca…
396 - [Viewing Ninja Build Information](subsys-build-reference.md#viewing-ninja-build-information)
397 - [Customizing the chip_prod Image](subsys-build-reference.md#customizing-the-chip_prod-image)