Skip to content
Snippets Groups Projects
Commit 92c993c3 authored by Luca Seritan's avatar Luca Seritan
Browse files

docs: Add docs for qemuarm64 build

In order to have qemu arm support, add information on how to build and
run a base image for qemuarm64

Related-to eclipse/oniro-core/docs#126



Signed-off-by: default avatarLuca Seritan <luca.seritan@huawei.com>
parent f6e73f27
No related branches found
No related tags found
No related merge requests found
Pipeline #6423 failed
.. SPDX-FileCopyrightText: Huawei Inc.
..
.. SPDX-License-Identifier: CC-BY-4.0
.. include:: ../../definitions.rst
Qemu arm64
##########
.. contents::
:depth: 4
Overview
********
|main_project_name| supports running the software stack into an virtual environment using Qemu.
Building an Oniro image
=======================
To clone the source code, perform the procedure in: :ref:`Setting up a repo workspace <RepoWorkspace>`.
Building a Linux image
======================
Build Steps
-----------
1. Source the environment with proper template settings, flavour being *linux*
and target machine being *qemuarm64*. Pay attention to how relative paths are
constructed. The value of *TEMPLATECONF* is relative to the location of the
build directory *./build-oniro-linux*, that is going to be created after
this step:
.. code-block:: console
$ TEMPLATECONF=../oniro/flavours/linux . ./oe-core/oe-init-build-env build-oniro-linux
2. You will find yourself in the newly created build directory. Call *bitbake*
to build the image. For example, if you are using *oniro-image-base*
run the following command:
.. code-block:: console
$ MACHINE=qemuarm64 bitbake oniro-image-base
Once the image is done, you can run the Qemu using the provided script wrapper:
.. code-block:: console
$ MACHINE=qemuarm64 runqemu oniro-image-base ext4 slirp
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