diff options
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" | ||
