image_types.bbclass: remove the old images

Remove the old image before the new one generated to save disk
space when RM_OLD_IMAGE is set to 1, this is an easy way to keep
the DEPLOY_DIR_IMAGE clean.

[YOCTO #4391]

(From meta-yocto rev: 4aa8d872c44c5e9e40a52718ee78173710b7cb56)

Signed-off-by: Robert Yang <liezhi.yang@windriver.com>
Signed-off-by: Saul Wold <sgw@linux.intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
This commit is contained in:
Robert Yang 2013-05-07 06:09:31 +00:00 committed by Richard Purdie
parent 350c36fcd9
commit 995c196f98
1 changed files with 3 additions and 0 deletions

View File

@ -211,3 +211,6 @@
# Put the following two lines in the conf file with intact.
#ARCHIVER_CLASS = "${@'archive-${ARCHIVER_MODE}-source' if ARCHIVER_MODE != 'none' else ''}"
#INHERIT += "${ARCHIVER_CLASS}"
# Remove the old image before the new one generated to save disk space
#RM_OLD_IMAGE = "1"