diff mbox series

[09/13] UBUNTU: [Packaging] generate: add FIT support

Message ID 20220916114642.2953019-10-apw@canonical.com
State New
Headers show
Series [01/13] UBUNTU: [Packaging] generate-depends: relocate to debian/scripts | expand

Commit Message

Andy Whitcroft Sept. 16, 2022, 11:46 a.m. UTC
Add basic FIT support so we can use the same base for all signed
packages.

Signed-off-by: Andy Whitcroft <apw@canonical.com>
---
 debian/rules | 8 +++++++-
 1 file changed, 7 insertions(+), 1 deletion(-)
diff mbox series

Patch

diff --git a/debian/rules b/debian/rules
index 1c8333a..c957144 100755
--- a/debian/rules
+++ b/debian/rules
@@ -70,7 +70,13 @@  override_dh_auto_build:
 			base=$$(echo "$$s" | sed -e 's/.sipl.sig//');		\
 			cat "$$base.sipl" "$$s" >"../SIGNED/$$base";		\
 			chmod 600 "../SIGNED/$$base";				\
-		done								\
+		done;								\
+		for s in *.fit.signed; do					\
+			[ ! -f "$$s" ] && continue;				\
+			chmod 600 "$$s";					\
+			base=$$(echo "$$s" | sed -e 's/.fit.signed//');		\
+			ln "$$s" "../SIGNED/$$base";				\
+		done;								\
 	)
 
 override_dh_auto_install: