Skip to content

Commit ec5ff48

Browse files
committed
Update Instructions
Signed-off-by: Eduardo Silva <[email protected]>
1 parent c60d3f1 commit ec5ff48

File tree

1 file changed

+42
-6
lines changed

1 file changed

+42
-6
lines changed

README.md

+42-6
Original file line numberDiff line numberDiff line change
@@ -4,26 +4,62 @@ This repository contains the official recipes to build Monkey on [Yocto Project]
44

55
## Getting Started
66

7-
The following instructions assumes that your are building [Yocto](https://www.yoctoproject.org/) images from scratch using the [Poky](https://www.yoctoproject.org/tools-resources/projects/poky) tool:
7+
The following instructions assumes that your are building [Yocto](https://www.yoctoproject.org/) images from scratch using the [Poky](https://www.yoctoproject.org/tools-resources/projects/poky) tool, the first step is to get a copy of the [Monkey-Yocto](https://github.com/monkey/monkey-yocto) repository in your local computer:
88

9-
Get a copy of this repository in your local computer, then copy the __monkey__ directory into your __meta recipes-extended__ directory:
9+
```Shell
10+
$ git clone https://github.com/monkey/monkey-yocto
11+
```
12+
13+
then copy the __monkey-yocto/monkey__ directory into your __meta/recipes-extended__ directory path:
1014

1115
```Shell
12-
$ cp -r monkey-yocto/monkey /home/foo/poky/meta/recipes-extended/
16+
$ cp -r monkey-yocto/monkey poky/meta/recipes-extended/
1317
```
1418

19+
> make sure you are using the right Poky path
20+
1521
Once there, go into the __build/__ directory and make a test building Monkey:
1622

1723
```Shell
24+
$ cd poky/build/
1825
$ bitbake monkey
1926
```
2027

21-
## Adding Monkey to your system image
28+
If it built fine, you should see an output similar to this:
2229

23-
Edit your __build/conf/local.conf__ configuration file and make sure to set the variable IMAGE_INSTALL_append:
30+
```
31+
Build Configuration:
32+
BB_VERSION = "1.22.0"
33+
BUILD_SYS = "x86_64-linux"
34+
NATIVELSBSTRING = "Ubuntu-14.04"
35+
TARGET_SYS = "i586-poky-linux"
36+
MACHINE = "qemux86"
37+
DISTRO = "poky"
38+
DISTRO_VERSION = "1.6"
39+
TUNE_FEATURES = "m32 i586"
40+
TARGET_FPU = ""
41+
meta
42+
meta-yocto
43+
meta-yocto-bsp = "monkey-daisy:98ad3cb2c0f5975a0df4cebc06775aaae657700d"
44+
45+
NOTE: Preparing runqueue
46+
NOTE: Executing SetScene Tasks
47+
NOTE: Executing RunQueue Tasks
48+
NOTE: Tasks Summary: Attempted 391 tasks of which 391 didn't need to be rerun and all succeeded.
49+
```
50+
51+
## Add Monkey to your Yocto Image
52+
53+
As any other extra package for your Image, the Build system needs to be aware that you want to include Monkey. For that purpose edit your __build/conf/local.conf__ configuration file and add the following line at bottom:
2454

2555
```
2656
IMAGE_INSTALL_append = " monkey"
2757
```
2858

29-
The next time your re-build your system image, Monkey will be packaged into it.
59+
That line tells the Build system to include __monkey__ package when creating the final image. If for some reason the variable already exists, just append the __monkey__ package name at the end, e.g:
60+
61+
```
62+
IMAGE_INSTALL_append = " package1 package2 monkey"
63+
```
64+
65+
The next time you build your image, Monkey will be packaged into it.

0 commit comments

Comments
 (0)