From d8d012b8aefe9c3174fef6f9f16b29c158220e8b Mon Sep 17 00:00:00 2001 From: Khem Raj Date: Fri, 16 Mar 2018 17:46:11 -0700 Subject: [PATCH] Update build instructions --- README.md | 27 ++++++++++++++++++++++----- 1 file changed, 22 insertions(+), 5 deletions(-) diff --git a/README.md b/README.md index ccecb94..3aa340e 100644 --- a/README.md +++ b/README.md @@ -28,12 +28,29 @@ This layer depends on: ## Quick Start -1. source openembedded-core/oe-init-build-env riscv-build -2. Add this layer to bblayers.conf and the dependencies above -3. Set MACHINE in local.conf to one of the supported boards ( e.g. qemuriscv64 ) -4. bitbake core-image-minimal -6. runqemu nographic +Note: You only need this if you do not have an existing Yocto Project build environment. +Make sure to [install the `repo` command by Google](https://source.android.com/setup/downloading#installing-repo) first. + +## Create workspace +```shell +mkdir riscv-yocto +repo init -u git://github.com/riscv/meta-riscv -b master -m tools/manifests/riscv-yocto.xml +repo sync +repo start work --all +``` +## Setup Build Environment +```shell +. ./meta-riscv/setup.sh +``` +## Build Image +```shell +bitbake core-image-full-cmdline +``` +## Run in QEMU +```shell +runqemu nographic +``` ## Maintainer(s) * Khem Raj ``