aboutsummaryrefslogtreecommitdiff
path: root/openembedded-lkft
diff options
context:
space:
mode:
authorDaniel Díaz <daniel.diaz@linaro.org>2019-10-25 23:00:48 -0500
committerDaniel Díaz <daniel.diaz@linaro.org>2019-10-25 23:06:28 -0500
commit1e612ef54a0bafee3410822a868455fe7b7e1905 (patch)
treeda3573b148f3d3988ce3e640568dd2f904c2528e /openembedded-lkft
parent3deb119db1d4be3796e0780dc1250ac1123ea7da (diff)
openembedded-lkft/builders: Only compress *.hddimg if it exists
This ensures that we don't encounter a problem like the following: + for rootfs in ${DEPLOY_DIR_IMAGE}/*.hddimg + xz -T0 '/srv/oe/build/tmp-lkft-glibc/deploy/images/intel-core2-32/*.hddimg' xz: /srv/oe/build/tmp-lkft-glibc/deploy/images/intel-core2-32/*.hddimg: No such file or directory which started happening after merging: https://github.com/Linaro/meta-lkft/pull/60 Change-Id: I640682dc834c2b6781cd908e8ac60a5a71a736eb Signed-off-by: Daniel Díaz <daniel.diaz@linaro.org>
Diffstat (limited to 'openembedded-lkft')
-rwxr-xr-xopenembedded-lkft/builders.sh4
1 files changed, 3 insertions, 1 deletions
diff --git a/openembedded-lkft/builders.sh b/openembedded-lkft/builders.sh
index e0227eca..48da0ecb 100755
--- a/openembedded-lkft/builders.sh
+++ b/openembedded-lkft/builders.sh
@@ -254,7 +254,9 @@ case "${MACHINE}" in
;;
intel-core2-32|intel-corei7-64)
for rootfs in ${DEPLOY_DIR_IMAGE}/*.hddimg; do
- xz -T0 ${rootfs}
+ if [ -e "${rootfs}" ]; then
+ xz -T0 "${rootfs}"
+ fi
done
;;
*)