diff options
author | Saul Wold <sgw@linux.intel.com> | 2012-08-23 11:45:14 -0700 |
---|---|---|
committer | Richard Purdie <richard.purdie@linuxfoundation.org> | 2012-08-24 17:32:34 +0100 |
commit | 968cfc0b630fb409430a46b1512d6bf0de225ad1 (patch) | |
tree | f472a1c1d6761d83b9214953184d5000c6aed728 /meta | |
parent | 3aeb67524cecfe4890fb8e76d75a82ed037c65f0 (diff) | |
download | openembedded-core-968cfc0b630fb409430a46b1512d6bf0de225ad1.tar.gz openembedded-core-968cfc0b630fb409430a46b1512d6bf0de225ad1.tar.bz2 openembedded-core-968cfc0b630fb409430a46b1512d6bf0de225ad1.zip |
build-appliance-image: Add vmx* files and build zip file
This commit adds the vmx* files needed to setup a VMware image,
this also packages the vmdk along with the vmx files.
Signed-off-by: Saul Wold <sgw@linux.intel.com>
Diffstat (limited to 'meta')
3 files changed, 80 insertions, 1 deletions
diff --git a/meta/recipes-core/images/build-appliance-image.bb b/meta/recipes-core/images/build-appliance-image.bb index bac7f80d0c..6b00e64fe9 100644 --- a/meta/recipes-core/images/build-appliance-image.bb +++ b/meta/recipes-core/images/build-appliance-image.bb @@ -20,7 +20,10 @@ IMAGE_FSTYPES = "vmdk" inherit core-image SRCREV = "73cdebf60df225ee10f2eb215935be3b61e1b831" -SRC_URI = "git://git.yoctoproject.org/poky;protocol=git" +SRC_URI = "git://git.yoctoproject.org/poky;protocol=git \ + file://Yocto_Build_Appliance.vmx \ + file://Yocto_Build_Appliance.vmxf \ + " IMAGE_CMD_ext3_append () { # We don't need to reserve much space for root, 0.5% is more than enough @@ -68,3 +71,19 @@ python do_get_poky_src () { bb.build.exec_func('base_do_unpack', d) } addtask do_get_poky_src before do_rootfs + +create_bundle_files () { + cd ${WORKDIR} + mkdir -p Yocto_Build_Appliance + cp *.vmx* Yocto_Build_Appliance + ln -sf ${DEPLOY_DIR_IMAGE}/${IMAGE_NAME}.vmdk Yocto_Build_Appliance/Yocto_Build_Appliance.vmdk + zip -r ${DEPLOY_DIR_IMAGE}/Yocto_Build_Appliance-${DATETIME}.zip Yocto_Build_Appliance + ln -sf ${DEPLOY_DIR_IMAGE}/Yocto_Build_Appliance-${DATETIME}.zip ${DEPLOY_DIR_IMAGE}/Yocto_Build_Appliance.zip +} + +python do_bundle_files() { + bb.build.exec_func('create_bundle_files', d) +} + +addtask bundle_files after do_vmdkimg before do_build +do_bundle_files[nostamp] = "1" diff --git a/meta/recipes-core/images/build-appliance-image/Yocto_Build_Appliance.vmx b/meta/recipes-core/images/build-appliance-image/Yocto_Build_Appliance.vmx new file mode 100644 index 0000000000..b38127ab87 --- /dev/null +++ b/meta/recipes-core/images/build-appliance-image/Yocto_Build_Appliance.vmx @@ -0,0 +1,52 @@ +.encoding = "UTF-8" +displayname = "Yocto Build Appliance" +guestos = "other" +tools.syncTime = "FALSE" +virtualhw.version = "8" +config.version = "8" +numvcpus = "2" +cpuid.coresPerSocket = "1" +vcpu.hotadd = "TRUE" +mem.hotadd = "TRUE" +memsize = "4096" +svga.autodetect = "TRUE" +pciBridge0.present = "TRUE" +mks.enable3d = "TRUE" +pciBridge4.present = "TRUE" +pciBridge4.virtualDev = "pcieRootPort" +pciBridge4.functions = "8" +pciBridge5.present = "TRUE" +pciBridge5.virtualDev = "pcieRootPort" +pciBridge5.functions = "8" +pciBridge6.present = "TRUE" +pciBridge6.virtualDev = "pcieRootPort" +pciBridge6.functions = "8" +pciBridge7.present = "TRUE" +pciBridge7.virtualDev = "pcieRootPort" +pciBridge7.functions = "8" +vmci0.present = "TRUE" +floppy0.present = "TRUE" +floppy0.fileType = "device" +floppy0.autodetect = "FALSE" +floppy0.startConnected = "FALSE" +ide1:0.present = "TRUE" +ide1:0.deviceType = "atapi-cdrom" +ide1:0.autodetect = "TRUE" +ide1:0.startConnected = "FALSE" +ide0:0.present = "TRUE" +ide0:0.deviceType = "disk" +ide0:0.fileName = "Yocto_Build_Appliance.vmdk" +usb.present = "TRUE" +scsi0.virtualDev = "lsilogic" +scsi0.present = "TRUE" +ethernet0.present = "TRUE" +ethernet0.virtualDev = "e1000" +ethernet0.connectionType = "nat" +ethernet0.startConnected = "TRUE" +ethernet0.addressType = "generated" +sound.present = "TRUE" +sound.virtualDev = "es1371" +sound.autodetect = "TRUE" +extendedConfigFile = "Yocto_Build_Appliance.vmxf" +sound.fileName = "-1" +virtualHW.productCompatibility = "hosted" diff --git a/meta/recipes-core/images/build-appliance-image/Yocto_Build_Appliance.vmxf b/meta/recipes-core/images/build-appliance-image/Yocto_Build_Appliance.vmxf new file mode 100644 index 0000000000..ca3f0264d6 --- /dev/null +++ b/meta/recipes-core/images/build-appliance-image/Yocto_Build_Appliance.vmxf @@ -0,0 +1,8 @@ +<?xml version="1.0"?> +<Foundry> +<VM> +<VMId type="string">52 e4 0b df 7b 70 21 f8-88 56 a7 26 47 43 95 93</VMId> +<ClientMetaData> +<clientMetaDataAttributes/> +<HistoryEventList/></ClientMetaData> +<vmxPathName type="string">Yocto_Build_Appliance.vmx</vmxPathName></VM></Foundry> |