From 29ff0b823d237fb9e2d4072738a1663ef2bcccf0 Mon Sep 17 00:00:00 2001 From: Krzesimir Nowak Date: Thu, 15 Aug 2024 12:38:35 +0200 Subject: [PATCH] size-change-report: Add support for extra sysext report files --- size-change-report.sh | 15 ++++++++++++++- 1 file changed, 14 insertions(+), 1 deletion(-) diff --git a/size-change-report.sh b/size-change-report.sh index 87830df..2415406 100755 --- a/size-change-report.sh +++ b/size-change-report.sh @@ -20,6 +20,7 @@ ### board: amd64-usr, arm64-usr ### kind: old, wtd, initrd-old, initrd-wtd, oem-${OEM}-old, oem-${OEM}-wtd, ### base-sysext-${NAME}-old base-sysext-${NAME}-wtd +### extra-sysext-${NAME}-old extra-sysext-${NAME}-wtd ### arch: amd64, arm64 ### ### options: @@ -133,6 +134,18 @@ function file_from_kind { name=${name%-wtd} echo "rootfs-included-sysexts/${name}_contents_wtd.txt" ;; + extra-sysext-*-old) + name=${kind} + name=${name#extra-sysext-} + name=${name%-old} + echo "flatcar-${name}_contents.txt" + ;; + extra-sysext-*-wtd) + name=${kind} + name=${name#extra-sysext-} + name=${name%-wtd} + echo "flatcar-${name}_contents_wtd.txt" + ;; *) fail "Invalid kind '${kind}' in spec '${spec}', see help for possible values" ;; @@ -278,7 +291,7 @@ function simplified_kind { initrd-old|initrd-wtd) kind="${kind#initrd-}" ;; - oem-*-old|oem-*-wtd|base-sysext-*-old|base-sysext-*-wtd) + oem-*-old|oem-*-wtd|base-sysext-*-old|base-sysext-*-wtd|extra-sysext-*-old|extra-sysext-*-wtd) kind=${kind##*-} ;; *)