From 995c196f98bf3a85e73f4981cfeeacfb5b84330e Mon Sep 17 00:00:00 2001 From: Robert Yang Date: Tue, 7 May 2013 06:09:31 +0000 Subject: [PATCH] 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 Signed-off-by: Saul Wold Signed-off-by: Richard Purdie --- meta-yocto/conf/local.conf.sample.extended | 3 +++ 1 file changed, 3 insertions(+) diff --git a/meta-yocto/conf/local.conf.sample.extended b/meta-yocto/conf/local.conf.sample.extended index d0dff80385..3dc73fbec6 100644 --- a/meta-yocto/conf/local.conf.sample.extended +++ b/meta-yocto/conf/local.conf.sample.extended @@ -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"