Classic Setting Up Build Environment

Create a new directory for the build environment:

Now check out the following repositories:

Replace "git" protocol with "http" or "ssh", depending on the required access.

The directory should now be populated with 3 subdirectories –,   and.

Arago repository comes with samples of  and   files, which you can use as a starting point, by copying them into their actual names (without   extension) and modifying to suit your needs:

Edit  file and make sure environment variables are set properly. should point to the directory you’ve created in the beginning:

Also, in order to use a separate "scratch" area outside of home directory, you may want to enable  variable and point it appropriately:

Now, source this file to set the environment variables:

Or alternatively (which is the same, but maybe required if using other shell than bash):

If not done before, set the  variable to point to the CodeSourcery toolchain (refer to Getting CodeSourcery Toolchain for obtaining one):

Now it should be ready to start a build of the minimal filesystem image:

Or to build a bigger filesystem with more applications, libraries and tools:

To build a kernel, use the following command. Please note, that currently only PSP and linux-omap linux kernels for OMAP3 EVM and BeagleBoard are supported. DaVinci platforms use linux-davinci kernels and also can use linux-davinci-staging, which is a staging area for upcoming features.

Resulting images and packages will be placed under  directory -   for the filesystem, kernel and bootloader; and   for binary IPK packages, respectively.