diff options
Diffstat (limited to 'meta/classes/image.bbclass')
-rw-r--r-- | meta/classes/image.bbclass | 22 |
1 files changed, 1 insertions, 21 deletions
diff --git a/meta/classes/image.bbclass b/meta/classes/image.bbclass index eb0d970a2c..aa842c78ca 100644 --- a/meta/classes/image.bbclass +++ b/meta/classes/image.bbclass | |||
@@ -64,27 +64,7 @@ def get_devtable_list(d): | |||
64 | str += " %s" % bb.which(bb.data.getVar('BBPATH', d, 1), devtable) | 64 | str += " %s" % bb.which(bb.data.getVar('BBPATH', d, 1), devtable) |
65 | return str | 65 | return str |
66 | 66 | ||
67 | def get_imagecmds(d): | 67 | inherit image_types |
68 | cmds = "\n" | ||
69 | old_overrides = bb.data.getVar('OVERRIDES', d, 0) | ||
70 | for type in bb.data.getVar('IMAGE_FSTYPES', d, True).split(): | ||
71 | localdata = bb.data.createCopy(d) | ||
72 | localdata.setVar('OVERRIDES', '%s:%s' % (type, old_overrides)) | ||
73 | bb.data.update_data(localdata) | ||
74 | localdata.setVar('type', type) | ||
75 | cmd = localdata.getVar("IMAGE_CMD_" + type, True) | ||
76 | localdata.setVar('cmd', cmd) | ||
77 | cmds += localdata.getVar("runimagecmd", True) | ||
78 | return cmds | ||
79 | |||
80 | runimagecmd () { | ||
81 | # Image generation code for image type ${type} | ||
82 | ROOTFS_SIZE=`du -ks ${IMAGE_ROOTFS}|awk '{size = $1 * ${IMAGE_OVERHEAD_FACTOR}; print (size > ${IMAGE_ROOTFS_SIZE} ? size : ${IMAGE_ROOTFS_SIZE}) }'` | ||
83 | ${cmd} | ||
84 | cd ${DEPLOY_DIR_IMAGE}/ | ||
85 | rm -f ${DEPLOY_DIR_IMAGE}/${IMAGE_LINK_NAME}.${type} | ||
86 | ln -s ${IMAGE_NAME}.rootfs.${type} ${DEPLOY_DIR_IMAGE}/${IMAGE_LINK_NAME}.${type} | ||
87 | } | ||
88 | 68 | ||
89 | IMAGE_POSTPROCESS_COMMAND ?= "" | 69 | IMAGE_POSTPROCESS_COMMAND ?= "" |
90 | MACHINE_POSTPROCESS_COMMAND ?= "" | 70 | MACHINE_POSTPROCESS_COMMAND ?= "" |