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:57 +0100 |
commit | 86a6410fcbfb43e74aa1c9c995a21129d8434f75 (patch) | |
tree | 8c6e6714dcc4f711466bcc07496a06b1822d6e7b /meta/recipes-core/images/build-appliance-image.bb | |
parent | d13d50a61f929abf0d3d7ad1649a56f87ff53c6f (diff) | |
download | poky-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/recipes-core/images/build-appliance-image.bb')
-rw-r--r-- | meta/recipes-core/images/build-appliance-image.bb | 21 |
1 files changed, 20 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" | |||
20 | inherit core-image | 20 | inherit core-image |
21 | 21 | ||
22 | SRCREV = "73cdebf60df225ee10f2eb215935be3b61e1b831" | 22 | SRCREV = "73cdebf60df225ee10f2eb215935be3b61e1b831" |
23 | SRC_URI = "git://git.yoctoproject.org/poky;protocol=git" | 23 | SRC_URI = "git://git.yoctoproject.org/poky;protocol=git \ |
24 | file://Yocto_Build_Appliance.vmx \ | ||
25 | file://Yocto_Build_Appliance.vmxf \ | ||
26 | " | ||
24 | 27 | ||
25 | IMAGE_CMD_ext3_append () { | 28 | IMAGE_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 | } |
70 | addtask do_get_poky_src before do_rootfs | 73 | addtask do_get_poky_src before do_rootfs |
74 | |||
75 | create_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 | |||
84 | python do_bundle_files() { | ||
85 | bb.build.exec_func('create_bundle_files', d) | ||
86 | } | ||
87 | |||
88 | addtask bundle_files after do_vmdkimg before do_build | ||
89 | do_bundle_files[nostamp] = "1" | ||