From cab1f743c868c0b6a6f73037785c9c2f4f0e3639 Mon Sep 17 00:00:00 2001 From: Ben Hutchings Date: Mon, 6 Jun 2016 18:12:47 +0100 Subject: [PATCH] Disable MODULE_SIG for architectures not supported by linux-signed --- debian/bin/gencontrol.py | 5 ++++- debian/changelog | 1 + debian/config/config | 3 ++- 3 files changed, 7 insertions(+), 2 deletions(-) diff --git a/debian/bin/gencontrol.py b/debian/bin/gencontrol.py index f4ef6fcd8..b87be73c9 100755 --- a/debian/bin/gencontrol.py +++ b/debian/bin/gencontrol.py @@ -442,8 +442,11 @@ class Gencontrol(Base): kconfig.extend(check_config("%s/%s/config" % (arch, featureset), False, arch, featureset)) kconfig.extend(check_config("%s/%s/config.%s" % (arch, featureset, flavour), False, arch, featureset, flavour)) makeflags['KCONFIG'] = ' '.join(kconfig) + makeflags['KCONFIG_OPTIONS'] = '' if build_debug: - makeflags['KCONFIG_OPTIONS'] = '-o DEBUG_INFO=y' + makeflags['KCONFIG_OPTIONS'] += ' -o DEBUG_INFO=y' + if config_entry_build.get('signed-modules'): + makeflags['KCONFIG_OPTIONS'] += ' -o MODULE_SIG=y' cmds_binary_arch = ["$(MAKE) -f debian/rules.real binary-arch-flavour %s" % makeflags] if packages_dummy: diff --git a/debian/changelog b/debian/changelog index 010228b81..985a998ff 100644 --- a/debian/changelog +++ b/debian/changelog @@ -31,6 +31,7 @@ linux (4.6.1-1~exp1) UNRELEASED; urgency=medium * debian/control: Drop obsolete versioned Depends and Breaks * linux-libc-dev: Drop obsolete Replaces/Conflicts with linux-kernel-headers * debian/control: Update policy version to 3.9.8; no changes required + * Disable MODULE_SIG for architectures not supported by linux-signed -- Ben Hutchings Sat, 04 Jun 2016 18:33:11 +0100 diff --git a/debian/config/config b/debian/config/config index bf5bb5ca0..4b8c853a9 100644 --- a/debian/config/config +++ b/debian/config/config @@ -5575,7 +5575,8 @@ CONFIG_MODULE_UNLOAD=y CONFIG_MODULE_FORCE_UNLOAD=y CONFIG_MODVERSIONS=y # CONFIG_MODULE_SRCVERSION_ALL is not set -CONFIG_MODULE_SIG=y +#. This is overridden if the [build]signed-modules setting is enabled +# CONFIG_MODULE_SIG is not set #. Signature validation is a run-time option # CONFIG_MODULE_SIG_FORCE is not set #. Signatures are added in linux-signed