Skip to content
Snippets Groups Projects
README.rst 1.33 KiB
Newer Older
.. SPDX-FileCopyrightText: Huawei Inc.
..
.. SPDX-License-Identifier: CC-BY-4.0

.. _OpenHarmony SDK:

OpenHarmony Tools
#################

OpenHarmony provides a number of dedicated host tools for working with
OpenHarmony systems.

The `openharmony-tools` recipe bundles up these tools for easy installation of these on a Linux host OS.


Building
********

To build `openharmony-tools` for OpenHarmony 3.0.1, an initialized build
environment is required::

    TEMPLATECONF=../meta-openharmony/conf source oe-core/oe-init-build-env

Once that is in place, the `bitbake` command is simply::

    DISTRO=oniro-openharmony-linux MACHINE=qemuarma7 bitbake openharmony-tools


Installation
************

To install the tools on a Linux host OS, you need to use the shell script
installer.  To install into /opt/openharmony-tools do something like this:

.. code-block:: console

    $ ./openharmony-tools-3.0-cortexa7-neon-vfpv4-1.99.99.sh -y -d /opt/openharmony-tools

As the installation above will explain, in order to use the tools you need to do the following:

In order to use the installed tools, you need to setup your shell environment
(this needs to be done each time you create a new shell):

.. code-block:: console

    $ . /opt/openharmony-tools/environment-setup-x86_64-oesdk-linux

And with that, you will have access to `hdc` and `xdevice` commands.