summaryrefslogtreecommitdiffstats
path: root/meta
diff options
context:
space:
mode:
authorSaul Wold <sgw@linux.intel.com>2012-08-23 11:45:14 -0700
committerRichard Purdie <richard.purdie@linuxfoundation.org>2012-08-24 17:32:57 +0100
commit86a6410fcbfb43e74aa1c9c995a21129d8434f75 (patch)
tree8c6e6714dcc4f711466bcc07496a06b1822d6e7b /meta
parentd13d50a61f929abf0d3d7ad1649a56f87ff53c6f (diff)
downloadpoky-86a6410fcbfb43e74aa1c9c995a21129d8434f75.tar.gz
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. (From OE-Core rev: 968cfc0b630fb409430a46b1512d6bf0de225ad1) Signed-off-by: Saul Wold <sgw@linux.intel.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'meta')
-rw-r--r--meta/recipes-core/images/build-appliance-image.bb21
-rw-r--r--meta/recipes-core/images/build-appliance-image/Yocto_Build_Appliance.vmx52
-rw-r--r--meta/recipes-core/images/build-appliance-image/Yocto_Build_Appliance.vmxf8
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"
20inherit core-image 20inherit core-image
21 21
22SRCREV = "73cdebf60df225ee10f2eb215935be3b61e1b831" 22SRCREV = "73cdebf60df225ee10f2eb215935be3b61e1b831"
23SRC_URI = "git://git.yoctoproject.org/poky;protocol=git" 23SRC_URI = "git://git.yoctoproject.org/poky;protocol=git \
24 file://Yocto_Build_Appliance.vmx \
25 file://Yocto_Build_Appliance.vmxf \
26 "
24 27
25IMAGE_CMD_ext3_append () { 28IMAGE_CMD_ext3_append () {
26 # We don't need to reserve much space for root, 0.5% is more than enough 29 # 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 () {
68 bb.build.exec_func('base_do_unpack', d) 71 bb.build.exec_func('base_do_unpack', d)
69} 72}
70addtask do_get_poky_src before do_rootfs 73addtask do_get_poky_src before do_rootfs
74
75create_bundle_files () {
76 cd ${WORKDIR}
77 mkdir -p Yocto_Build_Appliance
78 cp *.vmx* Yocto_Build_Appliance
79 ln -sf ${DEPLOY_DIR_IMAGE}/${IMAGE_NAME}.vmdk Yocto_Build_Appliance/Yocto_Build_Appliance.vmdk
80 zip -r ${DEPLOY_DIR_IMAGE}/Yocto_Build_Appliance-${DATETIME}.zip Yocto_Build_Appliance
81 ln -sf ${DEPLOY_DIR_IMAGE}/Yocto_Build_Appliance-${DATETIME}.zip ${DEPLOY_DIR_IMAGE}/Yocto_Build_Appliance.zip
82}
83
84python do_bundle_files() {
85 bb.build.exec_func('create_bundle_files', d)
86}
87
88addtask bundle_files after do_vmdkimg before do_build
89do_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 @@
1.encoding = "UTF-8"
2displayname = "Yocto Build Appliance"
3guestos = "other"
4tools.syncTime = "FALSE"
5virtualhw.version = "8"
6config.version = "8"
7numvcpus = "2"
8cpuid.coresPerSocket = "1"
9vcpu.hotadd = "TRUE"
10mem.hotadd = "TRUE"
11memsize = "4096"
12svga.autodetect = "TRUE"
13pciBridge0.present = "TRUE"
14mks.enable3d = "TRUE"
15pciBridge4.present = "TRUE"
16pciBridge4.virtualDev = "pcieRootPort"
17pciBridge4.functions = "8"
18pciBridge5.present = "TRUE"
19pciBridge5.virtualDev = "pcieRootPort"
20pciBridge5.functions = "8"
21pciBridge6.present = "TRUE"
22pciBridge6.virtualDev = "pcieRootPort"
23pciBridge6.functions = "8"
24pciBridge7.present = "TRUE"
25pciBridge7.virtualDev = "pcieRootPort"
26pciBridge7.functions = "8"
27vmci0.present = "TRUE"
28floppy0.present = "TRUE"
29floppy0.fileType = "device"
30floppy0.autodetect = "FALSE"
31floppy0.startConnected = "FALSE"
32ide1:0.present = "TRUE"
33ide1:0.deviceType = "atapi-cdrom"
34ide1:0.autodetect = "TRUE"
35ide1:0.startConnected = "FALSE"
36ide0:0.present = "TRUE"
37ide0:0.deviceType = "disk"
38ide0:0.fileName = "Yocto_Build_Appliance.vmdk"
39usb.present = "TRUE"
40scsi0.virtualDev = "lsilogic"
41scsi0.present = "TRUE"
42ethernet0.present = "TRUE"
43ethernet0.virtualDev = "e1000"
44ethernet0.connectionType = "nat"
45ethernet0.startConnected = "TRUE"
46ethernet0.addressType = "generated"
47sound.present = "TRUE"
48sound.virtualDev = "es1371"
49sound.autodetect = "TRUE"
50extendedConfigFile = "Yocto_Build_Appliance.vmxf"
51sound.fileName = "-1"
52virtualHW.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 @@
1<?xml version="1.0"?>
2<Foundry>
3<VM>
4<VMId type="string">52 e4 0b df 7b 70 21 f8-88 56 a7 26 47 43 95 93</VMId>
5<ClientMetaData>
6<clientMetaDataAttributes/>
7<HistoryEventList/></ClientMetaData>
8<vmxPathName type="string">Yocto_Build_Appliance.vmx</vmxPathName></VM></Foundry>