Setting Up Build Environment

From AragoWiki

(Difference between revisions)
Jump to: navigation, search
Line 1: Line 1:
 +
== Quick Start ==
 +
 +
To quickly start making your own builds using meta-ti BSP layer and meta-arago Distribution layer, you can follow this short Quick Start section by entering below commands. For more expanded guide with each step detailed and sample output of the entered commands shown, please see the next section.
 +
{{Box Output|Quick Start commands summary|
{{Box Output|Quick Start commands summary|
<pre>
<pre>
Line 11: Line 15:
}}
}}
 +
== Detailed Setup ==
 +
Setting up the Build Environment for meta-ti/meta-arago is quite easy - most of the heavy lifting is done by the setup scripts. This section explains the required steps in more details.
 +
=== Clone the Setup script ===
{{Box Output|Clone OE Layer Setup script|
{{Box Output|Clone OE Layer Setup script|
Line 29: Line 36:
}}
}}
-
 
+
=== Run the Setup script ===
{{Box Output|Run the Setup script to prepare all layers|
{{Box Output|Run the Setup script to prepare all layers|
Line 163: Line 170:
}}
}}
 +
=== Source the generated environment ===
{{Box Output|Source the environment setup|
{{Box Output|Source the environment setup|
Line 170: Line 178:
</pre>
</pre>
}}
}}
 +
 +
=== Point to the toolchain to use ===
{{Box Output|Add the Linaro toolchain to PATH env variable|
{{Box Output|Add the Linaro toolchain to PATH env variable|
Line 176: Line 186:
</pre>
</pre>
}}
}}
 +
 +
