Above commands creates the following directory structure:
Above commands creates the following directory structure:
.. code-block:: console
.. code-block:: console
./ohos/
./ohos/
└── sources
└── sources
...
@@ -43,128 +44,156 @@ Building and Running OpenHarmony image
...
@@ -43,128 +44,156 @@ Building and Running OpenHarmony image
├── meta-ohos
├── meta-ohos
├── meta-openembedded
├── meta-openembedded
├── meta-zephyr
├── meta-zephyr
├── <various yocto layers>
└── poky
└── poky
2. Build OHOS flavour of your choice. Currently OpenHarmony supports Linux, Zephyr, and FreeRTOS.
OpenHarmony can be hosted on top of variety of kernels. Currently supported kernels (a.k.a. OHOS flavours) are Linux, Zephyr, and FreeRTOS (experimental).
* **OHOS Linux flavour**
To build OHOS flavour, use the following command syntax:
Default Linux distro is poky-tiny. You can choose any of the following machines (default is qemux86):
* qemux86
* qemux86-64
* qemuarm
* qemuarmv5
To build Linux-based OHOS, execute following commands:
`zephyr-philosophers` is one of the sample applications available in meta-zephyr layer by Yocto project. It's easy to build other samples using recipes available in `meta-zephyr/recipes-kernel/zephyr-kernel/` directory.
* **OHOS FreeRTOS flavour**
For FreeRTOS you can choose any of the following machines:
* qemuarmv5
To build FreeRTOS-based OHOS, execute following commands: