Yocto Project Build Instructions
In order to prevent excess disk and CPU usage when a class tries to build the Yocto Project distribution for the BeagleBone Black please follow the instructions below. I cuts down the compilation time from one to two hours to about five minutes.
Preparation
Change directory to /home/EESY2/poky
If you cannot go into that directory ask to be included in the embnerds group.
Execute this command:
]$ . oe-init-build-env bbb-`logname`
NOTE: Be sure to use the correct "back-ping" ` not the ' "ping"!
You are brought into a directory named bbb-<your loginname>. This is where you can work with you local copy of the Yocto Project.
Next important thing to do is to change a few settings in the conf/local.conf file.
First locate the line
#MACHINE ?= "beaglebone"
remove the #
Next locate the line
#DL_DIR ?= "${TOPDIR}/downloads"
it is just a few lines below the machine configuration line.
Create a new line here with this content:
DL_DIR ?= "/home/EESY2/poky/bbb/downloads"
be sure to copy exactly this line - it points to the huge download that has already been done once.
And finally locate
#SSTATE_DIR ?= "${TOPDIR}/sstate-cache"
Create a new line with this content:
SSTATE_DIR ?= "/home/EESY2/poky/bbb/sstate-cache"
There is no need to configure anything else at this point.
in your /home/EESY2/poky/bbb-<your username> directory you can now execute the command:
]$ bitbake core-image-base
After a few minutes your newly created distribution for BeagleBone Black is ready.
Follow the instruction on [BeagleBone Black] page to copy the necessary files to a SD-card.