pull/402/head
Dmitry Ilyin 2022-08-27 11:12:50 +03:00
commit 1c8223a51d
1 changed files with 21 additions and 2 deletions

View File

@ -394,11 +394,12 @@ jobs:
echo Using $TOOLNAME
if [ ! -f "$TOOLNAME.tgz" ]; then
wget --retry-on-http-error=503 \
wget -nv --retry-on-http-error=503 --continue --timeout=15 \
https://github.com/${GITHUB_REPOSITORY}/releases/download/${TAG_NAME}/${TOOLNAME}.tgz
fi
mkdir /tmp/extsdk
tar xvf ${TOOLNAME}.tgz --strip-components=1 -C /tmp/extsdk >/dev/null
set -x
TLEXT=BR2_TOOLCHAIN_EXTERNAL
echo "${TLEXT}=y" >> $CONF_PATH
@ -446,6 +447,7 @@ jobs:
GCC_VER=$(echo $TOOLNAME | cut -d '-' -f 2)
echo "${TLEXT}_GCC_${GCC_VER:3:1}=y" >> $CONF_PATH
echo "BR2_ROOTFS_POST_BUILD_SCRIPT=\"\$(TOPDIR)/../scripts/executing_commands_for_${LIBC}.sh\"" >> $CONF_PATH
cat $CONF_PATH
make BOARD=$BOARD all
@ -462,6 +464,14 @@ jobs:
}
if [ -f uImage ]; then
# TODO: doesn't fit to lite
case ${{ matrix.platform }} in
hi3516cv500|hi3516dv300|hi3516av300)
MAX_KERNEL_SIZE=${MAX_KERNEL_SIZE_ULTIMATE}
MAX_ROOTFS_SIZE=${MAX_ROOTFS_SIZE_ULTIMATE}
;;
esac
case ${{ matrix.release }} in
lite)
check_exceeded uImage ${MAX_KERNEL_SIZE}
@ -494,7 +504,16 @@ jobs:
mv rootfs.ubi rootfs.ubi.${{ matrix.platform }}
md5sum rootfs.ubifs > rootfs.ubifs.${{ matrix.platform }}.md5sum
mv rootfs.ubifs rootfs.ubifs.${{ matrix.platform }}
tar -cvzf $NANDFW_PATH uImage* *rootfs.ubi*.${{ matrix.platform }}*
case ${{ matrix.platform }} in
rv*)
mv zboot.img boot.img.${{ matrix.platform }}
md5sum boot.img.${{ matrix.platform }} > boot.img.${{ matrix.platform }}.md5sum
tar -cvzf $NANDFW_PATH boot.img* *rootfs.ubi*.${{ matrix.platform }}*
;;
*)
tar -cvzf $NANDFW_PATH uImage* *rootfs.ubi*.${{ matrix.platform }}*
;;
esac
fi
popd