Remove all support for monolithic kernel packages
The last such package (s390-tape variant) was removed in 3.6.8-1~experimental.1.
This commit is contained in:
parent
78007e962c
commit
87a5fb1450
|
@ -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':
|
||||
|
|
|
@ -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
|
||||
|
|
|
@ -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
|
||||
|
|
|
@ -1,6 +1,5 @@
|
|||
Package: linux-image-@abiname@@localversion@
|
||||
Build-Profiles: <!stage1>
|
||||
Provides: linux-modules-@abiname@@localversion@
|
||||
Pre-Depends: debconf | debconf-2.0
|
||||
Depends: kmod, linux-base, ${misc:Depends}
|
||||
Recommends: firmware-linux-free, ${kernel:Recommends}
|
||||
|
|
|
@ -1,7 +0,0 @@
|
|||
Package: linux-image-@abiname@@localversion@
|
||||
Build-Profiles: <!stage1>
|
||||
Provides: linux-image
|
||||
Suggests: linux-doc-@version@
|
||||
Depends: ${misc:Depends}
|
||||
Description: Linux @upstreamversion@ for @class@
|
||||
The Linux kernel @upstreamversion@ for use on @longclass@.
|
|
@ -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());
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue