1.1K Star 6.1K Fork 4.9K

OpenHarmony / docs

加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
克隆/下载
quickstart-pkg-3516-build.md 2.19 KB
一键复制 编辑 原始数据 按行查看 历史

Building Source Code

You can build source code with hb or the build.sh script. This topic describes how to build source code with hb. For details about how to use the build.sh script, see Building Source Code Using the build.sh Script.

For details about the functions of the OpenHarmony compilation and building module, see Compilation and Building Guide.

Prerequisites

Procedure

Go to the root directory of the source code and run the build command.

  1. Set the build path.

    hb set
  2. Select the current path.

    .
  3. Select ipcamera_hispark_taurus under hisilicon and press Enter.

    icon-note.gif NOTE

    When adapting the development board to a specific use case, select an appropriate build form factor, that is, product settings. For details, see Build Form Factors.

    Figure 1 Hi3516 build settings

    quickstart-lite-3516-build

  4. Start building.

    icon-note.gif NOTE

    • To build a component (for example, hello), run the hb build -T targetName command.

    • To build a product incrementally, run the hb build command.

    • To build a product from the scratch, run the hb build -f command.

    This example builds a product from the scratch.

    hb build -f
  5. Check the build result. If "build success" is displayed, the building is successful.

    icon-notice.gif NOTICE

    Paths to burning-related files:

    • Build result and log files: out/hispark_taurus/ipcamera_hispark_taurus

    • U-Boot file: device/board/hisilicon/hispark_taurus/uboot/out/boot/u-boot-hi3516dv300.bin

其他
1
https://gitee.com/openharmony/docs.git
git@gitee.com:openharmony/docs.git
openharmony
docs
docs
master

搜索帮助