aboutsummaryrefslogtreecommitdiff
path: root/rpb-openembedded-master.yaml
diff options
context:
space:
mode:
authorNicolas Dechesne <nicolas.dechesne@linaro.org>2016-09-13 11:19:51 +0200
committerFathi Boudra <fathi.boudra@linaro.org>2016-09-14 11:35:35 +0300
commit8a23c9b608d965834ee935303ca3ebfe6adf6c33 (patch)
treeed3c6b1a97de6e54f8856dfe870e9be54c007094 /rpb-openembedded-master.yaml
parentb7e233db13c751991c32fb7fd11bf0f61e62e7a4 (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-master.yaml')
-rw-r--r--rpb-openembedded-master.yaml10
1 files changed, 9 insertions, 1 deletions
diff --git a/rpb-openembedded-master.yaml b/rpb-openembedded-master.yaml
index 5fd7e79e..b13b1c46 100644
--- a/rpb-openembedded-master.yaml
+++ b/rpb-openembedded-master.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)