Newer
Older
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
.. 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.