Skip to content

Commit 50f86c8

Browse files
authored
Make size limit check in CI only apply to the baseline kernel (#100)
* Make this only apply to the baseline kernel * Better actually * posix
1 parent f46727e commit 50f86c8

1 file changed

Lines changed: 11 additions & 4 deletions

File tree

hack/build/build.sh

Lines changed: 11 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -44,10 +44,17 @@ rm -rf "${MODULES_INSTALL_PATH}"
4444

4545
mksquashfs "${ADDONS_OUTPUT_PATH}" "${ADDONS_SQUASHFS_PATH}" -all-root
4646

47-
if [ "$KERNEL_FLAVOR" != "host" ] && [ "$(stat -c %s "${ADDONS_SQUASHFS_PATH}")" -gt 52428800 ]; then
48-
echo "ERROR: squashfs is >50MB in size which is undesirable for non-host kernels, validate kconfig options!" >&2
49-
exit 1
50-
fi
47+
case "$KERNEL_FLAVOR" in
48+
zone-debug)
49+
# Skip the check for zone-debug, it is allowed to be big
50+
;;
51+
zone*)
52+
if [ "$(stat -c %s "${ADDONS_SQUASHFS_PATH}")" -gt 52428800 ]; then
53+
echo "ERROR: squashfs is >50MB in size which is undesirable for the 'zone' kernel, validate kconfig options!" >&2
54+
exit 1
55+
fi
56+
;;
57+
esac
5158

5259
if [ "${TARGET_ARCH_STANDARD}" = "x86_64" ]; then
5360
cp "${KERNEL_OBJ}/arch/x86/boot/bzImage" "${OUTPUT_DIR}/kernel"

0 commit comments

Comments
 (0)