[linux] 03/08: Remove all support for monolithic kernel packages

debian-kernel at lists.debian.org debian-kernel at lists.debian.org
Wed Jan 27 19:54:57 UTC 2016


This is an automated email from the git hooks/post-receive script.

benh pushed a commit to branch master
in repository linux.

commit 87a5fb14502cf5d18d56bf8d9972896985ae2f9c
Author: Ben Hutchings <ben at decadent.org.uk>
Date:   Tue Jan 26 23:25:59 2016 +0000

    Remove all support for monolithic kernel packages
    
    The last such package (s390-tape variant) was removed in
    3.6.8-1~experimental.1.
---
 debian/bin/abiupdate.py                           |  3 ---
 debian/bin/gencontrol.py                          | 13 +++++--------
 debian/rules.real                                 |  8 +-------
 debian/templates/control.image.type-plain.in      |  1 -
 debian/templates/control.image.type-standalone.in |  7 -------
 debian/templates/image.plain.postinst.in          |  5 +----
 6 files changed, 7 insertions(+), 30 deletions(-)

diff --git a/debian/bin/abiupdate.py b/debian/bin/abiupdate.py
index 74902be..c23c044 100755
--- a/debian/bin/abiupdate.py
+++ b/debian/bin/abiupdate.py
@@ -165,9 +165,6 @@ class Main(object):
     def update_flavour(self, config, arch, featureset, flavour):
         config_base = config.merge('base', arch, featureset, flavour)
 
-        if not config_base.get('modules', True):
-            return
-
         self.log("Updating ABI for arch %s, featureset %s, flavour %s: " % (arch, featureset, flavour))
         try:
             if featureset == 'none':
diff --git a/debian/bin/gencontrol.py b/debian/bin/gencontrol.py
index d3da5db..64e5072 100755
--- a/debian/bin/gencontrol.py
+++ b/debian/bin/gencontrol.py
@@ -24,7 +24,6 @@ class Gencontrol(Base):
         },
         'build': {
             'debug-info': config.SchemaItemBoolean(),
-            'modules': config.SchemaItemBoolean(),
             'vdso': config.SchemaItemBoolean(),
         },
         'description': {
@@ -362,13 +361,11 @@ class Gencontrol(Base):
         packages_own.append(image_main)
         packages_own.extend(self.process_packages(image[1:], vars))
 
-        if config_entry_build.get('modules', True):
-            makeflags['MODULES'] = True
-            package_headers = self.process_package(headers[0], vars)
-            package_headers['Depends'].extend(relations_compiler_headers)
-            packages_own.append(package_headers)
-            if extra.get('headers_arch_depends'):
-                extra['headers_arch_depends'].append('%s (= ${binary:Version})' % packages_own[-1]['Package'])
+        package_headers = self.process_package(headers[0], vars)
+        package_headers['Depends'].extend(relations_compiler_headers)
+        packages_own.append(package_headers)
+        if extra.get('headers_arch_depends'):
+            extra['headers_arch_depends'].append('%s (= ${binary:Version})' % packages_own[-1]['Package'])
 
         if config_entry_build.get('vdso', False):
             makeflags['VDSO'] = True
diff --git a/debian/rules.real b/debian/rules.real
index a2db245..36a533b 100644
--- a/debian/rules.real
+++ b/debian/rules.real
@@ -62,9 +62,7 @@ binary-arch-flavour: install-image_$(ARCH)_$(FEATURESET)_$(FLAVOUR)_$(TYPE)
 ifeq ($(DEBUG),True)
   binary-arch-flavour: install-image-dbg_$(ARCH)_$(FEATURESET)_$(FLAVOUR)
 endif
-ifeq ($(MODULES),True)
-  binary-arch-flavour: install-headers_$(ARCH)_$(FEATURESET)_$(FLAVOUR)
-endif
+binary-arch-flavour: install-headers_$(ARCH)_$(FEATURESET)_$(FLAVOUR)
 
 ifneq ($(DO_DOCS),False)
   binary-indep: install-doc
@@ -369,7 +367,6 @@ install-image_$(ARCH)_$(FEATURESET)_$(FLAVOUR)_plain:
 	+$(MAKE_SELF) \
 	  install-image_$(ARCH)_$(FEATURESET)_$(FLAVOUR)_plain_dt \
 	  DIR='$(DIR)' PACKAGE_DIR='$(PACKAGE_DIR)' REAL_VERSION='$(REAL_VERSION)'
-ifeq ($(MODULES),True)
 	+$(MAKE_CLEAN) -C $(DIR) modules_install DEPMOD='$(CURDIR)/debian/bin/no-depmod' INSTALL_MOD_PATH='$(CURDIR)'/$(PACKAGE_DIR) INSTALL_MOD_STRIP=1
 ifeq ($(DEBUG),True)
 	set -o pipefail; \
@@ -382,7 +379,6 @@ endif
 	rm -f $(PACKAGE_DIR)/lib/modules/$(REAL_VERSION)/build
 	rm -f $(PACKAGE_DIR)/lib/modules/$(REAL_VERSION)/source
 	rm $(PACKAGE_DIR)/lib/firmware -rf
-endif
 	dh_installdebconf
 	+$(MAKE_SELF) \
 	  install-image_$(ARCH)_$(FEATURESET)_$(FLAVOUR)_plain_bug \
@@ -424,11 +420,9 @@ install-image-dbg_$(ARCH)_$(FEATURESET)_$(FLAVOUR): $(STAMPS_DIR)/build_$(ARCH)_
 	dh_installdirs usr/lib/debug usr/lib/debug/boot usr/share/lintian/overrides/
 	dh_lintian
 	install -m644 $(DIR)/vmlinux $(DEBUG_DIR)/boot/vmlinux-$(REAL_VERSION)
-ifeq ($(MODULES),True)
 	+$(MAKE_CLEAN) -C $(DIR) modules_install DEPMOD='$(CURDIR)/debian/bin/no-depmod' INSTALL_MOD_PATH='$(CURDIR)'/$(DEBUG_DIR)
 	find $(DEBUG_DIR)/lib/modules/$(REAL_VERSION)/ -mindepth 1 -maxdepth 1 \! -name kernel -exec rm {} \+
 	rm $(DEBUG_DIR)/lib/firmware -rf
-endif
 ifeq ($(VDSO),True)
 	+$(MAKE_CLEAN) -C $(DIR) vdso_install INSTALL_MOD_PATH='$(CURDIR)'/$(DEBUG_DIR)
 # Create .build-id links.  Some architectures already do so, but in the
diff --git a/debian/templates/control.image.type-plain.in b/debian/templates/control.image.type-plain.in
index e2a9546..9d7b6fb 100644
--- a/debian/templates/control.image.type-plain.in
+++ b/debian/templates/control.image.type-plain.in
@@ -1,6 +1,5 @@
 Package: linux-image- at abiname@@localversion@
 Build-Profiles: <!stage1>
-Provides: linux-modules- at abiname@@localversion@
 Pre-Depends: debconf | debconf-2.0
 Depends: kmod, linux-base, ${misc:Depends}
 Recommends: firmware-linux-free, ${kernel:Recommends}
diff --git a/debian/templates/control.image.type-standalone.in b/debian/templates/control.image.type-standalone.in
deleted file mode 100644
index 8e132b6..0000000
--- a/debian/templates/control.image.type-standalone.in
+++ /dev/null
@@ -1,7 +0,0 @@
-Package: linux-image- at abiname@@localversion@
-Build-Profiles: <!stage1>
-Provides: linux-image
-Suggests: linux-doc- at version@
-Depends: ${misc:Depends}
-Description: Linux @upstreamversion@ for @class@
- The Linux kernel @upstreamversion@ for use on @longclass at .
diff --git a/debian/templates/image.plain.postinst.in b/debian/templates/image.plain.postinst.in
index 7c4e948..3ef30e5 100755
--- a/debian/templates/image.plain.postinst.in
+++ b/debian/templates/image.plain.postinst.in
@@ -28,7 +28,6 @@ my $image_dest      = "/";
 my $realimageloc    = "/boot/";
 my $have_conffile   = "";
 
-my $modules_base    = '/lib/modules';
 my $CONF_LOC        = '/etc/kernel-img.conf';
 
 # Ignore all invocations except when called on to configure.
@@ -477,9 +476,7 @@ sub system_failure_message {
   }
 }
 
-# We may not have any modules installed
-if (-d "$modules_base/$version" &&
-    system("depmod -a -F $realimageloc/System.map-$version $version")) {
+if (system("depmod -a -F $realimageloc/System.map-$version $version")) {
   die ("depmod failed: " . system_failure_message());
 }
 

-- 
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/kernel/linux.git



More information about the Kernel-svn-changes mailing list