fix(eclass/cros-kernel2): remove size restriction

we don't care about the size of the kernel. Just remove this check.
This commit is contained in:
Brandon Philips 2013-07-21 18:00:14 -07:00
parent 8edc46b399
commit ef51bb7872

View File

@ -462,14 +462,6 @@ cros-kernel2_src_install() {
# size limit as the image is downloaded over network. # size limit as the image is downloaded over network.
local kernel_image_size=$(stat -c '%s' -L "${D}"/boot/vmlinuz) local kernel_image_size=$(stat -c '%s' -L "${D}"/boot/vmlinuz)
einfo "Kernel image size is ${kernel_image_size} bytes." einfo "Kernel image size is ${kernel_image_size} bytes."
if use netboot_ramfs; then
# No need to check kernel image size.
true
elif [[ ${kernel_image_size} -gt $((8 * 1024 * 1024)) ]]; then
die "Kernel image is larger than 8 MB."
elif [[ ${kernel_image_size} -gt $((7 * 1024 * 1024)) ]]; then
ewarn "Kernel image is larger than 7 MB. Limit is 8 MB."
fi
# Install uncompressed kernel for debugging purposes. # Install uncompressed kernel for debugging purposes.
insinto /usr/lib/debug/boot/${version}/ insinto /usr/lib/debug/boot/${version}/