[OE-core] [PATCH] image_types_uboot: remove the middle file
rongqing.li at windriver.com
rongqing.li at windriver.com
Thu Jul 2 02:34:29 UTC 2015
From: Yue Tao <Yue.Tao at windriver.com>
The .gz, .bz2 or .lzma are middle files for making gz.u-boot,
bz2.u-boot, or lzma.u-boot. It should be removed once the final
image is generated. Otherwise, even you --enable-rm-oldimgs=yes,
it can't be removed, moreover more and more middle files are
genrated via 'make fs
Signed-off-by: Yue Tao <Yue.Tao at windriver.com>
---
meta/classes/image_types_uboot.bbclass | 1 +
1 file changed, 1 insertion(+)
diff --git a/meta/classes/image_types_uboot.bbclass b/meta/classes/image_types_uboot.bbclass
index 07837b5..dba9293 100644
--- a/meta/classes/image_types_uboot.bbclass
+++ b/meta/classes/image_types_uboot.bbclass
@@ -3,6 +3,7 @@ inherit image_types kernel-arch
oe_mkimage () {
mkimage -A ${UBOOT_ARCH} -O linux -T ramdisk -C $2 -n ${IMAGE_NAME} \
-d ${DEPLOY_DIR_IMAGE}/$1 ${DEPLOY_DIR_IMAGE}/$1.u-boot
+ rm $1
}
COMPRESSIONTYPES += "gz.u-boot bz2.u-boot lzma.u-boot u-boot"
--
1.9.1
More information about the Openembedded-core
mailing list