Vic Yang d0694f5ac9 Check kernel image size when building image
Kernel and ramdisk image together are copied into a 16MB partition.
This CL logs their size when building image. If they are larger than
14MB, warning message is emitted. If they reached 16MB, building fails.

BUG=chromium-os:27739
TEST=Build success on x86 and arm.
     Check log and see kernel image size logged.
     Lower the size limit to 6MB and build x86 factory install shim and
     see build fail.

Change-Id: I4c4895c2989b302aa0c3624127518468566d1148
Reviewed-on: https://gerrit.chromium.org/gerrit/22543
Reviewed-by: Mike Frysinger <vapier@chromium.org>
Commit-Ready: Vic Yang <victoryang@chromium.org>
Tested-by: Vic Yang <victoryang@chromium.org>
2012-05-13 19:57:51 -07:00
2012-05-11 14:10:38 -07:00
2012-05-11 14:10:38 -07:00
2011-12-14 20:57:10 -08:00
2012-05-11 14:10:38 -07:00
2012-05-11 14:10:38 -07:00
2012-05-11 14:10:38 -07:00
2012-05-11 14:10:38 -07:00
2011-08-26 13:04:29 -07:00
2012-05-11 14:10:38 -07:00
2012-05-11 14:10:38 -07:00
2012-05-11 14:10:38 -07:00
2012-05-11 14:10:38 -07:00
2012-05-11 14:10:38 -07:00
2012-05-11 14:10:38 -07:00
2012-05-11 14:10:38 -07:00
2012-05-11 14:10:38 -07:00
Description
image build and composition scripts for Flatcar Container Linux
BSD-3-Clause 167 MiB
Languages
Shell 93.1%
Python 6.9%