aboutsummaryrefslogtreecommitdiff
path: root/ledge
diff options
context:
space:
mode:
authorMaxim Uvarov <maxim.uvarov@linaro.org>2020-01-15 12:03:06 +0300
committerIlias Apalodimas <ilias.apalodimas@linaro.org>2020-01-15 09:05:34 +0000
commitae232736c88e4443a086913de1490b5ca035e0ad (patch)
tree6510881740eb8dfad43e92cb339e005385ae482e /ledge
parent4ddd095cc2f0594342ed04dfd2bd4124e2523d68 (diff)
ledge-oe: fix firmware uploading
Signed-off-by: Maxim Uvarov <maxim.uvarov@linaro.org> Change-Id: I2ce7e59a7518908ac69c88c0070ee9f9c0dcfccf
Diffstat (limited to 'ledge')
-rwxr-xr-xledge/oe/builders.sh11
1 files changed, 10 insertions, 1 deletions
diff --git a/ledge/oe/builders.sh b/ledge/oe/builders.sh
index c7844c6b..4b84a04a 100755
--- a/ledge/oe/builders.sh
+++ b/ledge/oe/builders.sh
@@ -133,13 +133,18 @@ for rootfs in $(find ${DEPLOY_DIR_IMAGE} -type f -name *.rootfs.wic); do
;;
esac
done
-pigz -9 ledge-kernel-uefi-certs.ext4
+
+for cert in $(find ${DEPLOY_DIR_IMAGE} -type f -name ledge-kernel-uefi-certs*.wic); do
+ pigz -9 ${cert}
+done
# Convert bl*.bin symlinks to local files and package them to bios-num.tar.gz
set +e
+cd ${DEPLOY_DIR_IMAGE}
find . -type l -name "bl*.bin" -exec cp --remove-destination \$\(readlink {}\) {} \;
tar -czf bios-${BUILD_NUMBER}.tar.gz bl*.bin
rm -rf bl*.bin
+cd -
set -e
# Clean up not needed build artifacts
@@ -195,6 +200,8 @@ ROOTFS_TARXZ_IMG=$(find ${DEPLOY_DIR_IMAGE} -type f -name "ledge-*${MACHINE}-*${
HDD_IMG=$(find ${DEPLOY_DIR_IMAGE} -type f -name "ledge-*${MACHINE}-*${BUILD_NUMBER}.hddimg.xz" -printf "%f\n")
INITRD_URL=""
OVMF=$(find ${DEPLOY_DIR_IMAGE} -type f -name "ovmf.qcow2" -printf "%f\n")
+CERTS=$(find ${DEPLOY_DIR_IMAGE} -type f -name ledge-kernel-uefi-certs*.wic.gz -printf "%f\n");
+FIRMWARE=$(find ${DEPLOY_DIR_IMAGE} -type f -name bios-${BUILD_NUMBER}.tar.gz -printf "%f\n");
case "${MACHINE}" in
ledge-am57xx-evm)
@@ -275,6 +282,8 @@ TOOLCHAIN="${TARGET_SYS} ${GCCVERSION}"
KERNEL_ARGS="${KERNEL_ARGS}"
INITRD_URL="${INITRD_URL}"
OVMF="${BASE_URL}/${PUB_DEST}/${OVMF}"
+CERTS="${BASE_URL}/${PUB_DEST}/${CERTS}"
+FIRMWARE="${BASE_URL}/${PUB_DEST}/${FIRMWARE}"
EOF
cat ${WORKSPACE}/post_build_lava_parameters