Skip to content
Snippets Groups Projects
Commit f6e73f27 authored by Esben Haabendal's avatar Esben Haabendal
Browse files

docs: Add OpenHarmony instructions to quick build section


Signed-off-by: default avatarEsben Haabendal <esben.haabendal@huawei.com>
parent 9429b899
No related branches found
No related tags found
1 merge request!198docs: Add OpenHarmony documentation
......@@ -55,6 +55,8 @@ Initialize a repo workspace and clone all required repositories:
$ repo init -u https://gitlab.eclipse.org/eclipse/oniro-core/oniro.git -b kirkstone
$ repo sync --no-clone-bundle
.. _Building an Oniro image:
Building an Oniro image
***********************
......@@ -77,6 +79,28 @@ Initialize the build directory and run a build:
$ TEMPLATECONF=../oniro/flavours/linux . ./oe-core/oe-init-build-env build-oniro-linux
$ MACHINE=qemux86-64 bitbake oniro-image-base
.. _Building with OpenHarmony:
Building with OpenHarmony compatibility
***************************************
To enable OpenHarmony compatibility, before running the last `bitbake` command
in the section above, you have to add the following to
`build-oniro-linux/conf/local.conf` file:
.. code-block:: sh
TOOLCHAIN="clang"
RUNTIME="llvm"
DISTRO_FEATURES:append = " openharmony"
IMAGE_INSTALL:append = " openharmony-standard"
This will enable OpenHarmony features and add OpenHarmony Standard System
features to the `oniro-image-base` image.
With that in place, the image can be built with the instructions in the
:ref:`Building an Oniro image <Building an Oniro image>` section above.
Booting a Qemu X86-64 Target with a |main_project_name| image
*************************************************************
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment