[linux] 01/02: debian/rules.real: Build a linux-code-sign tarball for signing by dak

debian-kernel at lists.debian.org debian-kernel at lists.debian.org
Wed Aug 31 20:41:07 UTC 2016


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

benh pushed a commit to branch benh/byhand-code-sign
in repository linux.

commit f0317fd58f8268a116235f004f1d61c354e21d6d
Author: Ben Hutchings <ben at decadent.org.uk>
Date:   Thu Jun 30 19:06:11 2016 +0200

    debian/rules.real: Build a linux-code-sign tarball for signing by dak
---
 debian/bin/gencontrol.py |  4 ++++
 debian/changelog         |  6 ++++++
 debian/rules.real        | 13 +++++++++++++
 3 files changed, 23 insertions(+)

diff --git a/debian/bin/gencontrol.py b/debian/bin/gencontrol.py
index 776642a..0aaa542 100755
--- a/debian/bin/gencontrol.py
+++ b/debian/bin/gencontrol.py
@@ -242,6 +242,10 @@ class Gencontrol(Base):
                               (arch, makeflags,
                                ' '.join(p['Package'] for p in udeb_packages),
                                test_build)])
+                makefile.add(
+                    'binary-arch_%s' % arch,
+                    cmds=["$(MAKE) -f debian/rules.real install-code-sign_%s %s" %
+                          (arch, makeflags)])
 
     def do_featureset_setup(self, vars, makeflags, arch, featureset, extra):
         config_base = self.config.merge('base', arch, featureset)
diff --git a/debian/changelog b/debian/changelog
index 785c8b8..e89b805 100644
--- a/debian/changelog
+++ b/debian/changelog
@@ -1,3 +1,9 @@
+linux (4.7.2-2) UNRELEASED; urgency=medium
+
+  * debian/rules.real: Build a linux-code-sign tarball for signing by dak
+
+ -- Ben Hutchings <ben at decadent.org.uk>  Mon, 29 Aug 2016 15:24:41 +0100
+
 linux (4.7.2-1) unstable; urgency=medium
 
   * New upstream release: https://kernelnewbies.org/Linux_4.7
diff --git a/debian/rules.real b/debian/rules.real
index 895d52b..bbdab46 100644
--- a/debian/rules.real
+++ b/debian/rules.real
@@ -461,6 +461,19 @@ endif
 	ln -s ../../../boot/vmlinux-$(REAL_VERSION) $(DEBUG_DIR)/lib/modules/$(REAL_VERSION)/vmlinux
 	+$(MAKE_SELF) install-base GENCONTROL_ARGS='-DAuto-Built-Package=debug-symbols'
 
+install-code-sign_$(ARCH): TARBALL=linux-code-sign_$(SOURCEVERSION)_$(ARCH).tar.xz
+install-code-sign_$(ARCH):
+ifneq ($(wildcard debian/linux-image-*-unsigned),)
+	{ cd debian; \
+	  for dir in linux-image-*-unsigned; do \
+		grep -l '^CONFIG_EFI_STUB=y' $$dir/boot/config-* | sed 's|/config-|/vmlinuz-|'; \
+		find $$dir/lib/modules -name '*.ko'; \
+	  done \
+	  | tar --no-recursion -T - -c --xz -f -; } \
+	> ../$(TARBALL)
+	dpkg-distaddfile $(TARBALL) byhand extra
+endif
+
 install-udeb_$(ARCH): export KW_DEFCONFIG_DIR=debian/installer
 install-udeb_$(ARCH): export KW_CONFIG_DIR=debian/installer/$(ARCH)
 install-udeb_$(ARCH): DH_OPTIONS=$(PACKAGE_NAMES:%=-p%)

-- 
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