2012-06-28 12:42:20 +00:00
DESCRIPTION = " An image you can boot and run using either the VMware Player or VMware Workstation. For more information, see the<a href='http://www.yoctoproject.org/documentation/build-appliance'>Build Appliance page</a>. "
2011-11-03 20:11:41 +00:00
IMAGE_INSTALL = " task-core-boot task-core-apps-console task-core-ssh-openssh task-self-hosted "
2012-03-01 07:46:22 +00:00
LICENSE = " MIT "
LIC_FILES_CHKSUM = " file://${COREBASE}/LICENSE;md5=3f40d7994397109285ec7b81fdeb3b58 \
file : / / $ { COREBASE } / meta / COPYING . MIT ;md5=3da9cfbcb788c80a0384361b4de20420"
2012-04-18 14:58:45 +00:00
PR = " r15 "
2012-03-01 07:46:22 +00:00
2012-02-01 03:53:51 +00:00
IMAGE_FEATURES + = " x11-mini package-management "
2011-12-21 07:33:08 +00:00
2012-04-04 00:33:42 +00:00
# Ensure there ' s enough space to do a core - image - sato build , with rm_work enabled
IMAGE_ROOTFS_EXTRA_SPACE = " 41943040 "
2011-11-03 20:11:41 +00:00
2012-03-01 07:46:22 +00:00
# Do a quiet boot with limited console messages
APPEND + = " quiet "
IMAGE_FSTYPES = " vmdk "
inherit core - image
2012-03-27 05:42:55 +00:00
2012-04-18 14:58:45 +00:00
SRCREV = " 3ab5d73f0c49df9fefa2a46031d33436bbd7d7d8 "
2012-03-27 05:42:55 +00:00
SRC_URI = " git://git.yoctoproject.org/poky;protocol=git "
2012-04-04 15:07:31 +00:00
IMAGE_CMD_ext3_append ( ) {
# We don ' t need to reserve much space for root , 0.5 % is more than enough
tune2fs - m 0.5 $ { DEPLOY_DIR_IMAGE } / $ { IMAGE_NAME } .rootfs .ext3
}
2012-03-27 05:42:55 +00:00
fakeroot do_populate_poky_src ( ) {
# Because fetch2 ' s git ' s unpack uses - s cloneflag , the unpacked git repo
# will become invalid in the target .
rm - rf $ { WORKDIR } / git / .git
rm - f $ { WORKDIR } / git / .gitignore
cp - Rp $ { WORKDIR } / git $ { IMAGE_ROOTFS } / home / builder / poky
mkdir - p $ { IMAGE_ROOTFS } / home / builder / poky / build / conf
2012-03-30 09:31:39 +00:00
mkdir - p $ { IMAGE_ROOTFS } / home / builder / poky / build / downloads
cp - RpL $ { DL_DIR } / * $ { IMAGE_ROOTFS } / home / builder / poky / build / downloads /
# Remove the git2_ * tarballs - - this is ok since we still have the git2 / .
rm - rf $ { IMAGE_ROOTFS } / home / builder / poky / build / downloads / git2_ *
2012-03-27 05:42:55 +00:00
echo " /usr/bin " > $ { IMAGE_ROOTFS } / home / builder / poky / build / pseudodone
echo " INHERIT += \ " rm_work \ " " > > $ { IMAGE_ROOTFS } / home / builder / poky / build / conf / auto . conf
2012-04-01 14:11:16 +00:00
mkdir - p $ { IMAGE_ROOTFS } / home / builder / pseudo
echo " export PSEUDO_PREFIX=/usr " > > $ { IMAGE_ROOTFS } / home / builder / .bashrc
echo " export PSEUDO_LOCALSTATEDIR=/home/builder/pseudo " > > $ { IMAGE_ROOTFS } / home / builder / .bashrc
echo " export PSEUDO_LIBDIR=/usr/lib/pseudo/lib64 " > > $ { IMAGE_ROOTFS } / home / builder / .bashrc
2012-03-27 05:42:55 +00:00
2012-04-01 14:11:16 +00:00
chown builder . builder $ { IMAGE_ROOTFS } / home / builder / pseudo
2012-03-27 05:42:55 +00:00
chown - R builder . builder $ { IMAGE_ROOTFS } / home / builder / poky
2012-04-04 00:33:42 +00:00
# Allow builder to use sudo to setup tap / tun
2012-04-05 04:00:05 +00:00
echo " builder ALL=(ALL) NOPASSWD: ALL " > > $ { IMAGE_ROOTFS } / etc / sudoers
2012-04-05 11:36:08 +00:00
# Use Clearlooks GTK + theme
mkdir - p $ { IMAGE_ROOTFS } / etc / gtk - 2.0
echo ' gtk - theme - name = " Clearlooks " ' > $ { IMAGE_ROOTFS } / etc / gtk - 2.0 / gtkrc
2012-03-27 05:42:55 +00:00
}
IMAGE_PREPROCESS_COMMAND + = " do_populate_poky_src; "
python do_get_poky_src ( ) {
bb . build .exec_func ( ' base_do_fetch ' , d )
bb . build .exec_func ( ' base_do_unpack ' , d )
}
addtask do_get_poky_src before do_rootfs