- Clone the repositories
git clone git://git.yoctoproject.org/poky
cd poky
git clone git://git.yoctoproject.org/meta-raspberrypi
git clone git://git.openembedded.org/meta-openembedded
git clone git://github.com/imphil/meta-b2g.git
. ./oe-init-build-env rpi-build
-
Traverse into 'conf' directory
-
Copy these into bblayers.conf file
/home/jai/poky/meta-raspberrypi \
/home/jai/poky/meta-openembedded/meta-oe \
/home/jai/poky/meta-openembedded/meta-networking \
/home/jai/poky/meta-openembedded/meta-gnome \
/home/jai/poky/meta-b2g \
rm -rf local.conf
touch local.conf
- Copy this into local.conf file:
BB_NUMBER_THREADS = "4"
PARALLEL_MAKE = "-j 4"
MACHINE ?= "raspberrypi"
MACHINE ??= "qemux86"
DISTRO ?= "poky"
PACKAGE_CLASSES ?= "package_rpm"
EXTRA_IMAGE_FEATURES = "debug-tweaks debug-tools nfs-server"
USER_CLASSES ?= "buildstats image-mklibs image-prelink"
PATCHRESOLVE = "noop"
BB_DISKMON_DIRS = "\
STOPTASKS,${TMPDIR},1G,100K \
STOPTASKS,${DL_DIR},1G,100K \
STOPTASKS,${SSTATE_DIR},1G,100K \
ABORT,${TMPDIR},100M,1K \
ABORT,${DL_DIR},100M,1K \
ABORT,${SSTATE_DIR},100M,1K"
CONF_VERSION = "1"
BBMASK = "meta-raspberrypi/recipes-multimedia/libav|meta-raspberrypi/recipes-core/systemd"
DISABLE_OVERSCAN = "1"
GPU_MEM = "64"
- Run
cd poky
. ./oe-init-build-env rpi-build
bitbake -v rpi-b2g-image
sudo dd if=your-image.rpi-sdimg of=/dev/sdX
sync
You're done!
- Error with makeinfo. Solution: Install makefile 3.82 package
- Error with sanity checker.
Comment out last line in meta/conf/sanity.conf to disable sanity checks set bbpath to poky/rpi-build ($BBPATH)
remove debug-tools
from rpi-build/conf/local.conf
From now, build gaia on top of it.