From 4c22a3947507288c35af4bb4538225ed48a05e80 Mon Sep 17 00:00:00 2001 From: ARUL DEVARAJAN <arulkumaran.devarajan@huawei.com> Date: Thu, 11 Mar 2021 15:37:10 +0000 Subject: [PATCH] Update build-open-harmony.rst for Issues #15 #16 and #17 --- quick-start/build-open-harmony.rst | 19 +++++++++++++++---- 1 file changed, 15 insertions(+), 4 deletions(-) diff --git a/quick-start/build-open-harmony.rst b/quick-start/build-open-harmony.rst index 6e611c4..be64ec5 100644 --- a/quick-start/build-open-harmony.rst +++ b/quick-start/build-open-harmony.rst @@ -21,6 +21,16 @@ This topic provides an overview of meta-ohos architecture, tools, and source cod .. _downloading-tools: +Prerequisites +************* +* All the bitbake commands must be executed in your localhost as a normal user instead of a root user. +* Install the following build dependencies packages for bitbake: + + * chrpath + * gawk +* Install Python latest version +* Install **Ubuntu 20.04 LTS** version + Downloading Tools ***************** @@ -54,7 +64,7 @@ If you are a developer and wants to contribute to OHOS, then clone the ‘develo .. code-block:: console $ mkdir ohos; cd ohos - $ repo init -u https://git.ostc-eu.org/OSTC/manifest.git -b develop + $ repo init -u https://git.ostc-eu.org/OSTC/manifest.git -b develop -m develop.xml $ repo sync The preceding commands creates the following directory structure (layers): @@ -104,6 +114,7 @@ You can use the following syntax to build the OHOS flavour of your choice. $ bitbake <image-name> .. Note:: + MACHINE variable can be set up in *conf/local.conf* file under build directory or via command line: **Example:** @@ -176,19 +187,19 @@ OHOS Linux flavour is based on `poky` distribution. Current version supports the .. code-block:: console - qemux86-64 login: + $ qemux86-64 login: The default login as root without a password. After login you should see the following prompt: .. code-block:: console - root@qemux86-64:~# + $ root@qemux86-64:~# To exit qemu, you can either shut down the system: .. code-block:: console - root@qemux86:~# poweroff -f + $ root@qemux86:~# poweroff -f or close qemu using key combination: -- GitLab