aboutsummaryrefslogtreecommitdiffstats
path: root/README
blob: 2f84a35bb203db282c3609a16afcd2cd1a5987f0 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
This README file contains information on building with the meta-rockchip BSP
layer.

Dependencies
============

This layer depends on:

  {
  	URI: git://git.openembedded.org/bitbake
	branch: <the same release used for meta-rockchip>

  	AND

  	URI: git://git.openembedded.org/openembedded-core
  	layers: meta
	branch: <the same release used for meta-rockchip>
  }


Contributing
============

Please submit any patches against this BSP to the maintainers of this layer.
The mail must be sent *to the* following people (as "To:" in the header):

	Maintainer: Romain Perier <romain.perier@collabora.com>
	Maintainer: Trevor Woerner <twoerner@gmail.com>

Please also include the Yocto Project mailing list "yocto@yoctoproject.org",
as Cc. (As "Cc:" in the header).

When sending patches please take a look at the contribution guide
available here:

	https://www.openembedded.org/wiki/Commit_Patch_Message_Guidelines

Please also send your patches by using git send-email and prefix your subject
by "[meta-rockchip]".

I. Configure yocto/oe environment
=================================

In order to build an image with BSP support for a given release, you
need to download the corresponding tools described in the "Dependencies"
section. Be sure that everything is in the same directory.

	$ mkdir yocto; cd yocto
	~/yocto $ git clone git://git.openembedded.org/bitbake
	~/yocto $ git clone git://git.openembedded.org/openembedded-core
	~/yocto $ git clone git://git.yoctoproject.org/meta-rockchip

Then you need to source the configuration script:

	~/yocto $ source openembedded-core/oe-init-build-env build bitbake

Having done that, you can build an image for a rockchip board by adding the
location of the meta-rockchip layer to bblayers.conf, along with any other
layers needed (to access common metadata shared between BSPs)

To enable the build for a specific board, add its name in the MACHINE variable
to local.conf:

	MACHINE ?= "radxarock"

All supported machines can be found in meta-rockchip/conf/machine.

You should then be able to build a image as such:

	~/yocto/build $ bitbake core-image-minimal

At the end of a successful build, you should have an image in

	tmp-glibc/deploy/images/<MACHINE>/<IMAGE_NAME>