aboutsummaryrefslogtreecommitdiff
path: root/linaro-edk2-prep.yaml
diff options
context:
space:
mode:
authorRiku Voipio <riku.voipio@linaro.org>2015-04-28 16:25:29 +0300
committerRiku Voipio <riku.voipio@linaro.org>2015-04-28 16:33:00 +0300
commit09b0d2119cfa82a234c558beefc1792aa73488a7 (patch)
tree1325b003778bc620cb3f82b3646a1605567f4dcf /linaro-edk2-prep.yaml
parent85f0cb3407c4e92410253fb27804c13f877d34bc (diff)
linaro-edk2[-prep|upstream] Generate pflash files
As discussed on #linaro-lava, it should not be the job of lava to generate pflash files. Thus, generate them in the CI jobs. The find oneliner searches for all files named QEMU_EFI.fd and generates a QEMU_EFI.img pflash into the same directory. - only tested locally Part of fixing: https://bugs.linaro.org/show_bug.cgi?id=1043 Change-Id: I2aa0a8d470cb1c9c421542d98ca8fab092d4b5ab Signed-off-by: Riku Voipio <riku.voipio@linaro.org>
Diffstat (limited to 'linaro-edk2-prep.yaml')
-rw-r--r--linaro-edk2-prep.yaml1
1 files changed, 1 insertions, 0 deletions
diff --git a/linaro-edk2-prep.yaml b/linaro-edk2-prep.yaml
index 3a805475cc..8130f42c44 100644
--- a/linaro-edk2-prep.yaml
+++ b/linaro-edk2-prep.yaml
@@ -87,6 +87,7 @@
outdir=${WORKSPACE}/out
mkdir -p ${outdir}
mv ${builddir}/* ${outdir}/
+ find ${outdir}/ -name '*QEMU_EFI.fd' -exec bash -c 'in=${1}; out=${in%fd}img; cat $in /dev/zero | dd iflag=fullblock bs=1M count=64 of=$out' _ {} \;
${HOME}/bin/linaro-cp out components/kernel/${JOB_NAME}/${BUILD_NUMBER}