[linux-uc20-efi][FOCAL][PATCH 2/2] UBUNTU: [Packaging] automatically detect flavours from build-deps
Dimitri John Ledkov
dimitri.ledkov at canonical.com
Tue Jun 8 11:56:14 UTC 2021
Automatically detected from build-deps which flavours to build
kernel.efi apps for. This means that suffixes of
linux-image-unsigned-$(ABI)-* are used to determine the desired
flavours.
If this parsing becomes insufficient, it might need to be updated to
use python-apt in the future, or encode flavours in
$(debian)/flavors.mk or some such.
This makes it trivial to build derivative kernel.efi apps, by simply
adjusting appropriate control.stub with the desired flavour
build-deps.
BugLink: https://bugs.launchpad.net/bugs/1931242
Signed-off-by: Dimitri John Ledkov <dimitri.ledkov at canonical.com>
---
debian/rules | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/debian/rules b/debian/rules
index f6e6ec0..18adb20 100755
--- a/debian/rules
+++ b/debian/rules
@@ -12,7 +12,7 @@ KERNEL_ABI_VERSION=$(shell echo "$(VERSION)" | sed -ne 's/\([0-9]*\.[0-9]*\.[0-9
DEB_HOST_ARCH=$(shell dpkg-architecture -qDEB_HOST_ARCH)
-FLAVOURS=generic lowlatency
+FLAVOURS=$(shell sed -n 's/linux-image-unsigned-$(KERNEL_ABI_VERSION)-//p' debian/control | sed 's/[ ,]//g')
clean: debian/control
dh_testdir
--
2.27.0
More information about the kernel-team
mailing list