]> git.proxmox.com Git - mirror_ubuntu-bionic-kernel.git/blobdiff - debian/rules
UBUNTU: [Packaging] signing -- switch to linux-image as signed when available
[mirror_ubuntu-bionic-kernel.git] / debian / rules
index faa473b114be395980dd10b5efaf3844ddbb1686..0fc6af03536127542749560593e4d7c173f21b0e 100755 (executable)
@@ -45,6 +45,14 @@ ifneq ($(DEB_HOST_ARCH),$(DEB_BUILD_ARCH))
        do_zfs=false
 endif
 
+# Are any of the kernel signing options enabled.
+any_signed=$(sort $(filter-out false,$(uefi_signed)))
+ifeq ($(any_signed),true)
+bin_pkg_name=$(bin_pkg_name_unsigned)
+else
+bin_pkg_name=$(bin_pkg_name_signed)
+endif
+
 # Stages -- support both DEB_STAGE=stage1 and DEB_BUILD_PROFILE=bootstrap
 ifeq ($(DEB_STAGE),stage1)
     DEB_BUILD_PROFILES=stage1
@@ -164,7 +172,7 @@ $(DEBIAN)/control.stub:                             \
        done
        flavours="$(sort $(wildcard $(DEBIAN)/control.d/vars.* $(DEBIAN)/sub-flavours/*.vars))";\
        for i in $$flavours; do                                                 \
-         $(SHELL) $(DROOT)/scripts/control-create $$i |                                \
+         $(SHELL) $(DROOT)/scripts/control-create $$i "$(any_signed)" |        \
                sed -e 's/PKGVER/$(release)/g'                                  \
                -e 's/ABINUM/$(abinum)/g'                                       \
                -e 's/SRCPKGNAME/$(src_pkg_name)/g'                             \