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

openharmony-standard-image: New recipe for trying out OH components


This provides an image which can be used with e.g. QEMU to try out the
OpenHarmony components build with openharmony-standard recipe.

Signed-off-by: default avatarEsben Haabendal <esben.haabendal@huawei.com>
parent 1c66a319
No related branches found
No related tags found
1 merge request!1Initial code import
...@@ -68,6 +68,13 @@ You can run these commands to do this: ...@@ -68,6 +68,13 @@ You can run these commands to do this:
repo init -u https://gitlab.eclipse.org/eclipse/oniro-core/meta-openharmony.git -b kirkstone repo init -u https://gitlab.eclipse.org/eclipse/oniro-core/meta-openharmony.git -b kirkstone
repo sync --no-clone-bundle repo sync --no-clone-bundle
## QEMU example image
The meta-openharmony provides an example image recipe which can be used for
quickly building and running OpenHarmony code in QEMU ARM simulator.
See [recipes-openharmony/images/README.md](recipes-openharmony/images/README.md)
for more information.
## OpenHarmony prebuilts ## OpenHarmony prebuilts
......
<!--
SPDX-FileCopyrightText: Huawei Inc.
SPDX-License-Identifier: CC-BY-4.0
-->
# QEMU example image
The `openharmony-standard-image` recipe provides an easy way to build and run
OpenHarmony components. You can build the image for QEMU and run it using the
following in your `build/conf/local.conf` file:
DISTRO = "oniro-openharmony-linux"
MACHINE = "qemuarma7"
To build the image, run:
bitbake openharmony-standard-image
To run it, run the this commands after successfully completing the above build command:
runqemu serialstdio nographic
# SPDX-FileCopyrightText: Huawei Inc.
#
# SPDX-License-Identifier: Apache-2.0
SUMMARY = "A console-only image with OpenHarmony first party components"
IMAGE_FEATURES += "splash"
LICENSE = "Apache-2.0"
inherit core-image
QEMU_USE_SLIRP = "1"
# debug-tweaks provides password-less root account required by testimage
EXTRA_IMAGE_FEATURES += "debug-tweaks"
# ptest requires ptest-runner and sshd to be present in the image
IMAGE_INSTALL += "sshd"
# install OpenHarmony components and ptests
IMAGE_INSTALL += "openharmony-standard-exes"
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