OpenEmbedded-Core: Difference between revisions

From Yocto Project
Jump to navigationJump to search
No edit summary
(Using PRE tag to get a better display of the commands.)
Line 6: Line 6:


1) Download the repository
1) Download the repository
 
<pre>
git clone git://git.openembedded.org/openembedded-core oe-core
git clone git://git.openembedded.org/openembedded-core oe-core
cd oe-core
cd oe-core
git clone git://git.openembedded.org/bitbake bitbake
git clone git://git.openembedded.org/bitbake bitbake
</pre>


1.5) Temporary workaround (as of 2011-03-02)
1.5) Temporary workaround (as of 2011-03-02)
Line 20: Line 21:


2) Setup the environment, and build directory
2) Setup the environment, and build directory
 
<pre>
. ./poky-init-build-env [<build directory>]
. ./poky-init-build-env [<build directory>]
</pre>


The optional build directory may be specified, otherwise it is assumed you want to use the directory named "build".
The optional build directory may be specified, otherwise it is assumed you want to use the directory named "build".
Line 30: Line 32:


4) Build something
4) Build something
 
<pre>
bitbake <rule>
bitbake <rule>
</pre>


A good simple place to start is "bitbake poky-image-minimal".  This will run through a simple build and do basic system sanity checks.  If your system needs additional software installed, or other environment settings it will tell you what is needed.
A good simple place to start is "bitbake poky-image-minimal".  This will run through a simple build and do basic system sanity checks.  If your system needs additional software installed, or other environment settings it will tell you what is needed.

Revision as of 22:05, 5 March 2011

The OpenEmbedded-Core is a base layer, of recipes, classes and associated files that is meant to be common amount many different Open Embedded derived systems. While not all systems will use every piece of the OpenEmbedded-Core, it will provide a self contained example that can be used to prove basic functionality.


Getting Started

1) Download the repository

git clone git://git.openembedded.org/openembedded-core oe-core
cd oe-core
git clone git://git.openembedded.org/bitbake bitbake

1.5) Temporary workaround (as of 2011-03-02)

Edit the file scripts/poky-env-internal

Add to the end:

export BBFETCH2=True

2) Setup the environment, and build directory

. ./poky-init-build-env [<build directory>]

The optional build directory may be specified, otherwise it is assumed you want to use the directory named "build".

3) First time configuration

The first time you run poky-init-build-env, it will setup the directory for you. You should at least review the settings within the conf/local.conf file.

4) Build something

bitbake <rule>

A good simple place to start is "bitbake poky-image-minimal". This will run through a simple build and do basic system sanity checks. If your system needs additional software installed, or other environment settings it will tell you what is needed.