[kernel] r18507 - dists/trunk/linux-2.6/debian/bin

Bastian Blank waldi at alioth.debian.org
Thu Jan 12 11:28:07 UTC 2012


Author: waldi
Date: Thu Jan 12 11:28:06 2012
New Revision: 18507

Log:
debian/bin/gencontrol.py: Support disabling debug infos in unreleased builds.

Modified:
   dists/trunk/linux-2.6/debian/bin/gencontrol.py

Modified: dists/trunk/linux-2.6/debian/bin/gencontrol.py
==============================================================================
--- dists/trunk/linux-2.6/debian/bin/gencontrol.py	Wed Jan 11 21:50:35 2012	(r18506)
+++ dists/trunk/linux-2.6/debian/bin/gencontrol.py	Thu Jan 12 11:28:06 2012	(r18507)
@@ -268,6 +268,12 @@
             extra['headers_arch_depends'].append('%s (= ${binary:Version})' % packages_own[-1]['Package'])
 
         build_debug = config_entry_build.get('debug-info')
+
+        if build_debug and self.changelog[0].distribution == 'UNRELEASED' and os.getenv('DEBIAN_KERNEL_DISABLE_DEBUG'):
+            import warnings
+            warnings.warn(u'Disable building of debug infos on request (DEBIAN_KERNEL_DISABLE_DEBUG)')
+            build_debug = False
+
         if build_debug:
             makeflags['DEBUG'] = True
             packages_own.extend(self.process_packages(self.templates['control.image-dbg'], vars))



More information about the Kernel-svn-changes mailing list