Something went wrong on our end
-
Andrei Gherzan authored
Signed-off-by:
Andrei Gherzan <andrei.gherzan@huawei.com>
Andrei Gherzan authoredSigned-off-by:
Andrei Gherzan <andrei.gherzan@huawei.com>
Code owners
Assign users and groups as approvers for specific file changes. Learn more.
qemuarm.rst 1.60 KiB
Qemu ARM
Overview
OpenHarmony supports running the software stack into an virtual invironment using Qemu.
Building OHOS image
To clone the source code, perform the procedure in: :ref:`Setting up a repo workspace <RepoWorkspace>`.
Building a Linux image
Supported images
Image Name | Description |
---|---|
openharmony-image-base | OpenHarmony image including the base OS software stack |
openharmony-image-extra | OpenHarmony Wayland image including the base OS software stack |
Build steps
- Source the environment with proper template settings, flavour being linux and target machine being qemuarm. Pay attention to how relative paths are constructed. The value of TEMPLATECONF is relative to the location of the build directory ./build-ohos-linux, that is going to be created after this step:
$ TEMPLATECONF=../sources/meta-ohos/flavours/linux . ./sources/poky/oe-init-build-env build-ohos-linux
- You will find yourself in the newly created build directory. Call bitbake to build the image. For example, if you are using openharmony-image-base run the following command:
$ MACHINE=qemuarm bitbake openharmony-image-base
Once the image is done, you can run the Qemu usin the provided script wrapper:
$ MACHINE=qemuarm runqemu