=== Start the build ===
{{Box Output|Start the build|
{{Box Output|Start the build|

Revision as of 16:53, 10 June 2013

Contents

Quick Start

To quickly start making your own builds using meta-ti BSP layer and meta-arago Distribution layer, you can follow this short Quick Start section by entering below commands. For more expanded guide with each step detailed and sample output of the entered commands shown, please see the next section.

Quick Start commands summary
$ git clone git://arago-project.org/git/projects/oe-layersetup.git tisdk
$ cd tisdk
$ ./oe-layertool-setup.sh -f configs/arago-danny-config.txt
$ cd build
$ . conf/setenv
$ export PATH=/opt/linaro-2013.03/bin:$PATH
$ MACHINE=am335x-evm bitbake core-image-minimal

Detailed Setup

Setting up the Build Environment for meta-ti/meta-arago is quite easy - most of the heavy lifting is done by the setup scripts. This section explains the required steps in more details.

Clone the Setup script

Clone OE Layer Setup script
$ git clone git://arago-project.org/git/projects/oe-layersetup.git tisdk

Cloning into 'tisdk'...
remote: Counting objects: 318, done.
remote: Compressing objects: 100% (309/309), done.
remote: Total 318 (delta 201), reused 0 (delta 0)
Receiving objects: 100% (318/318), 42.86 KiB, done.
Resolving deltas: 100% (201/201), done.

$ cd tisdk

Run the Setup script

Run the Setup script to prepare all layers
$ ./oe-layertool-setup.sh -f configs/arago-danny-config.txt 

/OE/tisdk

cloning repo bitbake

Cloning into '/OE/tisdk/sources/bitbake'...
remote: Counting objects: 25001, done.
remote: Compressing objects: 100% (7410/7410), done.
remote: Total 25001 (delta 17201), reused 23780 (delta 16200)
Receiving objects: 100% (25001/25001), 4.51 MiB | 285 KiB/s, done.
Resolving deltas: 100% (17201/17201), done.
Already on 'master'
Already up-to-date.
Note: checking out '1.17.0'.

You are in 'detached HEAD' state. You can look around, make experimental
changes and commit them, and you can discard any commits you make in this
state without impacting any branches by performing another checkout.

If you want to create a new branch to retain commits you create, you may
do so (now or later) by using -b with the checkout command again. Example:

  git checkout -b new_branch_name

HEAD is now at cc7fdbd... Update version to 1.17.0

cloning repo meta-arago

Cloning into '/OE/tisdk/sources/meta-arago'...
remote: Counting objects: 5132, done.
remote: Compressing objects: 100% (4376/4376), done.
remote: Total 5132 (delta 2930), reused 1248 (delta 525)
Receiving objects: 100% (5132/5132), 8.44 MiB | 7.78 MiB/s, done.
Resolving deltas: 100% (2930/2930), done.
Already on 'master'
Already up-to-date.

cloning repo meta-openembedded

Cloning into '/OE/tisdk/sources/meta-openembedded'...
remote: Counting objects: 27559, done.
remote: Compressing objects: 100% (10787/10787), done.
remote: Total 27559 (delta 15997), reused 26742 (delta 15535)
Receiving objects: 100% (27559/27559), 17.97 MiB | 867 KiB/s, done.
Resolving deltas: 100% (15997/15997), done.
Branch danny set up to track remote branch danny from origin.
Switched to a new branch 'danny'
Already up-to-date.

cloning repo meta-ti

Cloning into '/OE/tisdk/sources/meta-ti'...
remote: Counting objects: 11370, done.
remote: Compressing objects: 100% (6562/6562), done.
remote: Total 11370 (delta 6153), reused 8624 (delta 4346)
Receiving objects: 100% (11370/11370), 6.63 MiB | 6.60 MiB/s, done.
Resolving deltas: 100% (6153/6153), done.
Branch danny set up to track remote branch danny from origin.
Switched to a new branch 'danny'
Already up-to-date.

cloning repo meta-linaro

Cloning into '/OE/tisdk/sources/meta-linaro'...
remote: Counting objects: 2741, done.
remote: Compressing objects: 100% (1981/1981), done.
remote: Total 2741 (delta 1135), reused 1496 (delta 524)
Receiving objects: 100% (2741/2741), 973.28 KiB, done.
Resolving deltas: 100% (1135/1135), done.
Branch danny set up to track remote branch danny from origin.
Switched to a new branch 'danny'
Already up-to-date.

cloning repo oe-core

Cloning into '/OE/tisdk/sources/oe-core'...
remote: Counting objects: 160738, done.
remote: Compressing objects: 100% (47233/47233), done.
remote: Total 160738 (delta 113682), reused 155341 (delta 109640)
Receiving objects: 100% (160738/160738), 75.21 MiB | 758 KiB/s, done.
Resolving deltas: 100% (113682/113682), done.
Branch danny set up to track remote branch danny from origin.
Switched to a new branch 'danny'
Already up-to-date.

################################################################################
The bblayers.conf configuration file has been created for you with some
default values.  Please verify the contents of your conf/bblayers.conf
file for correctness.

NOTE: Any additional entries to this file will be lost if the ./oe-layertool-setup.sh
      script is run again.  To add entries permanently to this file
      please add them to the config file used and rerun the
      ./oe-layertool-setup.sh script.

################################################################################
The local.conf configuration file has been created for you with some
default values.  Please verify the contents of your conf/local.conf
file for correctness.

By default the number of threads used by the build is set to the number
of CPUs found on your system.

NOTE: You will probably want to change the default MACHINE setting in the
      local.conf file to the machine you are trying to build.

################################################################################
A setenv file has been created for you in the conf directory.  Please verify
The contents of this file.  Once you have verified the contents please source
this file to configure your environment for building:

    . conf/setenv

You can then start building using the bitbake command.  You will likely want
to set the MACHINE option if you have not done so in your local.conf file.

For example:
    MACHINE=xxxxx bitbake <target>

Common targets are:
    core-image-minimal
    core-image-sato
    meta-toolchain
    meta-toolchain-sdk
    adt-installer
    meta-ide-support

Source the generated environment

Source the environment setup
$ cd build
$ . conf/setenv

Point to the toolchain to use

Add the Linaro toolchain to PATH env variable
$ export PATH=/opt/linaro-2013.03/bin:$PATH

Start the build

Start the build
$ MACHINE=am335x-evm bitbake core-image-minimal

Pseudo is not present but is required, building this first before the main build
Parsing recipes: 100% |########################################################################################################################################| Time: 00:00:27
Parsing of 1480 .bb files complete (0 cached, 1480 parsed). 1843 targets, 148 skipped, 7 masked, 0 errors.

Build Configuration:
BB_VERSION        = "1.17.0"
TARGET_ARCH       = "arm"
TARGET_OS         = "linux-gnueabi"
MACHINE           = "am335x-evm"
DISTRO            = "arago"
DISTRO_VERSION    = "2013.05"
TUNE_FEATURES     = "armv7a vfp neon thumb callconvention-hard cortexa8"
TARGET_FPU        = "vfp-neon"
meta-arago-distro 
meta-arago-extras = "master:5f0d1c03cb725f63c7090c59b26abbf84f6f6302"
toolchain-layer   
meta-oe           = "danny:f00028caf257e386c0f3ae46bd4b3ba53dd0729d"
meta-ti           = "danny:428c9db65f69c5c885b014c49ddedf3130cf16f3"
meta-linaro       = "danny:d0558fa4304592622423582f8b464e1c22cfe6f1"
meta              = "danny:0785489d558c34cacf5cb349949a15e27084efbf"

NOTE: Resolving any missing task queue dependencies
NOTE: Preparing runqueue
NOTE: Executing SetScene Tasks
NOTE: Executing RunQueue Tasks
NOTE: Tasks Summary: Attempted 72 tasks of which 0 didn't need to be rerun and all succeeded.
Loading cache: 100% |##########################################################################################################################################| ETA:  00:00:00
Loaded 1841 entries from dependency cache.
Parsing recipes: 100% |########################################################################################################################################| Time: 00:00:00
Parsing of 1480 .bb files complete (1477 cached, 3 parsed). 1843 targets, 148 skipped, 7 masked, 0 errors.

Build Configuration:
BB_VERSION        = "1.17.0"
TARGET_ARCH       = "arm"
TARGET_OS         = "linux-gnueabi"
MACHINE           = "am335x-evm"
DISTRO            = "arago"
DISTRO_VERSION    = "2013.05"
TUNE_FEATURES     = "armv7a vfp neon thumb callconvention-hard cortexa8"
TARGET_FPU        = "vfp-neon"
meta-arago-distro 
meta-arago-extras = "master:5f0d1c03cb725f63c7090c59b26abbf84f6f6302"
toolchain-layer   
meta-oe           = "danny:f00028caf257e386c0f3ae46bd4b3ba53dd0729d"
meta-ti           = "danny:428c9db65f69c5c885b014c49ddedf3130cf16f3"
meta-linaro       = "danny:d0558fa4304592622423582f8b464e1c22cfe6f1"
meta              = "danny:0785489d558c34cacf5cb349949a15e27084efbf"

NOTE: Resolving any missing task queue dependencies
NOTE: Preparing runqueue
NOTE: Executing SetScene Tasks
NOTE: Executing RunQueue Tasks
Currently 11 running tasks (236 of 1438):
0: ncurses-native-5.9-r13.1 do_install (pid 28616)
1: openssl-native-1.0.0j-r15.3-arago6 do_compile (pid 28617)
2: bison-native-2.5.1-r0 do_configure (pid 28618)
3: icu-native-3.6-r9 do_compile (pid 28620)
4: db-native-5.3.15-r8 do_compile (pid 28621)
5: ossp-uuid-native-1.6.2-r1 do_compile (pid 28622)
6: popt-native-1.16-r2 do_compile (pid 28623)
7: libtool-cross-2.4.2-r5.1 do_configure (pid 28624)
8: libxml2-native-2.8.0-r3 do_fetch (pid 28625)
9: xz-native-5.1.2alpha-r0 do_fetch (pid 28627)
10: gettext-native-0.18.1.1-r17 do_unpack (pid 30551)
Personal tools