Skip to content
Snippets Groups Projects

Various docs fixes and clarifications

Merged Andrei Gherzan requested to merge agherzan/meta-openharmony:ag/docs into kirkstone
1 file
+ 26
21
Compare changes
  • Side-by-side
  • Inline
@@ -35,8 +35,12 @@ OpenSource toolchain and third-party components with newer Oniro versions.
@@ -35,8 +35,12 @@ OpenSource toolchain and third-party components with newer Oniro versions.
Building
Building
********
********
To build `oniro-openharmony-bundle` for OpenHarmony 3.0.1, the `bitbake` command
To build `oniro-openharmony-bundle` for OpenHarmony 3.0.1, an initialized build
is simply::
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 oniro-openharmony-bundle
DISTRO=oniro-openharmony-linux MACHINE=qemuarma7 bitbake oniro-openharmony-bundle
@@ -62,29 +66,30 @@ Warning! It is recommended to only install OpenHarmony prebuilts to clean
@@ -62,29 +66,30 @@ Warning! It is recommended to only install OpenHarmony prebuilts to clean
upstream OpenHarmony source repsitories, as the installation will remove files
upstream OpenHarmony source repsitories, as the installation will remove files
and entire git repositories!
and entire git repositories!
To install the `oniro-openharmony-bundle` to a clean OpenHarmony 3.0.1
Firstly, you need to download an OpenHarmony archive. As an example, the next
repository, you should do something like this::
steps will use OpenHarmony 3.0.1. You are to download this archive from
 
https://repo.huaweicloud.com/harmonyos/os/3.0.1/code-v3.0.1-LTS.tar.gz and
 
dearchive it:
tar xfz $DOWNLOADS/code-v3.0.1-LTS.tar.gz
.. code-block:: console
cd code-v3.0.1-LTS/OpenHarmony
$DOWNLOADS/oniro-openharmony-bundle-3.0-cortexa7-neon-vfpv4-1.99.99.sh -y -d oniro
./oniro/setup.sh
After this, you can use normal OpenHarmony build system procedures to build as
$ tar xfz $DOWNLOADS/code-v3.0.1-LTS.tar.gz
usual. To build image for HiSilicon Hi3516DV300 (taurus) board::
./build.sh --product-name Hi3516DV300
Note that the `$DOWNLOADS` variable needs to point to the location where the
 
archive resides.
 
To install the `oniro-openharmony-bundle` to a clean OpenHarmony 3.0.1
 
repository, you should do something like this:
 
 
.. code-block:: console
Use inside BitBake
$ cd code-v3.0.1-LTS/OpenHarmony
******************
$ $DOWNLOADS/oniro-openharmony-bundle-3.0-cortexa7-neon-vfpv4-1.99.99.sh -y -d oniro
 
$ ./oniro/setup.sh
 
 
After this, you can use normal OpenHarmony build system procedures to build as
 
usual. To build image for HiSilicon Hi3516DV300 (taurus) board:
**meta-openharmony** is a bitbake layer, containing recipes for building
.. code-block:: console
OpenHarmony software components.
The meta-openharmony layer enables building of prebuilts for use with the
$ ./build.sh --product-name Hi3516DV300
OpenHarmony build system. A toolchain-only image, making it possible to use the
Oniro Clang version instead of the default Clang version included, and a bundle
image which contains both the Oniro Clang compiler and Oniro versions of various
third-party components, replacing the corresponding default third-party
versions.
Loading