[kernel] r22203 - in dists/sid/linux/debian: . bin
Ian James Campbell
ijc at moszumanska.debian.org
Fri Dec 19 08:50:00 UTC 2014
Author: ijc
Date: Fri Dec 19 08:49:43 2014
New Revision: 22203
Log:
[armel] Warn if image size leaves less than 1% spare capacity in the flash.
This allows some slack for growth over the lifetime of a stable release.
Modified:
dists/sid/linux/debian/bin/buildcheck.py
dists/sid/linux/debian/changelog
Modified: dists/sid/linux/debian/bin/buildcheck.py
==============================================================================
--- dists/sid/linux/debian/bin/buildcheck.py Wed Dec 17 21:20:49 2014 (r22202)
+++ dists/sid/linux/debian/bin/buildcheck.py Fri Dec 19 08:49:43 2014 (r22203)
@@ -172,6 +172,8 @@
self.dir = dir
self.arch, self.featureset, self.flavour = arch, featureset, flavour
+ self.changelog = Changelog(version=VersionLinux)[0]
+
self.config_entry_build = config.merge('build', arch, featureset, flavour)
self.config_entry_image = config.merge('image', arch, featureset, flavour)
@@ -204,7 +206,20 @@
out.write('Image too large (%d > %d)! Refusing to continue.\n' % (size, value))
return 1
- out.write('Image fits (%d <= %d). Continuing.\n' % (size, value))
+ # 1% overhead is desirable in order to cope with growth
+ # through the lifetime of a stable release. Warn if this is
+ # not the case.
+ usage = (float(size)/value) * 100.0
+ out.write('Image size %d/%d, using %.2f%%. ' % (size, value, usage))
+ if size > value:
+ sys.write('Too large. Refusing to continue.\n')
+ return 1
+ elif usage >= 99.0:
+ out.write('Under 1%% space in %s. ' % self.changelog.distribution)
+ else:
+ out.write('Image fits. ')
+ out.write('Continuing.\n')
+
return 0
Modified: dists/sid/linux/debian/changelog
==============================================================================
--- dists/sid/linux/debian/changelog Wed Dec 17 21:20:49 2014 (r22202)
+++ dists/sid/linux/debian/changelog Fri Dec 19 08:49:43 2014 (r22203)
@@ -14,6 +14,9 @@
OMAP5_DSS_HDMI, DISPLAY_ENCODER_TPD12S015, DISPLAY_CONNECTOR_HDMI,
USB_DWC3_OMAP, EXTCON_PALMAS, TI_EMIF and DDR.
Based on a patch from Chen Baozi (Closes: #772953)
+ * [armel] Change configuration to reduce kernel image size
+ - Warn if image size leaves less than 1% spare capacity in the flash. This
+ allows some slack for growth over the lifetime of a stable release.
-- Ben Hutchings <ben at decadent.org.uk> Sat, 13 Dec 2014 11:45:48 +0000
More information about the Kernel-svn-changes
mailing list