aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorPatrick Ohly <patrick.ohly@intel.com>2016-11-23 15:32:08 +0100
committerPatrick Ohly <patrick.ohly@intel.com>2016-12-08 14:28:44 +0100
commite5f8c784fa6e410004c8195c04047bbb4db770ad (patch)
tree328e52c750a8230eb15f658af01b2ada053e2f22
parent550c29471ca6654edca2b9b692d6a2b85159789b (diff)
downloadmeta-swupd-e5f8c784fa6e410004c8195c04047bbb4db770ad.tar.gz
meta-swupd-e5f8c784fa6e410004c8195c04047bbb4db770ad.tar.bz2
meta-swupd-e5f8c784fa6e410004c8195c04047bbb4db770ad.zip
swupdbundle.bbclass: speed up mega image creation
Creating the mega image archive is on the critical path (depends on all target components having been compiled and blocks creating images). Compressing, even with pbzip, is slower than directly writing the uncompressed archive (tested with a striped RAID array of two traditional hard drives and a fast multicore CPU) and decompression again takes additional time, so avoid the slowdown by not compressing. The downside is higher disk space usage. Signed-off-by: Patrick Ohly <patrick.ohly@intel.com>
-rw-r--r--classes/swupdbundle.bbclass2
1 files changed, 1 insertions, 1 deletions
diff --git a/classes/swupdbundle.bbclass b/classes/swupdbundle.bbclass
index c3dd21d..88cc033 100644
--- a/classes/swupdbundle.bbclass
+++ b/classes/swupdbundle.bbclass
@@ -24,7 +24,7 @@ fakeroot do_mega_archive () {
# do not have a leading ./. Some versions of GNU tar had problems finding
# those files when we stored them with that prefix, so although we now use bsdtar,
# let's keep it consistent (and shorter) and store without the prefix.
- bsdtar -zcf ${MEGA_IMAGE_ARCHIVE} -C ${MEGA_IMAGE_ROOTFS} \
+ bsdtar -cf ${MEGA_IMAGE_ARCHIVE} -C ${MEGA_IMAGE_ROOTFS} \
$(ls -1 -a ${MEGA_IMAGE_ROOTFS} | grep -v -e '^\.$' -e '^\.\.$')
}