diff options
author | Nicolas Dechesne <nicolas.dechesne@linaro.org> | 2016-09-13 11:19:51 +0200 |
---|---|---|
committer | Fathi Boudra <fathi.boudra@linaro.org> | 2016-09-14 11:35:35 +0300 |
commit | 8a23c9b608d965834ee935303ca3ebfe6adf6c33 (patch) | |
tree | ed3c6b1a97de6e54f8856dfe870e9be54c007094 /rpb-openembedded-krogoth.yaml | |
parent | b7e233db13c751991c32fb7fd11bf0f61e62e7a4 (diff) |
rpb-openembedded-*: sparse images before publishing them
Until the generation of sparse images is implemented in OE, we can do that in
the build job directly.
We create xxx.rootfs.img file that can be used when flashing with fastboot.
Change-Id: Ic4a102298d37be99556f99d61f703b38ea091fbf
Signed-off-by: Nicolas Dechesne <nicolas.dechesne@linaro.org>
Diffstat (limited to 'rpb-openembedded-krogoth.yaml')
-rw-r--r-- | rpb-openembedded-krogoth.yaml | 10 |
1 files changed, 9 insertions, 1 deletions
diff --git a/rpb-openembedded-krogoth.yaml b/rpb-openembedded-krogoth.yaml index 51012d40..9f0ddc89 100644 --- a/rpb-openembedded-krogoth.yaml +++ b/rpb-openembedded-krogoth.yaml @@ -83,7 +83,7 @@ } sudo apt-get update - sudo apt-get install -y python-pycurl chrpath gawk texinfo libsdl1.2-dev whiptail diffstat cpio libssl-dev + sudo apt-get install -y python-pycurl chrpath gawk texinfo libsdl1.2-dev whiptail diffstat cpio libssl-dev android-tools-fsutils mkdir -p ${HOME}/bin curl https://storage.googleapis.com/git-repo-downloads/repo > ${HOME}/bin/repo @@ -148,6 +148,14 @@ mv /srv/oe/{source,pinned}-manifest.xml ${DEPLOY_DIR_IMAGE} cat ${DEPLOY_DIR_IMAGE}/pinned-manifest.xml + # FIXME: Sparse images here, until it gets done by OE + for rootfs in ${DEPLOY_DIR_IMAGE}/*.rootfs.ext4.gz; do + gunzip -k ${rootfs} + sudo ext2simg -v ${rootfs%.gz} ${rootfs%.ext4.gz}.img + rm -f ${rootfs%.gz} + gzip -9 ${rootfs%.ext4.gz}.img + done + # Create MD5SUMS file (cd ${DEPLOY_DIR_IMAGE} && md5sum * > MD5SUMS.txt) |