diff options
author | Bastian Blank <bastian.blank@credativ.de> | 2020-08-20 10:19:15 +0200 |
---|---|---|
committer | Bastian Blank <bastian.blank@credativ.de> | 2020-08-20 10:19:35 +0200 |
commit | 5a2d988f8612580834c907fb9dd92b568ee86011 (patch) | |
tree | ac9f56d34efaeea8a8c5c01100993c4635dbfa62 /debian/bin | |
parent | 9b82c45d67dc4051cdf95ea22e1fafcb7e0a4d59 (diff) | |
download | kernel_replicant_linux-5a2d988f8612580834c907fb9dd92b568ee86011.tar.gz kernel_replicant_linux-5a2d988f8612580834c907fb9dd92b568ee86011.tar.bz2 kernel_replicant_linux-5a2d988f8612580834c907fb9dd92b568ee86011.zip |
Factor out debug info disable flag
Diffstat (limited to 'debian/bin')
-rwxr-xr-x | debian/bin/gencontrol.py | 14 |
1 files changed, 2 insertions, 12 deletions
diff --git a/debian/bin/gencontrol.py b/debian/bin/gencontrol.py index d2e52654919c..3407bd64a96a 100755 --- a/debian/bin/gencontrol.py +++ b/debian/bin/gencontrol.py @@ -59,6 +59,7 @@ class Gencontrol(Base): } env_flags = [ + ('DEBIAN_KERNEL_DISABLE_DEBUG', 'disable_debug', 'debug infos'), ('DEBIAN_KERNEL_DISABLE_INSTALLER', 'disable_installer', 'installer modules'), ] @@ -512,18 +513,7 @@ class Gencontrol(Base): build_debug = config_entry_build.get('debug-info') - if os.getenv('DEBIAN_KERNEL_DISABLE_DEBUG'): - if self.changelog[0].distribution == 'UNRELEASED': - import warnings - warnings.warn('Disable debug infos on request ' - '(DEBIAN_KERNEL_DISABLE_DEBUG set)') - build_debug = False - else: - raise RuntimeError( - 'Unable to disable debug infos in release build ' - '(DEBIAN_KERNEL_DISABLE_DEBUG set)') - - if build_debug: + if not self.disable_debug: makeflags['DEBUG'] = True packages_own.extend(self.process_packages( self.templates['control.image-dbg'], vars)) |