$ repo init -u git://github.com/rose-project/villaos-manifest.git -b master
$ repo sync
$ cd layers
$ echo "TEMPLATECONF=\${TEMPLATECONF:-meta-villa/conf}" > .templateconf
$ MACHINE=raspberrypi2 . oe-init-build-env ../build-raspberrypi2
You now may want to edit conf/local.conf for your needs (MACHINE variable etc.) and the run bitbake.
$ bitbake villa-base-image